From: Wolfgang Denk Date: Tue, 06 Mar 2012 20:20:16 +0100 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: <20120306192016.20C2B202D76@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Doug Anderson, In message 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"