summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2024-08-08 15:22:17 +0000
committerDaniel Golle2024-08-28 14:11:51 +0000
commit52ef01672cf0766ca550531f76b13b7d8af73dcd (patch)
tree867b0d5d99a1b0699fb8a3f271dc18e8dfbd1b3b
parentffd5cca73eb1f8bcdeae06de7efc7638c49499ab (diff)
downloadopenwrt-52ef01672cf0766ca550531f76b13b7d8af73dcd.tar.gz
mediatek: filogic: convert H3C Magic NX30 Pro to fitblk
Use fitblk driver instead of deprecated partition parser. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts9
-rwxr-xr-xtarget/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh2
2 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts b/target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts
index 030cc25041..c405ce977e 100644
--- a/target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts
+++ b/target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts
@@ -20,6 +20,8 @@
};
chosen {
+ bootargs-append = " root=/dev/fit0 rootwait";
+ rootdisk = <&ubi_rootdisk>;
stdout-path = "serial0:115200n8";
};
@@ -141,6 +143,13 @@
partition@580000 {
label = "ubi";
reg = <0x0580000 0x4000000>;
+ compatible = "linux,ubi";
+
+ volumes {
+ ubi_rootdisk: ubi-volume-fit {
+ volname = "fit";
+ };
+ };
};
/* yaffs partition */
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 dedb3a4a1f..8f5518659a 100755
--- a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
@@ -70,6 +70,7 @@ platform_do_upgrade() {
bananapi,bpi-r4|\
bananapi,bpi-r4-poe|\
cmcc,rax3000m|\
+ h3c,magic-nx30-pro|\
jdcloud,re-cp-03|\
mediatek,mt7981-rfb|\
mediatek,mt7988a-rfb|\
@@ -113,7 +114,6 @@ platform_do_upgrade() {
CI_ROOTPART="rootfs"
emmc_do_upgrade "$1"
;;
- h3c,magic-nx30-pro|\
jcg,q30-pro|\
netcore,n60|\
qihoo,360t7|\