[U-Boot] mtdparts and JFFS2

Renaud barbier renaud.barbier at ge.com
Mon May 4 17:20:59 CEST 2009


I have used the new (to me) dynamic partitioning system with JFFS2.

I have defined one partiton as follows:
mtdids=nor0=boardnor
mtdparts=mtdparts=boardnor:4m(boot)

After using chpart (chpart nor0,0) successfully I was not able to list 
the file
embedded in my jffs2 image using the command ls.

I later noticed that jffs2_part_info is called with current_dev = NULL;

I then declared current_dev global in cmd_mtdparts.c and external in 
cmd_jffs2.c

the 'ls' command then worked:
U-boot> ls
Scanning JFFS2 FS: . done.
 -rw-r--r--  1148560 Thu Apr 30 14:13:52 2009 uImage

So:
Is that a bug?
Or did I configure U-boot incorrectly?

thanks.







More information about the U-Boot mailing list