summaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/mt7622/base-files
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2024-01-22 00:56:47 +0000
committerDaniel Golle <daniel@makrotopia.org>2024-02-15 19:30:08 +0000
commit41c053141e678b670d0bc67edf2bb1166c3d7f0a (patch)
treeeb81702657aee1dcace365851ad94e64d44b8966 /target/linux/mediatek/mt7622/base-files
parent208f6c1232901835708eb4ace44ae17628fc12f5 (diff)
downloadopenwrt-41c053141e678b670d0bc67edf2bb1166c3d7f0a.tar.gz
openwrt-41c053141e678b670d0bc67edf2bb1166c3d7f0a.tar.bz2
openwrt-41c053141e678b670d0bc67edf2bb1166c3d7f0a.zip
mediatek: mt7622: convert unifi6lr-v{1,2,3}-ubootmod to fitblk
No bootloader changes needed in this case, smooth transition. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/mt7622/base-files')
-rwxr-xr-xtarget/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
index 5836e1aa3e..6417eb1a3a 100755
--- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
@@ -21,7 +21,10 @@ platform_do_upgrade() {
local file_type=$(identify $1)
case "$board" in
- bananapi,bpi-r64)
+ bananapi,bpi-r64|\
+ ubnt,unifi-6-lr-v1-ubootmod|\
+ ubnt,unifi-6-lr-v2-ubootmod|\
+ ubnt,unifi-6-lr-v3-ubootmod)
[ -e /dev/fit0 ] && fitblk /dev/fit0
[ -e /dev/fitrw ] && fitblk /dev/fitrw
bootdev="$(platform_get_bootdev)"
@@ -30,6 +33,10 @@ platform_do_upgrade() {
EMMC_KERN_DEV="/dev/$bootdev"
emmc_do_upgrade "$1"
;;
+ mtdblock*)
+ PART_NAME="/dev/mtd${bootdev:8}"
+ default_do_upgrade "$1"
+ ;;
ubiblock*)
CI_KERNPART="fit"
nand_do_upgrade "$1"