]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: fix nmbm max-reserved-blocks for Keenetic/Netcraze devices 24001/head
authorMaxim Anisimov <maxim.anisimov.ua@gmail.com>
Mon, 29 Jun 2026 13:14:20 +0000 (16:14 +0300)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 17 Jul 2026 07:47:36 +0000 (09:47 +0200)
The devicetree set mediatek,bmt-max-reserved-blocks to 64, but the
factory firmware uses 256. With the lower value NMBM fails to locate
its signature on some boards, and the device does not boot.

Restore the factory value of 256 to match stock firmware and fix
boot on affected units.

Vendor nmbm max blocks value:
https://github.com/keenetic/kernel-49/blob/master/drivers/mtd/nmbm/nmbm-mtd.c#L31

Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24001
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/mediatek/dts/mt7981b-keenetic-kap-630.dtsi
target/linux/mediatek/dts/mt7981b-keenetic-kn-3711.dts
target/linux/mediatek/dts/mt7981b-keenetic-kn-3811.dts
target/linux/mediatek/dts/mt7981b-keenetic-kn-3911.dts
target/linux/mediatek/dts/mt7988d-keenetic-kn-1812.dtsi

index 0d03aa762aa412035c59cc13fb0cfea931d89c2e..e22553f6dde147dfcb69b7efc82a16bf9bc4cab6 100644 (file)
 
                mediatek,nmbm;
                mediatek,bmt-max-ratio = <1>;
-               mediatek,bmt-max-reserved-blocks = <64>;
+               mediatek,bmt-max-reserved-blocks = <256>;
 
                partitions {
                        compatible = "fixed-partitions";
index 1525cd2d1944aae633e91557d550899dc1a320d8..b03a30892d9d29f7e372e740a0468202357e7ef8 100644 (file)
 
                mediatek,nmbm;
                mediatek,bmt-max-ratio = <1>;
-               mediatek,bmt-max-reserved-blocks = <64>;
+               mediatek,bmt-max-reserved-blocks = <256>;
 
                partitions {
                        compatible = "fixed-partitions";
index c7142fe69bb2a85d470a305cffe427e0bd853e6c..e6226c66a2eeeba87306e2ce9b9bca08b7a53b52 100644 (file)
 
                mediatek,nmbm;
                mediatek,bmt-max-ratio = <1>;
-               mediatek,bmt-max-reserved-blocks = <64>;
+               mediatek,bmt-max-reserved-blocks = <256>;
 
                partitions {
                        compatible = "fixed-partitions";
index 603c897f1ec4160232e511fb5e8a9ac75e02dbff..e508e2d6e050e71699a2dc199efd81abbc91aa43 100644 (file)
 
                mediatek,nmbm;
                mediatek,bmt-max-ratio = <1>;
-               mediatek,bmt-max-reserved-blocks = <64>;
+               mediatek,bmt-max-reserved-blocks = <256>;
 
                partitions {
                        compatible = "fixed-partitions";
index 8cf21ffd9c5a0413d6b58ff2d3ee250c54a6b695..72e951bdfe78bbca707f56d1d985f7115c2b0f5a 100644 (file)
 
                mediatek,nmbm;
                mediatek,bmt-max-ratio = <1>;
-               mediatek,bmt-max-reserved-blocks = <64>;
+               mediatek,bmt-max-reserved-blocks = <256>;
 
                partitions {
                        compatible = "fixed-partitions";