aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorThomas Vincent-Cross <me@tvc.id.au>2018-10-23 02:21:16 +1100
committerMathias Kresin <dev@kresin.me>2018-11-28 00:50:35 +0100
commita160f50d4f240019fafe95e80701ebb871c788fe (patch)
tree5d7badd6dbe43f0c543dbdf3f65f0d6052d2248a /target/linux/ramips/base-files
parent31469aebd4c737ba891ceffc58db59c6b039445c (diff)
downloadupstream-a160f50d4f240019fafe95e80701ebb871c788fe.tar.gz
upstream-a160f50d4f240019fafe95e80701ebb871c788fe.tar.bz2
upstream-a160f50d4f240019fafe95e80701ebb871c788fe.zip
ramips: add support for Wavlink WL-WN570HA1
This commit adds support for the Wavlink WL-WN570HA1, a dual-band PoE wireless router with the following specifications: - CPU: MediaTek MT7688AN 580MHz - Flash: 8MB - RAM: 64MB - Ethernet: 1x 10/100Mbps - 2.4 GHz: 802.11b/g/n SoC, 1T1R, 27 dBm - 5 GHz: 802.11a/n/ac MT7610E, 1T1R, 25 dBm - Antennas: 2x external (1 per radio), detachable - LEDs: 3 programmable + Wi-Fi, WAN/LAN, Power - Buttons: Reset Flashing instructions: Factory U-boot launches a TFTP client if reset button is pressed during power-on. Rename the sysupgrade file and configure TFTP as follows: - Client (WL-WN570HA1) IP: 192.168.10.101 - Server IP: 192.168.10.100 - Filename: firmware.bin Signed-off-by: Thomas Vincent-Cross <me@tvc.id.au> [use generic board detection, add firmware partition compatible] Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds8
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
3 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index fb288de09b..4330254c8f 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -370,6 +370,14 @@ vocore-16M)
w502u)
set_wifi_led "rt2800pci-phy0::radio"
;;
+wavlink,wl-wn570ha1)
+ ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
+ ucidef_set_rssimon "wlan0" "200000" "1"
+ ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan0" "1" "49"
+ ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan0" "50" "84"
+ ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan0" "85" "100"
+ set_wifi_led "$boardname:green:wifi"
+ ;;
we1026-5g-16m)
ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
set_wifi_led "we1026-5g:green:wifi"
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 6f60683fc2..cdba37d38f 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -117,6 +117,7 @@ ramips_setup_interfaces()
sk-wb8|\
u7621-06-256M-16M|\
vr500|\
+ wavlink,wl-wn570ha1|\
wf-2881|\
whr-g300n|\
mqmaker,witi-256m|\
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index e4ddc0eec4..fc73f37e29 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -178,6 +178,7 @@ platform_check_image() {
w306r-v20|\
w502u|\
ravpower,wd03|\
+ wavlink,wl-wn570ha1|\
wf-2881|\
whr-1166d|\
whr-300hp2|\