From: Ulf Samuelsson <ulf@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] RFC: hidden environment variables
Date: Mon, 23 Apr 2007 20:47:00 +0200 [thread overview]
Message-ID: <005f01c785da$03821550$9003960a@atmel.com> (raw)
In-Reply-To: 462CE302.7030302@freescale.com
> WD et al:
>
> I'd like to propose a new feature for U-Boot: hidden environment variables. These are
> variables that are stored in environment but are normally not visible to the user.
> Specifically, a hidden environment variable would have these properties:
>
> 1) Doesn't show up via "print" or "echo"
> 2) Can't be referenced via a $
> 3) Can't be set via setenv
>
I think an attribute byte for each variable would be nice.
Then you can have attributes like:
hidden
user editable
locked
exectuable
I would for instance like to treat ethaddr differently.
This should be freely changeable until it is locked.
I would also like to get rid of the "run" command
and execute commands directly.
These commands would be referencing commands which does not need to be visible.
> Only internal U-Boot code can modify/query these variables. This way, internal code can
> use the existing environment data structure without having to expose this data to the user
> (and giving him the impression that he can access/manipulate this data directly).
>
> The only drawback to this plan is that, after modifying a hidden environment variable, the
> user would need to be told to issue "saveenv" if he wants his changes saved permanently.
>
> One advantage of this feature is that we can develop new commands that store data
> permanently without having to add hooks into _do_setenv().
>
> --
> Timur Tabi
> Linux Kernel Developer @ Freescale
>
Best Regards
Ulf Samuelsson ulf at atmel.com
Atmel Nordic AB
Mail: Box 2033, 174 02 Sundbyberg, Sweden
Visit: Kavalleriv?gen 24, 174 58 Sundbyberg, Sweden
Phone +46 (8) 441 54 22 Fax +46 (8) 441 54 29
GSM +46 (706) 22 44 57
Technical support when I am not available:
AT90 AVR Applications Group: mailto:avr at atmel.com
AT91 ARM Applications Group: mailto:at91support at atmel.com
AVR32 Applications Group mailto:avr32 at atmel.com
http://www.avrfreaks.net/; http://avr32linux.org/
http://www.at91.com/ ; ftp://at91dist:distrib at 81.80.104.162/
next prev parent reply other threads:[~2007-04-23 18:47 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-23 16:46 [U-Boot-Users] RFC: hidden environment variables Timur Tabi
2007-04-23 17:29 ` Grant Likely
2007-04-23 18:47 ` Ulf Samuelsson [this message]
2007-04-23 19:22 ` Wolfgang Denk
2007-04-23 20:28 ` Scott Wood
2007-04-23 21:51 ` Wolfgang Denk
2007-04-23 23:20 ` Timur Tabi
2007-04-24 0:12 ` Wolfgang Denk
2007-04-24 18:58 ` Rune Torgersen
2007-04-23 19:28 ` Ben Warren
2007-04-23 19:32 ` Ulf Samuelsson
2007-04-23 19:39 ` Ben Warren
2007-04-23 19:45 ` Timur Tabi
2007-04-23 19:53 ` Ben Warren
2007-04-23 21:49 ` Timur Tabi
2007-04-23 22:04 ` Ben Warren
2007-04-23 21:37 ` Wolfgang Denk
2007-04-23 21:56 ` Timur Tabi
2007-04-23 22:13 ` Wolfgang Denk
2007-04-23 23:19 ` Timur Tabi
2007-04-24 0:06 ` Wolfgang Denk
2007-04-23 21:34 ` Wolfgang Denk
2007-04-24 9:05 ` Ladislav Michl
2007-04-23 19:49 ` Scott Wood
2007-04-23 21:40 ` Wolfgang Denk
2007-04-23 19:50 ` Timur Tabi
2007-04-23 20:05 ` Jeff Mann
2007-04-23 21:46 ` Wolfgang Denk
2007-04-23 21:51 ` Timur Tabi
2007-04-23 22:05 ` Wolfgang Denk
2007-04-23 23:14 ` Timur Tabi
2007-04-23 23:52 ` Wolfgang Denk
2007-04-24 13:43 ` Truong, Loc
2007-04-23 21:43 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='005f01c785da$03821550$9003960a@atmel.com' \
--to=ulf@atmel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.