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

Mike Frysinger vapier at gentoo.org
Tue Mar 6 21:03:12 CET 2012


On Tuesday 06 March 2012 12:07:10 you wrote:
> On Mon, Mar 5, 2012 at 8:27 PM, Mike Frysinger wrote:
> > 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
> 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.
> 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.

i think this thread is what i was remembering:
	http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/109115

with that in place, it should be easy to implement the functionality you 
desire on top of that right ?
-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/20120306/c77f18d0/attachment.pgp>


More information about the U-Boot mailing list