All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] incremental environment updating
Date: Mon, 13 Apr 2009 06:09:07 -0400	[thread overview]
Message-ID: <200904130609.08060.vapier@gentoo.org> (raw)

currently the env code will erase the entire env storage before writing back 
out the current env, even if the env storage has enough empty space to store 
the current env.  for example, if CONFIG_ENV_SIZE is declared as 0x2000 but 
the current env only takes up ~0x300 bytes, the whole 0x2000 is erased and 
then the ~0x300 gets written out.  seems like we can get a pretty good return 
for fairly low effort if we appended env updates rather than erasing/writing 
every time ?  it'd certainly be faster.  while systems with a dedicated sector 
this isnt so bad, but for people who have to embed the env in the middle of a 
large sector, this would be much faster most of the time.

has there been previous discussion along these lines that i havent seen ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090413/88540c1f/attachment.pgp 

             reply	other threads:[~2009-04-13 10:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-13 10:09 Mike Frysinger [this message]
2009-04-13 10:15 ` [U-Boot] incremental environment updating Wolfgang Denk
2009-04-13 10:34   ` Mike Frysinger
2009-04-13 12:12     ` Jerry Van Baren
2009-04-13 12:26       ` Wolfgang Denk
2009-04-13 12:53         ` Jerry Van Baren
2009-04-13 13:06           ` Wolfgang Denk
2009-04-13 13:57             ` Jerry Van Baren
2009-04-13 12:34       ` Mike Frysinger
2009-04-13 13:04         ` Wolfgang Denk
2009-04-13 13:11         ` Jerry Van Baren
2009-04-13 13:30           ` Mike Frysinger

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=200904130609.08060.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --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.