From: Oliver Metz Date: Thu, 29 Aug 2013 22:56:01 +0000 (+0200) Subject: fw_env: add redundant env support for MTD_ABSENT X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=23ef62d741911e75f23bfa500005bf08044be0a2;p=u-boot.git fw_env: add redundant env support for MTD_ABSENT Signed-off-by: Oliver Metz Tested-by: Luka Perkov --- diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 44607b164a..65be5f3fb0 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;