[ARMedslack] Missing files in "uinitrd-kirkwood" to support root file-system on SDHC card

Cédric VINCENT cedric.vincent at gmail.com
Tue Feb 16 09:18:57 UTC 2010


On Mon, Feb 15, 2010 at 11:54 PM, Stuart Winter <m-lists at biscuit.org.uk> wrote:
> I've added mvsdio into the initrd for the next kernel update (which will
> be when Pat uploads the truck load of updates waiting for -current).

Many thanks!

> /dev entries are made by udev.

I don't think the udev daemon already runs at this stage since I did
not see the "/sbin/udev*" binaries into the default uinitrd-kirkwood
("/dev/sda[1-3]" nodes were statically created). Maybe you forgot to
include those binaries since the "/init" script tries to launch the
daemon (if it exists) moreover some configuration files are lying in
the "/etc/udev" directory of this initrd image.

> root at zaden:~/ac/source/k# mtdinfo
> Count of MTD devices:           3
> Present MTD devices:            mtd0, mtd1, mtd2
> Sysfs interface supported:      yes
> [...]
> That's what I have on my sheevaplug.

I guess MTD devices are only for the internal NAND Flash.

    [   22.273872] NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc
(Samsung NAND 512MiB 3,3V 8-bit)
    [   22.412637] Creating 3 MTD partitions on "orion_nand":
    [...]
    [   22.417801] 0x000000000000-0x000000100000 : "u-boot"
    [...]
    [   22.427088] 0x000000100000-0x000000500000 : "uImage"
    [...]
    [   22.437437] 0x000000500000-0x000020000000 : "root"

The SD card is managed by a MMC device (as for my Slackware-powered
laptop):

    cedric at metalplug:/dev/shm/initrd$ dmesg | grep mmc
    [    0.000000] Kernel command line: console=ttyS0,115200
root=/dev/mmcblk0p3 rootfs=ext2
    [   22.915533] mmc0: mvsdio driver initialized, lacking card
detect (fall back to polling)
    [   23.008888] mmc0: host does not support reading read-only
switch. assuming write-enable.
    [   23.021697] mmc0: new high speed SDHC card at address 0007
    [   23.041789] mmcblk0: mmc0:0007 SD08G 7.48 GiB
    [   23.046402]  mmcblk0: p1 p2 p3

    cedric at metalplug:/dev/shm/initrd$ ls -l /dev/mmcblk0*
    brw-rw---- 1 root disk 179, 0 2010-02-15 17:58 /dev/mmcblk0
    brw-rw---- 1 root disk 179, 1 2010-02-15 17:58 /dev/mmcblk0p1
    brw-rw---- 1 root disk 179, 2 2010-02-15 17:58 /dev/mmcblk0p2
    brw-rw---- 1 root disk 179, 3 2010-02-15 17:58 /dev/mmcblk0p3

Obviously, the nodes above were created by the udev daemon once the
system has changed its root file-system from the initrd to the SD
card.

> Do you know if anything else is required in the kernel config to put them
> there?

In fact, I'm using the default uImage-kirkwood, I only have to add the
"/dev/mmcblk*" nodes and the "mvsdio" module to the default
uinitrd-kirkwood.

Thanks,
Cédric.


More information about the ARMedslack mailing list