mediatek: filogic: convert Netcore N60 to fitblk
authorDaniel Golle <daniel@makrotopia.org>
Thu, 8 Aug 2024 15:42:59 +0000 (16:42 +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/mt7986a-netcore-n60.dts
target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh

index b96b1e2ec03e8a10606c01811bf9fe6ca1d14996..2c129acbbabb051f1092b00987ba9d211a7c40cf 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 0x7280000>;
+                               compatible = "linux,ubi";
+
+                               volumes {
+                                       ubi_rootdisk: ubi-volume-fit {
+                                               volname = "fit";
+                                       };
+                               };
                        };
                };
        };
index 034f94b51553aab21cdc79f78a22fce01434b8b8..0fdbf6e9398e92efcbd9e70aee9dfdf9649343f2 100755 (executable)
@@ -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"