summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-01-07 19:36:35 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-01-07 19:36:35 +0000
commita1dcbc66a639d0f16e8cafb837099f156e018741 (patch)
tree5cc5709086d3bfc64582638783157492d6c46fcc /target/linux/ar71xx/base-files
parenta56bdeff9d994f6e8e39cd8a0cad571866b27533 (diff)
downloadmtk-20170518-a1dcbc66a639d0f16e8cafb837099f156e018741.zip
mtk-20170518-a1dcbc66a639d0f16e8cafb837099f156e018741.tar.gz
mtk-20170518-a1dcbc66a639d0f16e8cafb837099f156e018741.tar.bz2
ar71xx: add initial support for the TL-WR2543N/ND board
The WLAN LEDs are not working yet. SVN-Revision: 29680
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/leds4
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/network7
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh6
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh3
5 files changed, 22 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index dcac49d..76f263b 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -113,6 +113,9 @@ get_status_led() {
tl-wr703n)
status_led="tp-link:blue:system"
;;
+ tl-wr2543n)
+ status_led="tp-link:green:wps"
+ ;;
unifi)
status_led="ubnt:green:dome"
;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds
index 4d04dd7..6fe1087 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/leds
@@ -178,6 +178,10 @@ tl-wr1043nd)
set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
;;
+tl-wr2543n)
+ set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
+ ;;
+
wrt160nl)
set_led_wlan "wlan" "WLAN" "wrt160nl:blue:wlan" "phy0tpt"
;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/network
index c7bd419..45a9423 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/network
@@ -81,6 +81,13 @@ tl-wr1043nd)
ucidef_add_switch_vlan "rtl8366rb" "2" "0 5t"
;;
+tl-wr2543n)
+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
+ ucidef_add_switch_vlan "switch0" "2" "0 9t"
+ ;;
+
tl-wr841n-v1|\
tl-wr941nd)
ucidef_set_interface_raw "eth" "eth0"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 7e8e25e..db859b2 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -97,6 +97,9 @@ tplink_board_detect() {
"104300"*)
model="TP-Link TL-WR1043N/ND"
;;
+ "254300"*)
+ model="TP-Link TL-WR2543N/ND"
+ ;;
"302000"*)
model="TP-Link TL-MR3020"
;;
@@ -247,6 +250,9 @@ ar71xx_board_detect() {
*TL-WR1043ND)
name="tl-wr1043nd"
;;
+ *TL-WR2543N*)
+ name="tl-wr2543n"
+ ;;
*"DIR-615 rev. C1")
name="dir-615-c1"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index db8bdae..ae68db6 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -132,7 +132,8 @@ platform_check_image() {
tl-wr841n-v1 | \
tl-wr841n-v7 | \
tl-wr941nd | \
- tl-wr1043nd)
+ tl-wr1043nd | \
+ tl-wr2543n)
[ "$magic" != "0100" ] && {
echo "Invalid image type."
return 1