* CramFS and "Unable to mount root fs on unknown-block(0,0)"
@ 2007-11-19 20:53 obelix0
0 siblings, 0 replies; only message in thread
From: obelix0 @ 2007-11-19 20:53 UTC (permalink / raw)
To: linux-mtd
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-19 20:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-19 20:53 CramFS and "Unable to mount root fs on unknown-block(0,0)" obelix0
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.