aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-01-13 18:32:26 +0100
committerFelix Fietkau <nbd@nbd.name>2022-01-13 18:33:06 +0100
commit83b14ec026d611e3c07eedd4869db08ca682d46d (patch)
treeeac218b0ed4128e7f1d3d8c735dc5a8bce4b8e46
parente2aa04d1e50104456902aea685e46c754b07ebf4 (diff)
downloadupstream-83b14ec026d611e3c07eedd4869db08ca682d46d.tar.gz
upstream-83b14ec026d611e3c07eedd4869db08ca682d46d.tar.bz2
upstream-83b14ec026d611e3c07eedd4869db08ca682d46d.zip
ramips: enable badblock table support on linksys ea7xxx devices
Use remapping only on the kernel partitions. Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi5
-rw-r--r--target/linux/ramips/mt7621/config-5.101
2 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi b/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi
index ecff6406d5..ec232968a6 100644
--- a/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi
+++ b/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi
@@ -76,6 +76,11 @@
&nand {
status = "okay";
+ mediatek,bbt;
+ mediatek,bmt-remap-range =
+ <0x180000 0x580000>,
+ <0x2980000 0x2d80000>;
+
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
diff --git a/target/linux/ramips/mt7621/config-5.10 b/target/linux/ramips/mt7621/config-5.10
index 67f7bf7e72..f3bf6fbb2b 100644
--- a/target/linux/ramips/mt7621/config-5.10
+++ b/target/linux/ramips/mt7621/config-5.10
@@ -154,6 +154,7 @@ CONFIG_MTD_NAND_CORE=y
CONFIG_MTD_NAND_ECC=y
CONFIG_MTD_NAND_ECC_SW_HAMMING=y
CONFIG_MTD_NAND_MT7621=y
+CONFIG_MTD_NAND_MTK_BMT=y
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_RAW_NAND=y
CONFIG_MTD_ROUTERBOOT_PARTS=y