mediatek: filogic: convert JCG Q30 PRO to fitblk
authorDaniel Golle <daniel@makrotopia.org>
Thu, 8 Aug 2024 15:22:53 +0000 (16:22 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 28 Aug 2024 14:11:51 +0000 (15:11 +0100)
Use fitblk driver instead of deprecated partition parser.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts
target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh

index c8b9aeba42fe283aeafc0b275aa0eeabda11eef9..e866799ebc94dde58b71dc3fdddc245252033fa4 100644 (file)
@@ -21,6 +21,8 @@
        };
 
        chosen {
+               bootargs-append = " root=/dev/fit0 rootwait";
+               rootdisk = <&ubi_rootdisk>;
                stdout-path = "serial0:115200n8";
        };
 
                        partition@580000 {
                                label = "ubi";
                                reg = <0x0580000 0x7000000>;
+                               compatible = "linux,ubi";
+
+                               volumes {
+                                       ubi_rootdisk: ubi-volume-fit {
+                                               volname = "fit";
+                                       };
+                               };
                        };
                };
        };
index 8f5518659ad5245d3ad1e02b58e371474b0738ea..b7d6f37484a2251dab99b71e45be9a46a9e0391c 100755 (executable)
@@ -71,6 +71,7 @@ platform_do_upgrade() {
        bananapi,bpi-r4-poe|\
        cmcc,rax3000m|\
        h3c,magic-nx30-pro|\
+       jcg,q30-pro|\
        jdcloud,re-cp-03|\
        mediatek,mt7981-rfb|\
        mediatek,mt7988a-rfb|\
@@ -114,7 +115,6 @@ platform_do_upgrade() {
                CI_ROOTPART="rootfs"
                emmc_do_upgrade "$1"
                ;;
-       jcg,q30-pro|\
        netcore,n60|\
        qihoo,360t7|\
        xiaomi,mi-router-ax3000t-ubootmod|\