[U-Boot-Users] auto-save environment if using default environment?
w.wegner at astro-kom.de
w.wegner at astro-kom.de
Tue Mar 25 17:18:41 CET 2008
On 25 Mar 2008 at 17:00, Markus Klotzbücher wrote:
>
> w.wegner at astro-kom.de writes:
>
> > I just had the problem of fw_{print,save}env not being able to access
> > the environment because I was using the default (builtin) environment
> > after flashing U-Boot.
[...]>
> AFAIK there is currently no way to check this from the U-Boot
> shell. Nevertheless I think that would be the way to go instead of
> hard-coding this. How about setting an environment variable like
> "env_default" if the default environment is used? That way scripts can
> be used to run saveenv but could also do more complex initialization.
This seems to be the cleanest solution to me - and the easiest, too,
because no patching of U-Boot is required.
I just did not think about the possibilty to un-set the environment
variable when this initialization is run to make it a one-shot run... 8)
> Best regards
>
> Markus Klotzbuecher
Thank you and best regards,
Wolfgang
More information about the U-Boot
mailing list