aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/mt7622
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-01-10 12:35:08 +0100
committerFelix Fietkau <nbd@nbd.name>2022-01-13 18:33:06 +0100
commit76b27f6bb92eec4a25001da8d8188d30440eafd9 (patch)
treefb58ac17728deb0a740633efa52d0c9b2fc12193 /target/linux/mediatek/mt7622
parent7235c8d00ccf2d6d1bde3a2bec476d45d8c7c2ab (diff)
downloadupstream-76b27f6bb92eec4a25001da8d8188d30440eafd9.tar.gz
upstream-76b27f6bb92eec4a25001da8d8188d30440eafd9.tar.bz2
upstream-76b27f6bb92eec4a25001da8d8188d30440eafd9.zip
mediatek: rework and fix mt7622-rfb1-ubi support
Limit bmt remapping range to cover everything up to and including the kernel image, use the rest of the flash area for ubi. Fix partition table and sysupgrade support Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/mediatek/mt7622')
-rw-r--r--target/linux/mediatek/mt7622/base-files/etc/board.d/02_network3
-rwxr-xr-xtarget/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh5
2 files changed, 5 insertions, 3 deletions
diff --git a/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network b/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network
index 3724fd6d5c..7b454314cf 100644
--- a/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network
+++ b/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network
@@ -11,7 +11,8 @@ mediatek_setup_interfaces()
bananapi,bpi-r64|\
linksys,e8450|\
linksys,e8450-ubi|\
- mediatek,mt7622-rfb1)
+ mediatek,mt7622-rfb1|\
+ mediatek,mt7622-rfb1-ubi)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" wan
;;
buffalo,wsr-2533dhp2)
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 e6afb9547c..bd86a92c7b 100755
--- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
@@ -34,8 +34,7 @@ platform_do_upgrade() {
nand_do_upgrade "$1"
fi
;;
- linksys,e8450-ubi|\
- mediatek,mt7622,ubi)
+ linksys,e8450-ubi)
CI_KERNPART="fit"
nand_do_upgrade "$1"
;;
@@ -47,6 +46,7 @@ platform_do_upgrade() {
fi
default_do_upgrade "$1"
;;
+ mediatek,mt7622-rfb1-ubi|\
totolink,a8000ru)
nand_do_upgrade "$1"
;;
@@ -68,6 +68,7 @@ platform_check_image() {
buffalo,wsr-2533dhp2)
buffalo_check_image "$board" "$magic" "$1" || return 1
;;
+ mediatek,mt7622-rfb1-ubi|\
totolink,a8000ru)
nand_do_platform_check "$board" "$1"
;;