From ee7aacb3e7becae1c6f7b2c8a94dc63d2dad3bb2 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Thu, 8 Aug 2024 16:41:21 +0100 Subject: [PATCH] mediatek: filogic: convert Qihoo 360T7 to fitblk Use fitblk driver instead of deprecated partition parser. Signed-off-by: Daniel Golle --- target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts | 9 +++++++++ .../mediatek/filogic/base-files/lib/upgrade/platform.sh | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts b/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts index 3925f80ba3..f167600f30 100644 --- a/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts +++ b/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts @@ -20,6 +20,8 @@ }; chosen { + bootargs-append = " root=/dev/fit0 rootwait"; + rootdisk = <&ubi_rootdisk>; stdout-path = "serial0:115200n8"; }; @@ -134,6 +136,13 @@ partition@580000 { label = "ubi"; reg = <0x0580000 0x6c00000>; + compatible = "linux,ubi"; + + volumes { + ubi_rootdisk: ubi-volume-fit { + volname = "fit"; + }; + }; }; partition@7180000 { 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 b7d6f37484..ed605ca73c 100755 --- a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh +++ b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh @@ -77,6 +77,7 @@ platform_do_upgrade() { mediatek,mt7988a-rfb|\ nokia,ea0326gmp|\ openwrt,one|\ + qihoo,360t7|\ tplink,tl-xdr4288|\ tplink,tl-xdr6086|\ tplink,tl-xdr6088|\ @@ -116,7 +117,6 @@ platform_do_upgrade() { emmc_do_upgrade "$1" ;; netcore,n60|\ - qihoo,360t7|\ xiaomi,mi-router-ax3000t-ubootmod|\ xiaomi,mi-router-wr30u-ubootmod) CI_KERNPART="fit" -- 2.30.2