diff mbox

[U-Boot,v2,1/2] fw_env: add redundant env support for MTD_ABSENT

Message ID 1377816962-19260-1-git-send-email-luka@openwrt.org
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Luka Perkov Aug. 29, 2013, 10:56 p.m. UTC
From: Oliver Metz <oliver@freetz.org>

Signed-off-by: Oliver Metz <oliver@freetz.org>
Tested-by: Luka Perkov <luka@openwrt.org>
---

v1 -> v2:
 * correct spelling of redundant

 tools/env/fw_env.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tom Rini Sept. 6, 2013, 9:25 p.m. UTC | #1
On Fri, Aug 30, 2013 at 12:56:01AM +0200, Luka Perkov wrote:

> From: Oliver Metz <oliver@freetz.org>
> 
> Signed-off-by: Oliver Metz <oliver@freetz.org>
> Tested-by: Luka Perkov <luka@openwrt.org>

Applied to u-boot/master along with 2/2, thanks!
diff mbox

Patch

diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 44607b1..65be5f3 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;