mediatek: filogic: switch to fitblk for Xiaomi Redmi AX6000

Use the new fitblk driver.

Run-tested: filogic/mt7986a-xiaomi-redmi-router-ax6000-ubootmod

Signed-off-by: Furong Xu <xfr@outlook.com>
This commit is contained in:
Furong Xu 2024-03-07 10:56:18 +08:00 committed by Chuanhong Guo
parent 1493e8f8cb
commit 8d355b870a
3 changed files with 16 additions and 5 deletions

View File

@ -8,9 +8,20 @@
compatible = "xiaomi,redmi-router-ax6000-ubootmod", "mediatek,mt7986a";
};
&chosen {
rootdisk = <&ubi_rootdisk>;
};
&partitions {
partition@580000 {
label = "ubi";
compatible = "linux,ubi";
reg = <0x580000 0x7a80000>;
label = "ubi";
volumes {
ubi_rootdisk: ubi-volume-fit {
volname = "fit";
};
};
};
};

View File

@ -17,7 +17,7 @@
led-upgrade = &led_status_rgb;
};
chosen {
chosen: chosen {
stdout-path = "serial0:115200n8";
};

View File

@ -82,7 +82,8 @@ platform_do_upgrade() {
;;
bananapi,bpi-r3|\
bananapi,bpi-r3-mini|\
bananapi,bpi-r4)
bananapi,bpi-r4|\
xiaomi,redmi-router-ax6000-ubootmod)
[ -e /dev/fit0 ] && fitblk /dev/fit0
[ -e /dev/fitrw ] && fitblk /dev/fitrw
bootdev="$(fitblk_get_bootdev)"
@ -132,8 +133,7 @@ platform_do_upgrade() {
tplink,tl-xdr6086|\
tplink,tl-xdr6088|\
xiaomi,mi-router-ax3000t-ubootmod|\
xiaomi,mi-router-wr30u-ubootmod|\
xiaomi,redmi-router-ax6000-ubootmod)
xiaomi,mi-router-wr30u-ubootmod)
CI_KERNPART="fit"
nand_do_upgrade "$1"
;;