Add support for non volatile variables
This adds (back) support for non volatile variables. Non volatile
variables are variables which are stored in the environment over
reboot. They are used in the same way as the global variables, but
with a 'nv' command and device. The variables are stored under
/env/nv/, one variable per file. Adding a nv variable automatically
adds a global variable with the same name. Changing a nv variable
also changes the same global variable, but not the other way round.
This allows for example to configure the username as:

nv user=sha; saveenv

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent fe39e8a commit 3249006a2facd31a072fd2808991697b4727643e
@Sascha Hauer Sascha Hauer authored on 18 Jun 2014
Showing 9 changed files
View
Documentation/user/variables.rst
View
commands/Kconfig
View
commands/Makefile
View
commands/loadenv.c
View
commands/nv.c 0 → 100644
View
common/environment.c
View
common/globalvar.c
View
common/startup.c
View
include/globalvar.h