[U-Boot-Users] Delete all env vars except read onlys
Martin Krause
Martin.Krause at tqs.de
Mon Feb 18 10:41:54 CET 2008
u-boot-users-bounces at lists.sourceforge.net wrote on :
> Uff....
>
> After a longish discussion with Detlev we came up with a new
> proposal, which hopefully is acceptable to all. We agreed that a
> command name like "clearenv" or "scrubenv" or similar (which doesn't
> require any arguments) might be too dangerous for the unexperienced
> user why randomly types commands "just to see what happens". For
> example, even if you type "erase" it will not do any damage because
> arguments are missing - but "erase all" will blow away most of your
> flash content without asking.
>
> So the idea is to call the new command "environment" (or short "env");
> usage would be then:
>
> => env clear
>
> to clear the envrionment (except read-only variables); thsi also
> allows for pretty useful additional functionality like this:
>
> => env default
This would be a very nice feature. With this command no knowledge is
needed in which sector(s) the environment is stored. This would be
very convenient in our production or service department, because
all our different boards could be reseted to a known state with the
same command.
>
> to reset the environment to the (compiled in) default settings.
>
> One might even consider something like
>
> => env clear all
>
> to blow away the whole env, including the read-only variables.
>
>
> Would that be acceptable to everybody?
No objections!
Best Regards,
Martin Krause
--
TQ-Systems GmbH
Muehlstrasse 2, Gut Delling, D-82229 Seefeld
Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913
Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl
http://www.tq-group.com
More information about the U-Boot
mailing list