[U-Boot] [RFC PATCH 1/2] sunxi: retrieve FEL-provided values to environment variables

Ian Campbell ijc+uboot at hellion.org.uk
Sat Sep 12 13:58:07 CEST 2015


On Thu, 2015-09-10 at 20:34 +0200, Hans de Goede wrote:
> [...]
> 
> What if the user interrupts auto-boot with a fel provided boot.scr
> and then does "saveenv" ?

This is an interesting question which is more generic than just these
variable, i.e. it applies to some extent to "ipaddr" when someone does
"dhcp ; saveenv" too.

Grepping around to see if there was any special handling for ipaddr I
came across "Vendor Parameter Protection" in the top-level README as
well as "CONFIG_ENV_FLAGS_LIST_DEFAULT" (and _STATIC) and various
default settings in include/env_flags.h.

I think CONFIG_ENV_FLAGS_LIST_* are what we want, and we want fel* to
be flagged "r" for read only and perhaps given an appropriate type
(either "d" or "x" for decimal or hex respectively, I suppose).

Ian.


More information about the U-Boot mailing list