[U-Boot] [PATCH] env: Add the ability to merge the saved env with the default.

Wolfgang Denk wd at denx.de
Tue Mar 6 20:20:16 CET 2012

Dear Doug Anderson,

In message <CAD=FV=Ws+FuCqUXRd3-PJS-2y5PTspgegMftvTOQqhK=96y9MQ at mail.gmail.com> you wrote:
> It's not quite possible to just import the default from the saved for two
> reasons:
> 1. I don't know of any way to import the default.  It's not stored at any
> well-known address or with any well-known size.

Then save it to a well-known address. env reset followed by env export
should be a reasonably straughtforward way to get there.

> 2. The order of precedence would be a little different (default would
> override saved).

I'm not sure I understand what you mean.  You can chose if you import
the saved defaults before or after your private settings.

> ...but I think you're right that using "env import" is the better way to
> go.  I can always have the default boot command load the "overrides" into
> memory and the import them.  That works just fine for us.
> Thank you for your review and suggestion!
> Please consider this patch abandoned.

Done.  Thanks.

Best regards,

Wolfgang Denk

DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Es sind überhaupt nur die Dummköpfe, die sich den Befehlen der  Mäch-
tigen  widersetzen.  Um  sie  zu ruinieren ist es genug, ihre Befehle
treu zu erfüllen.                  - Peter Hacks: "Die schöne Helena"

More information about the U-Boot mailing list