[U-Boot-Users] RO jffs2 implementation for bootloader

Ladislav Michl ladis at linux-mips.org
Wed May 16 14:36:22 CEST 2007


On Wed, May 16, 2007 at 02:17:17PM +0200, Matthieu CASTET wrote:
> I found that jffs2_1pass_read_inode code is buggy on garbage collected 
> image : we should load inode in version order (small first).
> If we don't, obsolete inode could be put in the final file.
> 
> ino=4 offset=5 dsize=5 version=4
> ino=4 offset=0 dsize=5 version=1
> ino=4 offset=5 dsize=5 version=2
> 
> The code will load version 4, version 1 and version 2. In the dest we 
> will have version 1 & 2 instead of version 1 & 4.

Hmm, did you
#define CFG_JFFS2_SORT_FRAGMENTS
?

Best regards,
	ladis




More information about the U-Boot mailing list