1 tools/fw_env: add redundant env support for MTD_ABSENT
3 Signed-off-by: Oliver Metz <oliver@freetz.org>
5 tools/env/fw_env.c | 3 +++
6 1 file changed, 3 insertions(+)
8 --- a/tools/env/fw_env.c
9 +++ b/tools/env/fw_env.c
10 @@ -1164,6 +1164,9 @@ int fw_env_open(void)
11 } else if (DEVTYPE(dev_current) == MTD_UBIVOLUME &&
12 DEVTYPE(!dev_current) == MTD_UBIVOLUME) {
13 environment.flag_scheme = FLAG_INCREMENTAL;
14 + } else if (DEVTYPE(dev_current) == MTD_ABSENT &&
15 + DEVTYPE(!dev_current) == MTD_ABSENT) {
16 + environment.flag_scheme = FLAG_INCREMENTAL;
18 fprintf (stderr, "Incompatible flash types!\n");