[openwrt/openwrt] mediatek: filogic: convert Xiaomi AX3000T to fitblk

LEDE Commits lede-commits at lists.infradead.org
Wed Aug 28 07:12:23 PDT 2024


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c29ab486a8354aa81c96205b1fc7490441a27b5c

commit c29ab486a8354aa81c96205b1fc7490441a27b5c
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Thu Aug 8 16:41:43 2024 +0100

    mediatek: filogic: convert Xiaomi AX3000T to fitblk
    
    Use fitblk driver instead of deprecated partition parser.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 .../dts/mt7981b-xiaomi-mi-router-ax3000t-ubootmod.dts        | 12 ++++++++++++
 .../mediatek/filogic/base-files/lib/upgrade/platform.sh      |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-ax3000t-ubootmod.dts b/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-ax3000t-ubootmod.dts
index 809e625ce1..7466b8f7c6 100644
--- a/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-ax3000t-ubootmod.dts
+++ b/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-ax3000t-ubootmod.dts
@@ -6,11 +6,23 @@
 / {
 	model = "Xiaomi Mi Router AX3000T (OpenWrt U-Boot layout)";
 	compatible = "xiaomi,mi-router-ax3000t-ubootmod", "mediatek,mt7981";
+
+	chosen {
+		bootargs-append = " root=/dev/fit0 rootwait";
+		rootdisk = <&ubi_rootdisk>;
+	};
 };
 
 &partitions {
 	partition at 600000 {
 		label = "ubi";
 		reg = <0x600000 0x7000000>;
+				compatible = "linux,ubi";
+
+				volumes {
+					ubi_rootdisk: ubi-volume-fit {
+						volname = "fit";
+					};
+				};
 	};
 };
diff --git a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
index ed605ca73c..a160811b20 100755
--- a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
@@ -82,6 +82,7 @@ platform_do_upgrade() {
 	tplink,tl-xdr6086|\
 	tplink,tl-xdr6088|\
 	tplink,tl-xtr8488|\
+	xiaomi,mi-router-ax3000t-ubootmod|\
 	xiaomi,redmi-router-ax6000-ubootmod)
 		fit_do_upgrade "$1"
 		;;
@@ -117,7 +118,6 @@ platform_do_upgrade() {
 		emmc_do_upgrade "$1"
 		;;
 	netcore,n60|\
-	xiaomi,mi-router-ax3000t-ubootmod|\
 	xiaomi,mi-router-wr30u-ubootmod)
 		CI_KERNPART="fit"
 		nand_do_upgrade "$1"




More information about the lede-commits mailing list