mediatek: mt7622: fix rootfs/ubi detection for Xiaomi AX6S
authorOleg S <remittor@gmail.com>
Mon, 17 Oct 2022 07:41:51 +0000 (10:41 +0300)
committerChuanhong Guo <gch981213@gmail.com>
Sat, 11 Feb 2023 13:42:06 +0000 (21:42 +0800)
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@gmail.com>
target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts

index 73ee41bb2dccf56b0a9ba0b52d55eacaf28b3466..9661d0c7fbc00717accf94298f7a49b3854b7553 100644 (file)
                         */
                        partition@2c0000 {
                                label = "kernel";
-                               compatible = "denx,fit";
                                reg = <0x2c0000 0x400000>;
                        };