summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-03-01 13:46:01 +0000
committerLuka Perkov <luka@openwrt.org>2013-03-01 13:46:01 +0000
commit107e0c6d1f37fa474b8cc667d5a2e8d0c47eafea (patch)
tree28d27b69dfba8e0be2a62f68eb72bc749adf0a94 /target/linux/ar71xx/base-files
parent819472b2d061757f99ba41ff36e80edf3a38874d (diff)
downloadmtk-20170518-107e0c6d1f37fa474b8cc667d5a2e8d0c47eafea.zip
mtk-20170518-107e0c6d1f37fa474b8cc667d5a2e8d0c47eafea.tar.gz
mtk-20170518-107e0c6d1f37fa474b8cc667d5a2e8d0c47eafea.tar.bz2
ar71xx: add support for Buffalo WZR 600DHP
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 35840
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rw-r--r--target/linux/ar71xx/base-files/etc/hotplug.d/net/10-ar922x-led-fix3
-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/etc/uci-defaults/03_network-switchX-migration1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
7 files changed, 13 insertions, 4 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index adf32f1..c863b21 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -152,7 +152,8 @@ get_status_led() {
status_led="buffalo:green:status"
;;
wzr-hp-ag300h | \
- wzr-hp-g300nh2)
+ wzr-hp-g300nh2 | \
+ wzr-600dhp)
status_led="buffalo:red:diag"
;;
wndr3700)
diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/net/10-ar922x-led-fix b/target/linux/ar71xx/base-files/etc/hotplug.d/net/10-ar922x-led-fix
index 1024150..6a7f521 100644
--- a/target/linux/ar71xx/base-files/etc/hotplug.d/net/10-ar922x-led-fix
+++ b/target/linux/ar71xx/base-files/etc/hotplug.d/net/10-ar922x-led-fix
@@ -42,7 +42,8 @@ if [ $phyname -a $ACTION = "add" ]; then
. /lib/ar71xx.sh
case $(ar71xx_board_name) in
- wzr-hp-ag300h)
+ wzr-hp-ag300h|\
+ wzr-600dhp)
ar922x_disable_gpio_jtag $phyname
;;
esac;
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 3924393..3e54d64 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -212,7 +212,8 @@ wlae-ag300n)
ucidef_set_led_netdev "wireless" "WIRELESS" "buffalo:green:wireless" "wlan0"
;;
-wzr-hp-ag300h)
+wzr-hp-ag300h | \
+wzr-600dhp)
ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
ucidef_set_led_netdev "router" "ROUTER" "buffalo:green:router" "eth1"
ucidef_set_led_usbdev "usb" "USB" "buffalo:green:usb" "1-1"
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 b1f84da..15a1d39 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -233,7 +233,8 @@ tl-wr841n-v7 |\
whr-g301n |\
whr-hp-g300n |\
whr-hp-gn |\
-wzr-hp-ag300h)
+wzr-hp-ag300h |\
+wzr-600dhp)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
ucidef_add_switch "switch0" "1" "1"
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
index 718a924..8757b21 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
@@ -75,6 +75,7 @@ whr-hp-g300n|\
whr-hp-gn|\
wzr-hp-ag300h|\
wzr-hp-g450h|\
+wzr-600dhp|\
ew-dorin|\
ew-dorin-router)
migrate_switch_name "eth0" "switch0"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 71bf58e..84751e8 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -468,6 +468,9 @@ ar71xx_board_detect() {
*WZR-HP-G300NH2)
name="wzr-hp-g300nh2"
;;
+ *WZR-600DHP)
+ name="wzr-600dhp"
+ ;;
*WHR-HP-G300N)
name="whr-hp-g300n"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index c16d184..d3e14d1 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -125,6 +125,7 @@ platform_check_image() {
wzr-hp-g300nh | \
wzr-hp-g450h | \
wzr-hp-ag300h | \
+ wzr-600dhp | \
whr-g301n | \
whr-hp-g300n | \
whr-hp-gn | \