diff options
author | John Crispin <john@phrozen.org> | 2020-03-27 16:13:06 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2020-03-27 16:18:57 +0100 |
commit | 3a8dbcf5c2f3c71240365006f8dae13f79f729b1 (patch) | |
tree | 9fd9f965a4de2adbdd0da11fbada8b7c4aaeb7be /target/linux/mediatek/mt7622/base-files | |
parent | d3f058db1cb9b2d43764cd0d84fdc2779f0abacf (diff) | |
download | upstream-3a8dbcf5c2f3c71240365006f8dae13f79f729b1.tar.gz upstream-3a8dbcf5c2f3c71240365006f8dae13f79f729b1.tar.bz2 upstream-3a8dbcf5c2f3c71240365006f8dae13f79f729b1.zip |
mediatke: add support for elecom-wrc-2533gent
This commit adds support for the MT7622-based Elecom WRC-2533gent router,
with spi-nand storage and 512MB RAM.
The device has the following specifications:
* MT7622 (arm64 dual-core)
* 512MB RAM (DDR3)
* 4GB storage (spi-nand)
* 5x 1Gbps Ethernet (RTL8337C switch)
* 1x UART header
* 1x USB 3.0 port
* 5x LEDs
* 1x reset button
* 1x WPS button
* 1x slider switch
* 1x DC jack for main power (12V)
The following has been tested and is working:
* Ethernet switch
* 2.4g and 5g wifi
* USB 3.0 port
* sysupgrade
* buttons/leds
Not working:
* bluetooth firmware does not load even though it is present int he rootfs
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/mt7622/base-files')
-rwxr-xr-x | target/linux/mediatek/mt7622/base-files/etc/board.d/02_network | 4 | ||||
-rwxr-xr-x | target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh | 11 |
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 |