mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Strange! Cannot use JFFS2 as root
@ 2004-10-20 14:03 colin
  2004-10-20 14:29 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: colin @ 2004-10-20 14:03 UTC (permalink / raw)
  To: linux-kernel



Hi all,
I had booted up Linux with nfs root, and write a JFFS2 image to /dev/mtd1.
Here is my cmdline for Kernel:
     go 0x80305018 root=/dev/nfs rw nfsroot=172.19.26.145:/nfs/rootfs
ip=172.19.27.193::172.19.27.254:255.255.254.0:::
mtdparts=maltaflash:1536k(ldr),2048k(root)

After writing the JFFS2 image to /dev/mtd1, I can mount /dev/mtdblcok1 to
some directory.
    mount -t jffs2 /dev/mtdblock1 /mnt

Next, I hope to boot up Linux with JFFS2 root, and try to give this cmdline
to Kernel:
    go 0x80305018 rootfstype=jffs2
mtdparts=maltaflash:1536k(ldr),2048k(root) root=/dev/mtdblock1

and the Kernel would complain me about no root:
    VFS: Unable to mount root fs via NFS, trying floppy.
    Kernel panic: VFS: Unable to mount root fs on unknown-block(2,0)

I traced the code and found that when passing "/dev/mtdblock1" to
name_to_dev_t() in do_mounts.c, it would return 0 at every try_name(), which
will fail at open() with the path "/sys/block/%s/dev".

What's the problem? Could anyone tell me?

Thanks and regards,
Colin





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-10-21  1:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-20 14:03 Strange! Cannot use JFFS2 as root colin
2004-10-20 14:29 ` Ian Campbell
2004-10-21  1:49   ` [*VIP*] " colin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome