diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2013-04-08 10:32:52 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-04-11 15:52:55 -0400 |
commit | 785881f775252940185e10fbb2d5299c9ffa6bce (patch) | |
tree | b945a64033ed2a9eeb87527c81a746a53ba18c2a /tools/env/fw_env.c | |
parent | 2b74433f365fa677a60431a80e524b5d8d04e995 (diff) |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 0dee682629..01fc1d4e57 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; |