Files
u-boot/include
Adrian Freihofer cc832b6764 siemens: capricorn: protect environment
With ENV_WRITEABLE_LIST only specific environment variables lisetd in
CFG_ENV_FLAGS_LIST_STATIC are read from the u-boot environment storage.
All other environment variables are set to default values and are not
written back to the storage.

The u-boot environment usually stays for the lifetime of the product.
There is no A/B copy mechanism as for the firmware itself. That means
that incompatible changes to environment variables in future u-boot
versions may lead to serious issues if the old environment is used with
a new u-boot version or vice versa.

Having this protection in place ensures that only a limited set of
environment variables are persisted across u-boot versions. All the
macros not listed in CFG_ENV_FLAGS_LIST_STATIC are now part of the
u-boot binary which is redundant and immutable. This guarantees that
the u-boot version and the default values of these environment variables
are always in sync and cannot be changed at runtime.

ustate and rastate are not relevant for u-boot itself. ustate is used
by swupdate which persists the transaction state in the environment.
rastate is a similar variable used by another user space application.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Heiko Schocher <hs@nabladev.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Heiko Schocher <hs@nabladev.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2026-02-28 15:31:50 -03:00
..
2025-11-06 08:30:33 -06:00
2026-01-14 16:25:09 +01:00
2025-11-21 19:25:56 +01:00
2025-12-04 09:38:58 -06:00
2025-08-25 16:20:48 +02:00
2025-07-23 17:37:14 -06:00
2025-10-26 09:03:32 -06:00
2025-06-12 16:14:33 -06:00
2025-12-30 11:22:57 -06:00
2025-08-06 08:41:30 +02:00
2025-09-26 11:55:13 -06:00
2025-11-07 15:34:04 -06:00
2025-08-25 16:20:48 +02:00
2025-06-27 11:48:20 -06:00
2026-02-02 14:24:40 -06:00
2025-08-06 08:41:30 +02:00
2025-07-08 13:11:12 -06:00
2025-07-08 13:11:12 -06:00
2025-12-04 09:38:58 -06:00
2025-07-11 10:43:29 -06:00