[U-Boot] Searching for JFFS2 understanding.

Charles Krinke charles.krinke at gmail.com
Sun Apr 3 20:36:10 CEST 2011


I believe the command line to the kernel is indeed not quite complete, but
here it is at this point:

*bootargs root=mtd:nor0 rw rootfstype=jffs2
mtdparts=nor0:3072k(u-boot),-(jffs2) console=ttyS0,115200*

With this command line, the kernel printk's just before it panics are:
*MTDSB: dev_name "mtd:nor0"
MTDSB: mtd:%s, name "nor0"
MTD: MTD device with name "nor0" not found.
MTDSB: lookup_bdev() returned -2
VFS: Cannot open root device "mtd:nor0" or unknown-block(0,0)
*
I can see by looking in the mtdsuper.c file in the kernel that it is now
looking for mtd:something and that the previous /dev/mtdblockX is
deprecated.

I believe I am close but dont quite have the new syntax for passing this
command line for jffs2.



On Sun, Apr 3, 2011 at 1:20 AM, Wolfgang Denk <wd at denx.de> wrote:

> Dear Charles Krinke,
>
> In message <AANLkTi=pfBvvVko1iRnuxdyyU0xWdK6pGretf90+jO5F at mail.gmail.com>
> you wrote:
> >
> > I have *CONFIG_CMD_JFFS2* defined, but not *CONFIG_CMD_MTDPARTS* as they
> > seem to be mutually exclusive.
>
> They are not.  There are 64 boards in mainline which define both.
>
> > thinking this would define sufficiently mtdparts for the Linux kernel to
> > boot. Maybe there is a C source file in the linux kernel that needs the
> mtd
> > partitioning information hard-code? I vaguely remember something like
> this a
> > while back.
>
> No.  You just select CONFIG_MTD_CMDLINE_PARTS=y in the Linux kernel
> configuration.
>
> > List of all partitions:
> > No filesystem could mount root, tried:  jffs2*
>
> Seems your kernel does not recognize any MTD partitions at all.
>
> Do you pass any mtdparts= boot argument to the kernel at all?
> What exactly are your bootargs?
>
> Did you enable MTD support and CMDLINE_PARTS in the kernel config?
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> Die Freiheit des Menschen liegt nicht darin, dass er tun kann, was er
> will, sondern darin, dass er nicht tun muss, was er nicht will.
>                                             -- Jean-Jacques Rousseau
>



-- 
Charles Krinke


More information about the U-Boot mailing list