aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorThomas Roberts <tom.p.roberts@gmail.com>2017-02-13 17:29:34 +0000
committerJohn Crispin <john@phrozen.org>2017-02-20 09:10:17 +0100
commitf9278337cf4b9c699a41dfc1e4c448213be53e61 (patch)
treeb19f276ce789c6c08784846ee3765d801548b84f /target/linux/ar71xx/base-files
parent7c9f5c7e6b43650315603db1fe03c1c2fb857135 (diff)
downloadupstream-f9278337cf4b9c699a41dfc1e4c448213be53e61.tar.gz
upstream-f9278337cf4b9c699a41dfc1e4c448213be53e61.tar.bz2
upstream-f9278337cf4b9c699a41dfc1e4c448213be53e61.zip
ar71xx: add support for TL-WR802N Version 2
This patch adds support for the TP-Link TL-WR802N Version 2. Specification: - SoC: Qualcomm Atheros QCA9533 (560 MHz, MIPS 24Kc) - RAM: 32 MiB - Storage: 4 MiB of FLash on board - Wireless: Built into QCA9533 (Honey Bee), PHY modes b/g/n - Ethernet: 1x100M (port0) Installation through OEM Web Interface: - Connect to TL-WR802N by Ethernet or Wi-Fi - Go to http://192.168.0.1 (default user is "admin" & password is "admin) - Go to "System Tools -> Firmware Upgrade" - Browse for firmware "*.factory-us.bin" or "*.factory-eu.bin" for eu model - Click upgrade Installation through tftp: Note: T_OUT, T_IN and GND on the board must be connected to USB TTL Serial Configuration 115200 8n1 - Boot the TL-WR802N - When "Autobooting in 1 seconds" appears type "tpl" followed by enter - Connect to the board Ethernet port (IPADDR: 192.168.1.1, ServerIP: 192.168.1.10) - tftpboot 0x80000000 <Firmware Image Name> - Record the result of "printenv bootcmd" - Enter "erase <Result of 'printenv bootcmd'> +0x3c0000" (e.g erase 0x9f020000 +0x3c0000) - Enter "cp.b 0x80000000 <Result of 'printenv bootcmd'> 0x3c0000" (e.g cp.b 0x80000000 0x9f020000 0x3c0000) - Enter "bootm <Result of 'printenv bootcmd'>" (e.g bootm 0x9f020000) Signed-off-by: Thomas Roberts <tom.p.roberts@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh7
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
5 files changed, 13 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 70f5dac944..4dc4bfd51d 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -667,6 +667,9 @@ tl-wpa8630)
tl-wr802n-v1)
ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:system" "phy0tpt"
;;
+tl-wr802n-v2)
+ ucidef_set_led_wlan "wlan" "WLAN" "$board:green:system" "phy0tpt"
+ ;;
tl-wr940n-v4|\
tl-wr941nd-v6)
ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"
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 3ae35f1a81..95faea0702 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -116,6 +116,7 @@ ar71xx_setup_interfaces()
tl-wa901nd-v4|\
tl-wr703n|\
tl-wr802n-v1|\
+ tl-wr802n-v2|\
tube2h|\
unifiac-lite|\
wndap360|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index ae6c693da8..106464105a 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -26,6 +26,7 @@ get_status_led() {
minibox-v1|\
som9331|\
sr3200|\
+ tl-wr802n-v2|\
xd3200)
status_led="$board:green:system"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 2ae4e1168f..ae0189d05b 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -220,6 +220,10 @@ tplink_board_detect() {
;;
"080200"*)
model="TP-Link TL-WR802N"
+
+ if [ "$hwid" = '08020002' -a "$mid" = '00000002' ]; then
+ hwver=' v2'
+ fi
;;
"083000"*)
model="TP-Link TL-WA830RE"
@@ -1031,6 +1035,9 @@ ar71xx_board_detect() {
*"TL-WR802N v1")
name="tl-wr802n-v1"
;;
+ *"TL-WR802N v2")
+ name="tl-wr802n-v2"
+ ;;
*TL-WA901ND)
name="tl-wa901nd"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index c2585b45a5..0175f6d32c 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -430,6 +430,7 @@ platform_check_image() {
tl-wr741nd-v4|\
tl-wr741nd|\
tl-wr802n-v1|\
+ tl-wr802n-v2|\
tl-wr810n|\
tl-wr841n-v11|\
tl-wr841n-v1|\