2013-08-29 23:06:29 +00:00
|
|
|
From: Oliver Metz <oliver@freetz.org>
|
|
|
|
Subject: [PATCH v2 1/2] fw_env: add redundant env support for MTD_ABSENT
|
2013-07-02 23:08:17 +00:00
|
|
|
|
|
|
|
Signed-off-by: Oliver Metz <oliver@freetz.org>
|
2013-08-29 23:06:29 +00:00
|
|
|
Tested-by: Luka Perkov <luka@openwrt.org>
|
2013-07-02 23:08:17 +00:00
|
|
|
---
|
2013-08-29 23:06:29 +00:00
|
|
|
|
|
|
|
v1 -> v2:
|
|
|
|
* correct spelling of redundant
|
|
|
|
|
|
|
|
http://lists.denx.de/pipermail/u-boot/2013-August/161694.html
|
|
|
|
http://patchwork.ozlabs.org/patch/270993/
|
|
|
|
|
2013-07-02 23:08:17 +00:00
|
|
|
tools/env/fw_env.c | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
--- a/tools/env/fw_env.c
|
|
|
|
+++ b/tools/env/fw_env.c
|
2013-08-29 23:06:29 +00:00
|
|
|
@@ -1152,6 +1152,9 @@ int fw_env_open(void)
|
2013-07-02 23:08:17 +00:00
|
|
|
} 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;
|