]> git.sur5r.net Git - u-boot/commitdiff
fw_env: add redundant env support for MTD_ABSENT
authorOliver Metz <oliver@freetz.org>
Thu, 29 Aug 2013 22:56:01 +0000 (00:56 +0200)
committerTom Rini <trini@ti.com>
Fri, 6 Sep 2013 17:09:08 +0000 (13:09 -0400)
Signed-off-by: Oliver Metz <oliver@freetz.org>
Tested-by: Luka Perkov <luka@openwrt.org>
tools/env/fw_env.c

index 44607b164a7024501360d206b90b1b6d419e6a29..65be5f3fb07e3d202c4f9b960c8dae81b1da0c5c 100644 (file)
@@ -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;