[openwrt/openwrt] mediatek: mt7622: fix rootfs/ubi detection for Xiaomi AX6S

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 11 05:43:36 PST 2023


981213 pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b174de2c5ffee79b222f98a62c02aa1b6378ba62

commit b174de2c5ffee79b222f98a62c02aa1b6378ba62
Author: Oleg S <remittor at gmail.com>
AuthorDate: Mon Oct 17 10:41:51 2022 +0300

    mediatek: mt7622: fix rootfs/ubi detection for Xiaomi AX6S
    
    By specifying the flag "denx,fit" for partition "kernel", the kernel
    try to find rootfs in the same partition during boot. Reality is that
    the placement of rootfs is precisely determined by the name of another
    partition -"ubi".
    It was also found that on some device (for example devices with NAND
    chips), the "Denx search engine" manages to find roots at the end of
    partition "kernel", but such partition doesn't exist and is empty
    there.
    
    Fix this by removing the "denx,fit" flag from partition "kernel". With
    this change the original behavior of searchif rootfs in partition "ubi"
    is restored.
    
    Signed-off-by: Oleg S <remittor at gmail.com>
---
 target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts b/target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts
index 73ee41bb2d..9661d0c7fb 100644
--- a/target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts
+++ b/target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts
@@ -295,7 +295,6 @@
 			 */
 			partition at 2c0000 {
 				label = "kernel";
-				compatible = "denx,fit";
 				reg = <0x2c0000 0x400000>;
 			};
 




More information about the lede-commits mailing list