mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-09-10 06:49:40 +00:00
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@gmail.com>
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17549
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 3299d19c01
)
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17898
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
36 lines
694 B
Plaintext
36 lines
694 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
/dts-v1/;
|
|
#include "mt7981b-xiaomi-mi-router-ax3000t.dtsi"
|
|
|
|
/ {
|
|
model = "Xiaomi Mi Router AX3000T";
|
|
compatible = "xiaomi,mi-router-ax3000t", "mediatek,mt7981";
|
|
};
|
|
|
|
&spi_nand {
|
|
mediatek,nmbm;
|
|
mediatek,bmt-max-ratio = <1>;
|
|
mediatek,bmt-max-reserved-blocks = <64>;
|
|
mediatek,bmt-mtd-overridden-oobsize = <64>;
|
|
};
|
|
|
|
&partitions {
|
|
// ubi_kernel is the ubi partition in stock.
|
|
partition@600000 {
|
|
label = "ubi_kernel";
|
|
reg = <0x600000 0x2200000>;
|
|
};
|
|
|
|
/* ubi is the result of squashing
|
|
* consecutive stock partitions:
|
|
* - ubi1
|
|
* - overlay
|
|
* - data
|
|
*/
|
|
partition@2800000 {
|
|
label = "ubi";
|
|
reg = <0x2800000 0x4e00000>;
|
|
};
|
|
};
|