projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mediatek: mt7622: convert unifi6lr-v{1,2,3}-ubootmod to fitblk
[openwrt/openwrt.git]
/
target
/
linux
/
mediatek
/
mt7622
/
base-files
/
lib
/
upgrade
/
platform.sh
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 5836e1aa3ee4685d862e832f03fa101fcd05db57..6417eb1a3a76d982c3b80a109f7a541aaffb9ace 100755
(executable)
--- 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
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)"
[ -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"
;;
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"
ubiblock*)
CI_KERNPART="fit"
nand_do_upgrade "$1"