A litrtle bit more info. I turned on the debug statements in u-boot and when I do an ls of the jffs2 file system, I see this:
*=> ls ---mtdparts_init--- dev id: type = 1, num = 0, size = 0x01000000, mtd_id = single part part : name = static, size = 0x01000000, offset = 0x00000000 --- jffs2_part_info: partition number 0 for device nor0 (single part) Scanning JFFS2 FS: ...... done. drwxrwxr-x 0 Sun Apr 03 17:39:05 2011 bin drwxr-xr-x 0 Sat Apr 02 19:03:52 2011 dev drwxr-xr-x 0 Sun Apr 03 17:39:05 2011 etc drwxrwxr-x 0 Sat Apr 02 19:03:52 2011 home lrwxrwxrwx 9 Sun Apr 03 17:39:05 2011 init -> sbin/init ... drwxrwxrwt 0 Sat Apr 02 19:03:39 2011 tmp -rw-r--r-- 1892470 Sun Apr 03 17:37:56 2011 uImage drwxrwxr-x 0 Tue Nov 30 15:52:43 2010 usr drwxrwxr-x 0 Tue Nov 30 15:52:43 2010 var * On Sun, Apr 3, 2011 at 11:36 AM, Charles Krinke <charles.kri...@gmail.com>wrote: > 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 <w...@denx.de> wrote: > >> Dear Charles Krinke, >> >> In message <AANLkTi=pfbvvvko1irnuxdyyu0xwdk6pgretf90+j...@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: w...@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 > > > -- Charles Krinke
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot