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

Doug Anderson dianders at chromium.org
Tue Mar 6 18:07:10 CET 2012


On Mon, Mar 5, 2012 at 8:27 PM, Mike Frysinger <vapier at gentoo.org> wrote:

> this is kind of a crappy interface.


> also, doesn't the existing `env import`
> do this ?
>  * env import [-d] [-t | -b | -c] addr [size]
>  *  -d: delete existing environment before importing;
>  *      otherwise overwrite / append to existion definitions
> so if we "imported" the default, we'd get this ?

It's not quite possible to just import the default from the saved for two
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.
2. The order of precedence would be a little different (default would
override saved).

...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.


More information about the U-Boot mailing list