aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorFUKAUMI Naoki <naobsd@gmail.com>2016-11-08 22:45:00 +0900
committerJohn Crispin <john@phrozen.org>2016-11-16 10:54:33 +0100
commit016520330440cb0aca4367150911721b748f75e8 (patch)
treee2adac34dc59c2a67a750fb714cae5dbbf8b991d /target/linux/ar71xx/base-files
parent40a16fec6a8ddecd022452b1c2052bf08b681687 (diff)
downloadupstream-016520330440cb0aca4367150911721b748f75e8.tar.gz
upstream-016520330440cb0aca4367150911721b748f75e8.tar.bz2
upstream-016520330440cb0aca4367150911721b748f75e8.zip
ar71xx: add support for Buffalo BHR-4GRV2
Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds4
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh9
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-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, 15 insertions, 4 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 1708abf53c..16135a36a6 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -57,6 +57,10 @@ ap147-010)
ucidef_set_led_switch "lan4" "LAN4" "ap147:green:lan4" "switch0" "0x02"
ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "ap147:green:wlan-2g" "phy0tpt"
;;
+bhr-4grv2)
+ ucidef_set_led_default "power" "POWER" "buffalo:green:power" "1"
+ ucidef_set_led_default "diag" "DIAG" "buffalo:red:diag" "0"
+ ;;
bsb)
ucidef_set_led_default "sys" "SYS" "$board:red:sys" "1"
;;
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 24dfced4ae..df87c96a3f 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -164,6 +164,7 @@ ar71xx_setup_interfaces()
;;
ap135-020|\
ap136-020|\
+ bhr-4grv2|\
tew-823dru|\
tl-wr1043nd-v2|\
wzr-450hp2)
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 881b3c65e5..bfd619a211 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -53,6 +53,11 @@ get_status_led() {
aw-nr580)
status_led="$board:green:ready"
;;
+ bhr-4grv2|\
+ wzr-hp-ag300h|\
+ wzr-hp-g300nh2)
+ status_led="buffalo:red:diag"
+ ;;
bsb)
status_led="$board:red:sys"
;;
@@ -393,10 +398,6 @@ get_status_led() {
wlae-ag300n)
status_led="buffalo:green:status"
;;
- wzr-hp-ag300h|\
- wzr-hp-g300nh2)
- status_led="buffalo:red:diag"
- ;;
r6100|\
wndap360|\
wndr3700|\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 75542470ba..9495bf449a 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -482,6 +482,9 @@ ar71xx_board_detect() {
*AW-NR580)
name="aw-nr580"
;;
+ *BHR-4GRV2)
+ name="bhr-4grv2"
+ ;;
*CAP324)
name="cap324"
;;
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 c4177e1099..e2a70b82dd 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
@@ -16,6 +16,7 @@ set_preinit_iface() {
ap83 |\
archer-c5 |\
archer-c7 |\
+ bhr-4grv2 |\
dir-505-a1 |\
gl-inet |\
jwap003 |\
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index c4a9f8a9f1..2358c58c8f 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -263,6 +263,7 @@ platform_check_image() {
ap152|\
ap96|\
arduino-yun|\
+ bhr-4grv2|\
bxu2000n-2-a1|\
db120|\
dr344|\