From d51ef5fa1fbcf99e58c65f98f991d8e2bdb72a6e Mon Sep 17 00:00:00 2001 From: Andrew Sim Date: Sun, 26 Jan 2025 09:32:48 +0100 Subject: [PATCH] mediatek: mt7622: Remove the reserved badblock partition from Totolink A8000RU Recent builds on this device cannot reserve enough physical erase block size for bad PEB handling. ubi0 warning: ubi_eba_init: cannot reserve enough PEBs for bad PEB handling, reserved 6, need 19 Lets remove the unuseful reserved partition and let the system handle bad block management automatically. Tested on my device without any issues. Signed-off-by: Andrew Sim --- .../linux/mediatek/dts/mt7622-totolink-a8000ru.dts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts b/target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts index 5ec07128baaa76..0ed0266bea0f05 100644 --- a/target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts +++ b/target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts @@ -245,13 +245,15 @@ pinctrl-names = "default"; pinctrl-0 = <&serial_nand_pins>; status = "okay"; - flash@0 { + + snand: flash@0 { compatible = "spi-nand"; + mediatek,bmt-v2; + mediatek,bmt-table-size = <0x1000>; + nand-ecc-engine = <&snfi>; reg = <0>; spi-tx-bus-width = <4>; spi-rx-bus-width = <4>; - nand-ecc-engine = <&snfi>; - mediatek,bmt-v2; partitions { compatible = "fixed-partitions"; @@ -311,12 +313,6 @@ label = "User_data"; reg = <0x6600000 0x100000>; }; - - /* size of this partition varies due to BMT & bad blocks. */ - partition@6700000 { - label = "reserved"; - reg = <0x6700000 0>; - }; }; }; };