[openwrt/openwrt] mediatek: fix nmbm configuration mismatch (Xiaomi AX3000t)

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 9 14:21:17 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/db30b60bf13b17d24b4d3643780d1658cac24974

commit db30b60bf13b17d24b4d3643780d1658cac24974
Author: Mikhail Zhilkin <csharper2005 at gmail.com>
AuthorDate: Tue Feb 4 16:08:53 2025 +0000

    mediatek: fix nmbm configuration mismatch (Xiaomi AX3000t)
    
    This commit fixes nmbm configuration mismatch error on Xiaomi AX3000t
    with Winbond W25N01KVZEIR spi-nand:
    '''
    [    0.786783] NMBM configuration mismatch
    '''
    
    Root cause:
    1. U-Boot W25N01KV spi-nand driver ia compiled with 64B OOB size for the
       chip and store this size in the nmbm signature;
    2. Linux W25N01KV driver use 96B OOB.
    
    The change doesn't affect AX3000t variants with other spi-nand chips
    (ESMT, Foresee) because their Linux drivers use 64B OOB.
    
    Fixes: openwrt#16972
    Tested-by: Aleksandr Danilov <sc16me at gmail.com>
    Signed-off-by: Mikhail Zhilkin <csharper2005 at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/17549
    Signed-off-by: Robert Marko <robimarko at gmail.com>
    (cherry picked from commit 3299d19c01080c3320e3ff6964d7825da81bb8b4)
    Signed-off-by: Mikhail Zhilkin <csharper2005 at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/17898
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-ax3000t.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-ax3000t.dts b/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-ax3000t.dts
index cc0d44fdf5..d4b11cbe04 100644
--- a/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-ax3000t.dts
+++ b/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-ax3000t.dts
@@ -12,6 +12,7 @@
 	mediatek,nmbm;
 	mediatek,bmt-max-ratio = <1>;
 	mediatek,bmt-max-reserved-blocks = <64>;
+	mediatek,bmt-mtd-overridden-oobsize = <64>;
 };
 
 &partitions {




More information about the lede-commits mailing list