X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=package%2Fboot%2Fuboot-envtools%2Fpatches%2F0001-fw_env-add-redundant-env-support-for-MTD_ABSENT.patch;fp=package%2Fboot%2Fuboot-envtools%2Fpatches%2F0001-fw_env-add-redundant-env-support-for-MTD_ABSENT.patch;h=d373e13424365cc38f89b4c4610c35b66d16a4c6;hp=0000000000000000000000000000000000000000;hb=ef54932bf190acae1ee5600a2c00d3e4c165c2d8;hpb=5bfdf838be6e856b3b1bef6b69d7d92b7326cc12 diff --git a/package/boot/uboot-envtools/patches/0001-fw_env-add-redundant-env-support-for-MTD_ABSENT.patch b/package/boot/uboot-envtools/patches/0001-fw_env-add-redundant-env-support-for-MTD_ABSENT.patch new file mode 100644 index 0000000000..d373e13424 --- /dev/null +++ b/package/boot/uboot-envtools/patches/0001-fw_env-add-redundant-env-support-for-MTD_ABSENT.patch @@ -0,0 +1,28 @@ +From: Oliver Metz +Subject: [PATCH v2 1/2] fw_env: add redundant env support for MTD_ABSENT + +Signed-off-by: Oliver Metz +Tested-by: Luka Perkov +--- + +v1 -> v2: + * correct spelling of redundant + +http://lists.denx.de/pipermail/u-boot/2013-August/161694.html +http://patchwork.ozlabs.org/patch/270993/ + + tools/env/fw_env.c | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/tools/env/fw_env.c ++++ b/tools/env/fw_env.c +@@ -1152,6 +1152,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;