summaryrefslogtreecommitdiff
path: root/tools/env/fw_env.c
diff options
context:
space:
mode:
authorOliver Metz <oliver@freetz.org>2013-08-30 00:56:01 +0200
committerTom Rini <trini@ti.com>2013-09-06 13:09:08 -0400
commit23ef62d741911e75f23bfa500005bf08044be0a2 (patch)
tree68d05deda3ca977e3d5cfe39e8d8b9c5ec101afd /tools/env/fw_env.c
parenta82ca7bcd7c50fdd710a5eee6b739429c2d8f8d8 (diff)
downloadu-boot-imx-23ef62d741911e75f23bfa500005bf08044be0a2.zip
u-boot-imx-23ef62d741911e75f23bfa500005bf08044be0a2.tar.gz
u-boot-imx-23ef62d741911e75f23bfa500005bf08044be0a2.tar.bz2
fw_env: add redundant env support for MTD_ABSENT
Signed-off-by: Oliver Metz <oliver@freetz.org> Tested-by: Luka Perkov <luka@openwrt.org>
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 44607b1..65be5f3 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -1136,6 +1136,9 @@ int fw_env_open(void)
} else if (DEVTYPE(dev_current) == MTD_UBIVOLUME &&
DEVTYPE(!dev_current) == MTD_UBIVOLUME) {
environment.flag_scheme = FLAG_INCREMENTAL;
+ } else if (DEVTYPE(dev_current) == MTD_ABSENT &&
+ DEVTYPE(!dev_current) == MTD_ABSENT) {
+ environment.flag_scheme = FLAG_INCREMENTAL;
} else {
fprintf (stderr, "Incompatible flash types!\n");
return -1;