Skip to content

Commit

Permalink
mediatek: mt7622: Remove the reserved badblock partition from Totolin…
Browse files Browse the repository at this point in the history
…k 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 <[email protected]>
  • Loading branch information
Gingernut1978 committed Jan 29, 2025
1 parent 8070743 commit d51ef5f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions target/linux/mediatek/dts/mt7622-totolink-a8000ru.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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>;
};
};
};
};
Expand Down

0 comments on commit d51ef5f

Please sign in to comment.