mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
fw_env: add redundant env support for MTD_ABSENT
Signed-off-by: Oliver Metz <oliver@freetz.org> Tested-by: Luka Perkov <luka@openwrt.org>
This commit is contained in:
parent
a82ca7bcd7
commit
23ef62d741
1 changed files with 3 additions and 0 deletions
3
tools/env/fw_env.c
vendored
3
tools/env/fw_env.c
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue