From: Mike Frysinger Date: Tue, 6 Mar 2012 15:03:12 -0500 Subject: [U-Boot] [PATCH] env: Add the ability to merge the saved env with the default. In-Reply-To: References: <1329262255-27157-1-git-send-email-dianders@chromium.org> <201203052327.26876.vapier@gentoo.org> Message-ID: <201203061503.15227.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: