diff options
author | Filip Moc <lede@moc6.cz> | 2017-05-25 21:51:37 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-05-27 07:54:21 +0200 |
commit | a639cbfd00a47dc55b1e4cd47897fa0a3150d0e9 (patch) | |
tree | 7eb80a6f76b8b0cc33639c50886aef8dfdb7be4c /target/linux/ar71xx/base-files | |
parent | b76248dd96f51594fd4894b5721753ce69456a00 (diff) | |
download | upstream-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')
5 files changed, 21 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|\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index a751c64a3a..b3de55d274 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -309,6 +309,9 @@ tplink_board_detect() { "49000002") model="TP-Link TL-WDR4900" ;; + "640000"*) + model="TP-Link TL-MR6400" + ;; "65000002") model="TP-Link TL-WDR6500" ;; @@ -1016,6 +1019,9 @@ ar71xx_board_detect() { *"TL-MR3420 v2") name="tl-mr3420-v2" ;; + *TL-MR6400) + name="tl-mr6400" + ;; *"TL-WA701ND v2") name="tl-wa701nd-v2" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index e246f35add..c70351c1f3 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -398,6 +398,7 @@ platform_check_image() { tl-mr3220|\ tl-mr3420-v2|\ tl-mr3420|\ + tl-mr6400|\ tl-wa701nd-v2|\ tl-wa7210n-v2|\ tl-wa750re|\ |