Skip to content

Commit

Permalink
ramips: enable badblock table support on linksys ea7xxx devices
Browse files Browse the repository at this point in the history
Use remapping only on the kernel partitions.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Jan 13, 2022
1 parent e2aa04d commit 83b14ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi
Expand Up @@ -76,6 +76,11 @@
&nand {
status = "okay";

mediatek,bbt;
mediatek,bmt-remap-range =
<0x180000 0x580000>,
<0x2980000 0x2d80000>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
Expand Down
1 change: 1 addition & 0 deletions target/linux/ramips/mt7621/config-5.10
Expand Up @@ -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
Expand Down

0 comments on commit 83b14ec

Please sign in to comment.