mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
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:
parent
1493e8f8cb
commit
8d355b870a
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -17,7 +17,7 @@
|
||||
led-upgrade = &led_status_rgb;
|
||||
};
|
||||
|
||||
chosen {
|
||||
chosen: chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
};
|
||||
|
||||
|
@ -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"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user