summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorTianling Shen <cnsztl@immortalwrt.org>2024-04-02 18:53:29 +0800
committerDaniel Golle <daniel@makrotopia.org>2024-04-30 03:28:13 +0100
commit790082098e3e5541e75b396ea1c78192f416e13f (patch)
tree0d5e6d88d42a457eb71204fefe3eb9c942fa5aa0 /package
parent4b043047132de0b3d90619d538f103af6153fa5a (diff)
downloadopenwrt-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 'package')
-rw-r--r--package/boot/uboot-envtools/files/mediatek_filogic8
-rw-r--r--package/boot/uboot-mediatek/patches/441-add-jdcloud_re-cp-03.patch2
2 files changed, 3 insertions, 7 deletions
diff --git a/package/boot/uboot-envtools/files/mediatek_filogic b/package/boot/uboot-envtools/files/mediatek_filogic
index 02f43ebc7f..7d46e73dbe 100644
--- a/package/boot/uboot-envtools/files/mediatek_filogic
+++ b/package/boot/uboot-envtools/files/mediatek_filogic
@@ -38,7 +38,8 @@ asus,rt-ax59u)
;;
bananapi,bpi-r3|\
bananapi,bpi-r3-mini|\
-bananapi,bpi-r4)
+bananapi,bpi-r4|\
+jdcloud,re-cp-03)
. /lib/upgrade/common.sh
bootdev="$(fitblk_get_bootdev)"
@@ -98,11 +99,6 @@ glinet,gl-mt6000)
glinet,gl-mt3000)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x80000" "0x20000"
;;
-jdcloud,re-cp-03)
- local envdev=$(find_mmc_part "ubootenv" "mmcblk0")
- ubootenv_add_uci_config "$envdev" "0x0" "0x40000" "0x40000" "1"
- ubootenv_add_uci_config "$envdev" "0x40000" "0x40000" "0x40000" "1"
- ;;
mercusys,mr90x-v1|\
routerich,ax3000)
local envdev=/dev/mtd$(find_mtd_index "u-boot-env")
diff --git a/package/boot/uboot-mediatek/patches/441-add-jdcloud_re-cp-03.patch b/package/boot/uboot-mediatek/patches/441-add-jdcloud_re-cp-03.patch
index e0f3a6e235..dc8dfe0140 100644
--- a/package/boot/uboot-mediatek/patches/441-add-jdcloud_re-cp-03.patch
+++ b/package/boot/uboot-mediatek/patches/441-add-jdcloud_re-cp-03.patch
@@ -271,7 +271,7 @@
+serverip=192.168.1.254
+loadaddr=0x46000000
+console=earlycon=uart8250,mmio32,0x11002000 console=ttyS0
-+bootargs=root=/dev/mmcblk0p65
++bootargs=root=/dev/fit0 rootwait
+bootcmd=if pstore check ; then run boot_recovery ; else run boot_emmc ; fi
+bootconf=config-1
+bootdelay=0