u-boot commands "loadenv" and "defaultenv" (GTA02)

Werner Almesberger werner at openmoko.org
Wed Jan 30 22:52:54 CET 2008

loadenv.patch (revision 3986) adds the commands "loadenv" and "defaultenv",
which replace the current in-memory environment with the one in NAND or
the one hard-coded into u-boot, respectively

This will be useful for repairing the environment when booting the GTA02
from NOR (in which case it always uses the default environment, to avoid

Note: I'm not sure if upstream will like this patch, since it meddles a
bit with internals. So it's on probation for now.

----------------------------------- Changes -----------------------------------

- common/cmd_nvedit.c (do_loadenv): load the environment from persistent
  storage (without updating settings derived from the environment)
- common/cmd_nvedit.c (do_defaultenv): reset the environment to default
- include/configs/neo1973_gta02.h: added CONFIG_CMD_LOADENV and

More information about the openmoko-kernel mailing list