aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds21
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh4
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh6
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh2
5 files changed, 26 insertions, 8 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 082b6c478e..1a4b02c535 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -83,6 +83,7 @@ ap147-010)
ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "ap147:green:wlan-2g" "phy0tpt"
;;
ap90q|\
+cpe505n|\
cpe830|\
cpe870|\
dr531)
@@ -93,6 +94,9 @@ dr531)
ap90q)
ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
;;
+ cpe505n)
+ ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
+ ;;
cpe830|\
cpe870)
ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
@@ -502,6 +506,15 @@ pqi-air-pen)
qihoo-c301)
ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt"
;;
+r602n|\
+zbt-we1526)
+ ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
+ ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
+ ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
+ ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
+ ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
+ ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
+ ;;
re450)
ucidef_set_led_netdev "lan_data" "LAN Data" "$board:green:lan_data" "eth0" "tx rx"
ucidef_set_led_netdev "lan_link" "LAN Link" "$board:green:lan_link" "eth0" "link"
@@ -846,14 +859,6 @@ xd3200)
z1)
ucidef_set_led_netdev "wlan1" "WLAN1" "$board:blue:tricolor0" "wlan1"
;;
-zbt-we1526)
- ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth1"
- ucidef_set_led_switch "lan1" "LAN1" "$board:green:lan1" "switch0" "0x10"
- ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan2" "switch0" "0x08"
- ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan3" "switch0" "0x04"
- ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan4" "switch0" "0x02"
- ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
- ;;
zcn-1523h-2)
ucidef_set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "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 08ee584480..e5892ac485 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -31,6 +31,7 @@ ar71xx_setup_interfaces()
mynet-n600|\
oolite|\
qihoo-c301|\
+ r602n|\
rb-750|\
rb-751|\
som9331|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 00f6a7db07..fed51a17d7 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -32,6 +32,7 @@ get_status_led() {
;;
ap132|\
ap531b0|\
+ cpe505n|\
db120|\
dr344|\
tew-632brp|\
@@ -280,6 +281,9 @@ get_status_led() {
pb44)
status_led="$board:amber:jump1"
;;
+ r602n)
+ status_led="$board:green:wan"
+ ;;
rb-2011l|\
rb-2011uas|\
rb-2011uas-2hnd)
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 267cb6ad58..eedcb7829c 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -508,6 +508,9 @@ ar71xx_board_detect() {
name="cpe210"
tplink_pharos_board_detect
;;
+ *"CPE505N")
+ name="cpe505n"
+ ;;
*"CPE510/520")
name="cpe510"
tplink_pharos_board_detect
@@ -802,6 +805,9 @@ ar71xx_board_detect() {
*"Qihoo 360 C301")
name="qihoo-c301"
;;
+ *"R602N")
+ name="r602n"
+ ;;
*"R6100")
name="r6100"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 38a78830a0..2f0228b823 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -217,6 +217,7 @@ platform_check_image() {
cf-e380ac-v2|\
cf-e520n|\
cf-e530n|\
+ cpe505n|\
cpe830|\
cpe870|\
dgl-5500-a1|\
@@ -256,6 +257,7 @@ platform_check_image() {
nanostation-m|\
nbg460n_550n_550nh|\
pqi-air-pen|\
+ r602n|\
rocket-m-ti|\
rocket-m-xw|\
rocket-m|\