summaryrefslogtreecommitdiff
path: root/tools/env/fw_env.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2013-04-08 10:32:52 +0000
committerTom Rini <trini@ti.com>2013-04-11 15:52:55 -0400
commit785881f775252940185e10fbb2d5299c9ffa6bce (patch)
treeb945a64033ed2a9eeb87527c81a746a53ba18c2a /tools/env/fw_env.c
parent2b74433f365fa677a60431a80e524b5d8d04e995 (diff)
downloadu-boot-imx-785881f775252940185e10fbb2d5299c9ffa6bce.zip
u-boot-imx-785881f775252940185e10fbb2d5299c9ffa6bce.tar.gz
u-boot-imx-785881f775252940185e10fbb2d5299c9ffa6bce.tar.bz2
env: Add redundant env support to UBI env
Allow the user to specify two UBI volumes to use for the environment Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'tools/env/fw_env.c')
-rw-r--r--tools/env/fw_env.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 0dee682..01fc1d4 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -1149,6 +1149,9 @@ int fw_env_open(void)
} else if (DEVTYPE(dev_current) == MTD_DATAFLASH &&
DEVTYPE(!dev_current) == MTD_DATAFLASH) {
environment.flag_scheme = FLAG_BOOLEAN;
+ } else if (DEVTYPE(dev_current) == MTD_UBIVOLUME &&
+ DEVTYPE(!dev_current) == MTD_UBIVOLUME) {
+ environment.flag_scheme = FLAG_INCREMENTAL;
} else {
fprintf (stderr, "Incompatible flash types!\n");
return -1;