aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2014-08-11 11:44:51 +0000
committerImre Kaloz <kaloz@openwrt.org>2014-08-11 11:44:51 +0000
commitf9968acee1a8ba8559a57d4f2a2422a9947b0aff (patch)
tree3c4738155fce08a1ba5734f06b307331e9ef73aa /target/linux/ar71xx/base-files
parent01b65b97ef722cc1220b3b53c7c51619831312f9 (diff)
downloadupstream-f9968acee1a8ba8559a57d4f2a2422a9947b0aff.tar.gz
upstream-f9968acee1a8ba8559a57d4f2a2422a9947b0aff.tar.bz2
upstream-f9968acee1a8ba8559a57d4f2a2422a9947b0aff.zip
[ar71xx]: add support for the NC-LINK SMART-300
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42130 3c298f89-4303-0410-b956-a3cf2f4a3e73
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/01_leds9
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/02_network1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh6
-rw-r--r--target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
6 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 2984777d9d..1864b11a27 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -160,6 +160,9 @@ get_status_led() {
rw2458n)
status_led="rw2458n:green:d3"
;;
+ smart-300)
+ status_led="nc-link:green:system"
+ ;;
oolite)
status_led="oolite:red:system"
;;
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 a93b5faeed..d104f40786 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -190,6 +190,15 @@ om5p)
ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1"
;;
+smart-300)
+ ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
+ ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
+ ucidef_set_led_switch "lan2" "LAN2" "nc-link:green:lan2" "switch0" "0x08"
+ ucidef_set_led_switch "lan3" "LAN3" "nc-link:green:lan3" "switch0" "0x10"
+ ucidef_set_led_switch "lan4" "LAN4" "nc-link:green:lan4" "switch0" "0x02"
+ ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt"
+ ;;
+
tew-712br)
ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
ucidef_set_led_switch "lan1" "LAN1" "trendnet:green:lan1" "switch0" "0x02"
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 c9ee86769a..3b4b330be4 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -199,6 +199,7 @@ tl-wr941nd)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
;;
+smart-300 | \
tl-mr3420-v2 |\
tl-wr841n-v8 |\
tl-wr842n-v2 |\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index a067604df9..80a607c2dd 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -211,6 +211,9 @@ tplink_board_detect() {
"453000"*)
model="MERCURY MW4530R"
;;
+ "934100"*)
+ model="NC-LINK SMART-300"
+ ;;
*)
hwver=""
;;
@@ -514,6 +517,9 @@ ar71xx_board_detect() {
*RW2458N)
name="rw2458n"
;;
+ *"SMART-300")
+ name="smart-300"
+ ;;
*TEW-632BRP)
name="tew-632brp"
;;
diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
index 10651fccd4..a9a8794c77 100644
--- a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
+++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
@@ -27,6 +27,7 @@ set_preinit_iface() {
rb-450g |\
routerstation |\
routerstation-pro |\
+ smart-300 |\
tl-mr3420-v2 |\
tl-wdr4900-v2 |\
tl-wr1043nd-v2 |\
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index ced42ed044..b5b28736bc 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -257,6 +257,7 @@ platform_check_image() {
el-mini | \
gl-inet | \
oolite | \
+ smart-300 | \
tl-mr10u | \
tl-mr11u | \
tl-mr13u | \