Cramfs root file system

2 messages, 2 authors, 2002-11-21 · open the first message on its own page

Cramfs root file system

From: Flavio Pereira <hidden>
Date: 2002-11-21 11:09:35

Hi All

Im trying to use a cramfs image as a root-file system at kernel boot
time.

I've built a cramfs image, copied it into my flash device (mtd3), and
can successfully mount it at runtime.

However at boot time I use root=dev/mtdblock3 (or dev/mtd3 im not sure
which one to use) and I get the following errors...

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
request_module[block-major-2]: Root fs not mounted
VFS: Cannot open root device "mtdblock3" or 02:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 02:00

Now, is it possible to do what Im trying to do, if so are there any
suggestions as to what I'm doing wrong?

Thanks
Flavio Pereira

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: Cramfs root file system

From: Dennis Khoo <hidden>
Date: 2002-11-21 19:17:51

Flavio,
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 02:00

Now, is it possible to do what Im trying to do, if so are there any
suggestions as to what I'm doing wrong?
I saw the same error when I was trying to mount jffs2 as root.  Maybe your
problem is similar to mine.

My solution:

1)   in kernel file init/main.c 's dev_name_struct,  add entry for
 "mtdblock", 0x1f00
if it's not there already.

2) in ppcboot =>setenv bootargs init=/linuxrc root=/dev/mtdblockx

Hope this helps.

Dennis Khoo
Software Engineer
Adapcom, Inc


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help