All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: u-boot@lists.denx.de
Subject: [U-Boot] Does uboot EBS(erase block summary) to reduce JFFS2	scaning time?
Date: Tue, 3 Nov 2009 08:41:08 +0100	[thread overview]
Message-ID: <OFE141BEC6.2AD09552-ONC1257663.002976D8-C1257663.002A37E3@transmode.se> (raw)
In-Reply-To: <COL117-W39489EB6F20294AE9A03B8EEB20@phx.gbl>


>
> Hi, All
>
>
>
>   Each time JFFS2 initialized, uboot need to scan the whole flash. This is
> fairly time consuming.
>
>
>
>   So EBS(erase block summary) is used to JFFS2 to reduce mounting time. And I
> believe this can also be used to UBOOT to reduce booting time.
>
>
>
>   Does UBOOT support this feature? or does any other solution in uboot to
> reduce JFFS2 scaning time?

Don't think EBS is going to buy you much. The main problem is that the
scanning of JFFS2 in u-boot is inefficient. u-boot could take a
hint from the kernel impl. of JFFS2 to reduce scanning. The biggest
ones are:
 - do no scan the whole EB when it is empty.
 - impl. a better crc32(use the one from linux)
 - 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.

There were some patches floating around quite some time ago to improve
scanning but I don't think they made it into the u-boot repo.


    Jocke

  reply	other threads:[~2009-11-03  7:41 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-03  6:37 [U-Boot] Does uboot EBS(erase block summary) to reduce JFFS2 scaning time? HeLei
2009-11-03  7:41 ` Joakim Tjernlund [this message]
2009-11-03  8:21   ` HeLei
2009-11-03  9:08     ` Joakim Tjernlund
2009-11-03  9:21       ` HeLei
2009-11-03  9:29         ` Joakim Tjernlund
2009-11-03  9:39           ` HeLei
2009-11-03  9:52             ` Joakim Tjernlund
2009-11-03 10:02               ` HeLei
2009-11-03  9:20     ` Joakim Tjernlund
2009-11-03  9:26       ` HeLei
2009-11-03  9:35         ` Joakim Tjernlund
2009-11-03 10:55       ` Joakim Tjernlund
2009-11-03 11:08         ` HeLei
2009-11-03 11:13           ` Joakim Tjernlund
2009-11-03 11:21             ` HeLei
2009-11-03 13:21         ` Wolfgang Denk
2009-11-03 13:30           ` Joakim Tjernlund
2009-11-03 15:57           ` Joakim Tjernlund
2009-11-03  9:43     ` Joakim Tjernlund
2009-11-03 10:01       ` HeLei
2009-11-05  8:33   ` HeLei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFE141BEC6.2AD09552-ONC1257663.002976D8-C1257663.002A37E3@transmode.se \
    --to=joakim.tjernlund@transmode.se \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.