[U-Boot] Does uboot EBS(erase block summary) to reduce JFFS2 scaning time?

Joakim Tjernlund joakim.tjernlund at transmode.se
Tue Nov 3 10:43:46 CET 2009


HeLei <leon.he at msn.com> wrote on 03/11/2009 09:21:04:
> > - Don't scan more than you have to, that is, ls/read /some/file
> > should only scan and keep records to do the ls/read of that
> > particular file.
>    So we have to have an index, or something like that, to tell which file in
> which EBs. This index is always generated by the scan for the first time.
>    The only workaround like this idea is to divide the flash into several
> paritions, the scan is performed on certain partition each time.

Forgot to comment on this one :)
I belive u-boot creates a cache for the whole FS a first access
so that later accesses are fast. I think this is suboptimal. Consider
the common case to boot a linux kernel, you only want to get at the
kernel image so creating a cache for the whole FS is a waste.

Partitions works too, but is a waste of flash and it can be hard to get the
partition size(s) right.

      Jocke



More information about the U-Boot mailing list