[LEDE-DEV] [PATCH 2/3] mtd: bcm47xxpart: add device specific workaround for Buffalo WZR-900DHP
FUKAUMI Naoki
naobsd at gmail.com
Wed Dec 14 09:41:37 PST 2016
2nd trx partition shouldn't be added, otherwise size of 1st trx
partition won't be set properly.
Signed-off-by: FUKAUMI Naoki <naobsd at gmail.com>
---
.../901-mtd-bcm47xxpart-add-device-specific-workarounds.patch | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/target/linux/bcm53xx/patches-4.4/901-mtd-bcm47xxpart-add-device-specific-workarounds.patch b/target/linux/bcm53xx/patches-4.4/901-mtd-bcm47xxpart-add-device-specific-workarounds.patch
index 35c6ff7..b724c33 100644
--- a/target/linux/bcm53xx/patches-4.4/901-mtd-bcm47xxpart-add-device-specific-workarounds.patch
+++ b/target/linux/bcm53xx/patches-4.4/901-mtd-bcm47xxpart-add-device-specific-workarounds.patch
@@ -17,7 +17,7 @@ Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
#include <uapi/linux/magic.h>
-@@ -159,6 +160,28 @@ static int bcm47xxpart_parse(struct mtd_
+@@ -159,6 +160,34 @@ static int bcm47xxpart_parse(struct mtd_
break;
}
@@ -41,6 +41,12 @@ Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
+ */
+ bcm47xxpart_add_part(&parts[curr_part++], "tplink", offset, MTD_WRITEABLE);
+ continue;
++ } else if (of_machine_is_compatible("buffalo,wzr-900dhp") && offset == 0x2100000) {
++ /*
++ * 2nd trx partition shouldn't be added, otherwise size
++ * of 1st trx partition won't be set properly.
++ */
++ continue;
+ }
+
/* Read beginning of the block */
--
2.7.4
More information about the Lede-dev
mailing list