From: Tom Rini Date: Tue, 6 Aug 2013 17:37:41 -0400 Subject: [U-Boot] [PATCH] wandboard: add pxe support, set default boot command like highbank In-Reply-To: References: <51FA9891.9040000@gmail.com> <51FB786E.4010908@denx.de> <20130805052933.59F9B380495@gemini.denx.de> <20130806113751.957DA380DF0@gemini.denx.de> <52011B55.3000506@wwwdotorg.org> <52012A59.8030309@wwwdotorg.org> Message-ID: <20130806213741.GN5164@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Aug 06, 2013 at 01:58:22PM -0300, Otavio Salvador wrote: > On Tue, Aug 6, 2013 at 1:54 PM, Stephen Warren wrote: > >> How can someone 'overwrite' the default environment from system or > >> when generating a FIT image? > > > > If U-Boot is running, you can get back to the default environment by > > running exactly the commands you wrote below. > > > > If you're flashing U-Boot, you could force it to use the default > > environment when it boots by erasing/corrupting the copy of the > > environment that's stored in flash (or wherever ENV_IS points) at the > > same time that you flash the new U-Boot binary. > > > > The question of how to get the default environment when generating a FIT > > image doesn't make sense; generating a FIT image of something (kernel, > > initrd, DTB?) is entirely unrelated to the environment content that > > U-Boot uses when running. > > Ok but when I do env -f -d -a it uses the built-in environment as > default. How can I 'change' this default without rebuilding U-Boot > binary? What you want (and I'm not saying this works today) would be: load ... $addr otavios-sane-env.txt env import -t --reset-to $addr Where --reset-to cleared the current environment and set it to only the valid env found at $addr. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: