aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorFilip Moc <lede@moc6.cz>2017-05-25 21:51:37 +0200
committerJohn Crispin <john@phrozen.org>2017-05-27 07:54:21 +0200
commita639cbfd00a47dc55b1e4cd47897fa0a3150d0e9 (patch)
tree7eb80a6f76b8b0cc33639c50886aef8dfdb7be4c /target/linux/ar71xx/base-files/etc
parentb76248dd96f51594fd4894b5721753ce69456a00 (diff)
downloadupstream-a639cbfd00a47dc55b1e4cd47897fa0a3150d0e9.tar.gz
upstream-a639cbfd00a47dc55b1e4cd47897fa0a3150d0e9.tar.bz2
upstream-a639cbfd00a47dc55b1e4cd47897fa0a3150d0e9.zip
ar71xx: Add support for TP-Link MR6400
You can flash via tftp recovery (serve factory image as /mr6400_tp_recovery.bin on 192.168.0.66/24, connect to any ethernet port and power on device while holding the reset button). Flashing via OEM web interface does not work. Hardware Specification (v1.0 EU): - SoC: QCA9531 - Flash: Winbond W25Q64FV (8MiB) - RAM: EtronTech EM6AB160TSE-5G (64MiB) - Wireless: SoC platform only (2.4GHz b/g/n, 2x internal antenna) - Ethernet: 2NIC (3x100M + 1x100M) - WWAN: TP-LINK LTE MODULE (2x external detachable antenna) - Power: DC 12V 1A Signed-off-by: Filip Moc <lede@moc6.cz>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds6
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network5
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
3 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index 2f3e5efd57..520a5cdb05 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -603,6 +603,12 @@ tl-wr941nd-v5)
;;
esac
;;
+tl-mr6400)
+ ucidef_set_led_netdev "lan" "LAN" "tp-link:white:lan" "eth0"
+ ucidef_set_led_netdev "wan" "WAN" "tp-link:white:wan" "eth1"
+ ucidef_set_led_netdev "4g" "4G" "tp-link:white:4g" "usb0"
+ ucidef_set_led_wlan "wlan" "WLAN" "tp-link:white:wlan" "phy0tpt"
+ ;;
tl-wa7210n-v2)
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
ucidef_set_rssimon "wlan0" "200000" "1"
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 2737129eb6..6f72fc73f7 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -311,6 +311,11 @@ ar71xx_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth1" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4"
;;
+ tl-mr6400)
+ ucidef_set_interfaces_lan_wan "eth0.1 eth1" "usb0"
+ ucidef_add_switch "switch0" \
+ "0@eth0" "1:lan" "2:lan" "3:lan"
+ ;;
dir-825-b1|\
nbg460n_550n_550nh|\
tew-673gru|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 9cad8995db..7a2cf927ff 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -366,6 +366,9 @@ get_status_led() {
tl-wa860re)
status_led="tp-link:green:power"
;;
+ tl-mr6400)
+ status_led="tp-link:white:power"
+ ;;
tl-mr3220|\
tl-mr3220-v2|\
tl-mr3420|\