diff options
author | Tianling Shen <cnsztl@immortalwrt.org> | 2024-04-02 18:53:29 +0800 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2024-04-30 03:28:13 +0100 |
commit | 790082098e3e5541e75b396ea1c78192f416e13f (patch) | |
tree | 0d5e6d88d42a457eb71204fefe3eb9c942fa5aa0 /target | |
parent | 4b043047132de0b3d90619d538f103af6153fa5a (diff) | |
download | openwrt-790082098e3e5541e75b396ea1c78192f416e13f.tar.gz openwrt-790082098e3e5541e75b396ea1c78192f416e13f.tar.bz2 openwrt-790082098e3e5541e75b396ea1c78192f416e13f.zip |
mediatek: switch to fitblk for JDCloud RE-CP-03
Use the new fitblk driver.
Tested-By: Yangyu Chen <cyy@cyyself.name>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/mediatek/dts/mt7986a-jdcloud-re-cp-03.dts | 16 | ||||
-rwxr-xr-x | target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh | 5 |
2 files changed, 17 insertions, 4 deletions
diff --git a/target/linux/mediatek/dts/mt7986a-jdcloud-re-cp-03.dts b/target/linux/mediatek/dts/mt7986a-jdcloud-re-cp-03.dts index b62c2f4215..93a5bb86f3 100644 --- a/target/linux/mediatek/dts/mt7986a-jdcloud-re-cp-03.dts +++ b/target/linux/mediatek/dts/mt7986a-jdcloud-re-cp-03.dts @@ -23,7 +23,9 @@ }; chosen { + bootargs-override = "root=/dev/fit0 rootwait"; stdout-path = "serial0:115200n8"; + rootdisk = <&emmc_rootdisk>; }; memory@40000000 { @@ -157,6 +159,20 @@ vmmc-supply = <®_3p3v>; vqmmc-supply = <®_1p8v>; status = "okay"; + + card@0 { + compatible = "mmc-card"; + reg = <0>; + + block { + compatible = "block-device"; + partitions { + emmc_rootdisk: block-partition-production { + partname = "production"; + }; + }; + }; + }; }; &pio { 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 6f69706d79..ee0e8b62d7 100755 --- a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh +++ b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh @@ -83,6 +83,7 @@ platform_do_upgrade() { bananapi,bpi-r3|\ bananapi,bpi-r3-mini|\ bananapi,bpi-r4|\ + jdcloud,re-cp-03|\ tplink,tl-xdr4288|\ tplink,tl-xdr6086|\ tplink,tl-xdr6088|\ @@ -140,10 +141,6 @@ platform_do_upgrade() { CI_KERNPART="fit" nand_do_upgrade "$1" ;; - jdcloud,re-cp-03) - CI_KERNPART="production" - emmc_do_upgrade "$1" - ;; mercusys,mr90x-v1) CI_UBIPART="ubi0" nand_do_upgrade "$1" |