summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-02-19 12:15:34 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-02-19 12:15:34 +0000
commit7ec2d80ae3e3207262c799cf560d86f8caa6b2ef (patch)
treec872a6eb3232b83ecd04d344bfb209f658162025 /target/linux
parentdb0e6e264d7c3626772ae889a70eb4a5d14df2ed (diff)
downloadmtk-20170518-7ec2d80ae3e3207262c799cf560d86f8caa6b2ef.zip
mtk-20170518-7ec2d80ae3e3207262c799cf560d86f8caa6b2ef.tar.gz
mtk-20170518-7ec2d80ae3e3207262c799cf560d86f8caa6b2ef.tar.bz2
ar71xx: add user-space support for TP-Link TL-WDR4900 v2.0 board
Patch-by: TenNinjas <tenninjas@tenninjas.ca> Patchwork: http://patchwork.openwrt.org/patch/4849/ [juhosg: - use the Archer C7 specific LED setup instead of adding identical code] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39636
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh1
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/01_leds3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/02_network3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh6
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
5 files changed, 12 insertions, 2 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 6e4445f..dea3f81 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -160,6 +160,7 @@ get_status_led() {
status_led="tp-link:green:system"
;;
archer-c7 | \
+ tl-wdr4900-v2 | \
tl-mr10u | \
tl-mr13u | \
tl-wdr4300 | \
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index 04ca3e2..a986dbc 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -228,7 +228,8 @@ tl-wdr4300)
ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
;;
-archer-c7)
+archer-c7|\
+tl-wdr4900-v2)
ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index dac75ae..fd38ffa 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -46,7 +46,8 @@ tl-wr1043nd-v2)
ucidef_add_switch_vlan "switch0" "2" "5 6"
;;
-archer-c7)
+archer-c7 |\
+tl-wdr4900-v2)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
ucidef_add_switch "switch0" "1" "1"
ucidef_add_switch_vlan "switch0" "1" "0 2 3 4 5"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 3893747..81a7591 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -183,6 +183,9 @@ tplink_board_detect() {
"431000"*)
model="TP-Link TL-WDR4310"
;;
+ "49000002")
+ model="TP-Link TL-WDR4900"
+ ;;
"453000"*)
model="MERCURY MW4530R"
;;
@@ -495,6 +498,9 @@ ar71xx_board_detect() {
*"TL-WDR3600/4300/4310")
name="tl-wdr4300"
;;
+ *"TL-WDR4900 v2")
+ name="tl-wdr4900-v2"
+ ;;
*TL-WR741ND)
name="tl-wr741nd"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index b2181af..0028e8a 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -239,6 +239,7 @@ platform_check_image() {
tl-wa901nd-v3 | \
tl-wdr3500 | \
tl-wdr4300 | \
+ tl-wdr4900-v2 | \
tl-wr703n | \
tl-wr710n | \
tl-wr720n-v3 | \