Hi,

Our board stores the U-Boot environment in an MTD partition. I would like to
ensure that there is always an U-Boot environment stored in MTD so that the
userspace tool fw_setenv does not need to fall back on its built in default
environment or a default environment stored in a file (see
https://github.com/sbabic/libubootenv).

When U-Boot starts up it checks whether the specified MTD partition contains
a valid environment and loads it. In case there is no valid environment it
will use the compiled in default. Is there already a feature in U-Boot which
would then also write that default to the MTD partition?

Alternatively a Hush script could help. Is there an easy way to detect that
U-Boot is using the compiled in environment? In that case I could simply do a
saveenv (?) which would then initialize the MTD environment partition.

Greetings,
Mark

Building Technologies, Panel Software Fire (BT-FIR/ENG1) 
Bosch Sicherheitssysteme GmbH | Postfach 11 11 | 85626 Grasbrunn | GERMANY | 
www.boschsecurity.com

Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart HRB 23118 
Aufsichtsratsvorsitzender: Christian Fischer; Geschäftsführung: Tanja Rückert, 
Andreas Bartz, Thomas Quante, Bernhard Schuster 
_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to