[openwrt/openwrt] mediatek: filogic: convert Netcore N60 to fitblk

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


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

commit ca4f5b0def2878eff183cb5f3d62565c6e9b2db6
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Thu Aug 8 16:42:59 2024 +0100

    mediatek: filogic: convert Netcore N60 to fitblk
    
    Use fitblk driver instead of deprecated partition parser.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 target/linux/mediatek/dts/mt7986a-netcore-n60.dts                | 9 +++++++++
 target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh | 5 +----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/target/linux/mediatek/dts/mt7986a-netcore-n60.dts b/target/linux/mediatek/dts/mt7986a-netcore-n60.dts
index b96b1e2ec0..2c129acbba 100644
--- a/target/linux/mediatek/dts/mt7986a-netcore-n60.dts
+++ b/target/linux/mediatek/dts/mt7986a-netcore-n60.dts
@@ -21,6 +21,8 @@
 	};
 
 	chosen {
+		bootargs-append = " root=/dev/fit0 rootwait";
+		rootdisk = <&ubi_rootdisk>;
 		stdout-path = "serial0:115200n8";
 	};
 
@@ -206,6 +208,13 @@
 			partition at 580000 {
 				label = "ubi";
 				reg = <0x0580000 0x7280000>;
+				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 034f94b515..0fdbf6e939 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|\
+	netcore,n60|\
 	qihoo,360t7|\
 	tplink,tl-xdr4288|\
 	tplink,tl-xdr6086|\
@@ -118,10 +119,6 @@ platform_do_upgrade() {
 		CI_ROOTPART="rootfs"
 		emmc_do_upgrade "$1"
 		;;
-	netcore,n60)
-		CI_KERNPART="fit"
-		nand_do_upgrade "$1"
-		;;
 	mercusys,mr90x-v1|\
 	tplink,re6000xd)
 		CI_UBIPART="ubi0"




More information about the lede-commits mailing list