ramips: enable badblock table support on linksys ea7xxx devices
authorFelix Fietkau <nbd@nbd.name>
Thu, 13 Jan 2022 17:32:26 +0000 (18:32 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 13 Jan 2022 17:33:06 +0000 (18:33 +0100)
Use remapping only on the kernel partitions.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi
target/linux/ramips/mt7621/config-5.10

index ecff6406d588dc8e5653a033b033ab1938725626..ec232968a62fb22805b84b85d00902fb69a99547 100644 (file)
 &nand {
        status = "okay";
 
+       mediatek,bbt;
+       mediatek,bmt-remap-range =
+               <0x180000 0x580000>,
+               <0x2980000 0x2d80000>;
+
        partitions {
                compatible = "fixed-partitions";
                #address-cells = <1>;
index 67f7bf7e72cb9dbed415649463208d95d7d86ee8..f3bf6fbb2babdbad75d5e6f2c1077da18c177a33 100644 (file)
@@ -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