[U-Boot-Users] u-boot/jffs2 issue

Laurent Pinchart laurentp at cse-semaphore.com
Mon Aug 27 18:43:09 CEST 2007


Hi Sam,

On Monday 27 August 2007 16:22, Sam Williams wrote:
> I’m seeing a strange issue with u-boot when I do a directory listing on a 
> jffs2 filesystem. There are a couple of files that are listed numerous
> times. There appears to be a listing for each time the file was modified.
> FWIW, these files are modified one line at a time. I see this problem on
> both u-boot versions 1.1.4 and 1.2.0, but only with the latest kernel
> (2.6.21gum   (gumstix)) but not with an older kernel (2.6.20-rt5gum  
> (gumstix)). It looks like maybe some changes to the jffs2 in the latest
> kernel are not understood by u-boot?
>
> Here is an example:
>
> -rw-r--r--       21 Thu Jan 01 00:01:03 1970 ally.conf
> -rw-r--r--       44 Thu Jan 01 00:01:03 1970 ally.conf
> -rw-r--r--       66 Thu Jan 01 00:01:03 1970 ally.conf
> -rw-r--r--       85 Thu Jan 01 00:01:03 1970 ally.conf
> -rw-r--r--      104 Thu Jan 01 00:01:03 1970 ally.conf
> -rw-r--r--      122 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      140 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      159 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      180 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      210 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      235 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      268 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      283 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      298 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      319 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      335 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      348 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      361 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      375 Thu Jan 01 00:01:04 1970 ally.conf
> -rw-r--r--      405 Thu Jan 01 00:01:04 1970 ally.conf
>
> Once I boot into Linux, everything seems fine.
>
> Any ideas or suggestions?

You might need to set CFG_JFFS2_SORT_FRAGMENTS in the U-Boot configuration. On 
a read/write partition, JFFS2 basically appends new data  without overwriting 
old data. U-Boot will then need to sort data fragments to find out which ones 
are obsoleted by older ones.

Regards,

Laurent Pinchart




More information about the U-Boot mailing list