Modify

Opened 6 years ago

Last modified 4 years ago

#11701 new defect

RDC - ROOT_DEV not working

Reported by: n.lefalher@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: root_dev Cc:

Description

Hi,

RDC platform is now unbroken, but you must set root=/dev/mtdblock1 in "cmd_line". Without that root partition is not found.

ROOT_DEV is correctly set in drivers/mtd/mtdpart.c, but in init/do_mounts.c ROOT_DEV == 0.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by anonymous

Without "root=/dev/mtdblock1" in CMD_LINE
In drivers/mtd/mtdpart.c :
ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, slave->mtd.index);
Here ROOT_DEV = 32505857 as %lu

In init/do_mounts.c :
At the beginning of function "init mount_root(void)", ROOT_DEV = 0 as %lu

With "root=/dev/mtdblock1" in CMD_LINE
In drivers/mtd/mtdpart.c :
ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, slave->mtd.index);
Here ROOT_DEV = 32505857 as %lu

In init/do_mounts.c :
At the beginning of function "init mount_root(void)", ROOT_DEV = 32505857 as %lu

comment:2 Changed 6 years ago by Nicolas Le Falher <n.lefalher@…>

The problem is caused by patch 100-rdc_boards.patch.
This line override variable ROOT_DEV set by 400-rootfs_split.patch from generic target :

111	        ROOT_DEV = 0;

Without, rootfs auto-detect works

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.