CramFS and "Unable to mount root fs on unknown-block(0,0)"

obelix0 obelix0 at yahoo.fr
Mon Nov 19 15:53:37 EST 2007


Hi everybody !

I would like to compile a 2.6.9 linux kernel for my flash.

Please look at my config file :
...
CONFIG_CMDLINE="rootfstype=jffs2 root=/dev/mtdblock/2 ro 
mtdparts=phys_mapped_flash:1m(firmware)ro,1m(kernel),20m(root),-(jffs2)"
CONFIG_CRAMFS=y
...

to have this schema on flash :
- 1Mo for firmware in read only
- 1Mo for Kernel in read only
- 20Mo for root file system in read only CramFS
- 14Mo for file system in read and write
- and ramFS for /tmp /etc /var

is it the right way to build the flash ?

I compiled my kernel and when I started, I had this error message :
------------------------------------------------------------------------------------------------------------
Now booting the kernel
Linux version 2.6.9-elinos-111 (gcc version 3.2.3 (ELinOS V3.1 3.2.3-35 
2005-07-04)) #1 Mon Nov 19 11:27:47 CET 2007
Kernel command line: rootfstype=cramfs root=/dev/mtdblock/2 ro 
mtdparts=phys_mapped_flash:1m(firmware)ro,1m(kernel)ro,20m(root)ro,-(jffs2)
...
physmap flash device: 4000000 at f0000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
...
4 cmdlinepart partitions found on MTD device phys_mapped_flash
Creating 4 MTD partitions on "phys_mapped_flash":
0x00000000-0x00100000 : "firmware"
0x00100000-0x00200000 : "kernel"
0x00200000-0x01600000 : "root"
0x01600000-0x04000000 : "jffs2"
...
Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(0,0)
------------------------------------------------------------------------------------------------------------

I compiled with cramfs in kernel, not as module, I checked my config 
file, I searched on the web but I haven't got any idea !

thanks for your help

Obelix



More information about the linux-mtd mailing list