Re: [*VIP*] Re: Strange! Cannot use JFFS2 as root

From: colin
Date: Wed Oct 20 2004 - 21:02:58 EST



Hi Ian,
Thank you. It works by your way.
I had already tried "root=1f:01" and it didn't work, and then I spent whole
day to test it... :-(
It seems that "root=1f01" and "root=31:01" are both acceptable.

Thanks and regards,
Colin


----- Original Message -----
From: "Ian Campbell" <icampbell@xxxxxxxxx>
To: "colin" <colin@xxxxxxxxxxxxxx>
Cc: <linux-kernel@xxxxxxxxxxxxxxx>
Sent: Wednesday, October 20, 2004 10:29 PM
Subject: [*VIP*] Re: Strange! Cannot use JFFS2 as root


> > 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?
>
> If I remember correctly you need to pass the root in as the major and
> minor numbers for jffs2 on 2.6. For example my 2.6 command line is
> root=31:03 rootfstype=jffs2 ro console=ttyS0,115200
> rather that root=/dev/mtdblock3.
>
> I can't remember why this is the case though.
>
> Ian.
> --
> Ian Campbell, Senior Design Engineer
> Web: http://www.arcom.com
> Arcom, Clifton Road, Direct: +44 (0)1223 403 465
> Cambridge CB1 7EA, United Kingdom Phone: +44 (0)1223 411 200
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/