aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/mt7622
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/mediatek/mt7622')
-rwxr-xr-xtarget/linux/mediatek/mt7622/base-files/etc/board.d/02_network4
-rwxr-xr-xtarget/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh11
2 files changed, 14 insertions, 1 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 d719a35dec..18ad24d046 100755
--- a/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network
+++ b/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network
@@ -9,6 +9,10 @@ mediatek_setup_interfaces()
local board="$1"
case $board in
+ 'elecom,wrc-2533gent')
+ ucidef_add_switch "switch0" \
+ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6u@eth0" "5u@eth1"
+ ;;
esac
}
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 f2264592a4..c5b4cf306b 100755
--- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
@@ -8,14 +8,23 @@ platform_do_upgrade() {
esac
}
-PART_NAME=firmware
+PART_NAME=Kernel
platform_check_image() {
local board=$(board_name)
+ local magic="$(get_magic_long "$1")"
[ "$#" -gt 1 ] && return 1
case "$board" in
+ elecom,wrc-2533gent)
+ [ "$magic" != "d00dfeed" ] && {
+ echo "Invalid image type."
+ return 1
+ }
+ return 0
+ ;;
+
*)
echo "Sysupgrade is not supported on your board yet."
return 1