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

Laurent Pinchart laurentp at cse-semaphore.com
Tue Aug 28 10:21:20 CEST 2007


On Monday 27 August 2007 20:33, Sam Williams wrote:
> Laurent,
>
> Thanks for the tip. When I tried this I get the following error from
> u-boot:
>
> Scanning JFFS2 FS: ......... done.
> find_inode failed for name=usr
> ls: Failed to scan jffs2 file structure
>
> Any other ideas?

Make sure the "partition" environment variable references the correct flash 
partition.

> -----Original Message-----
> From: Laurent Pinchart [mailto:laurentp at cse-semaphore.com]
> Sent: Monday, August 27, 2007 11:43 AM
> To: u-boot-users at lists.sourceforge.net
> Cc: Sam Williams
> Subject: Re: [U-Boot-Users] u-boot/jffs2 issue
>
> 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
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.484 / Virus Database: 269.12.9/975 - Release Date: 8/26/2007
> 9:34 PM
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.484 / Virus Database: 269.12.9/975 - Release Date: 8/26/2007
> 9:34 PM

Best regards,

-- 
Laurent Pinchart
CSE Semaphore Belgium

Chaussée de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
F +32 (2) 387 42 75




More information about the U-Boot mailing list