From 8a3c713c971fa83a6f2c373d87b4aedbbe760e86 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 2 Jun 2014 14:56:35 +0000 Subject: [PATCH] ar71xx: add user-space support for HiWiFi HC6361 board. Signed-off-by: Yousong Zhou SVN-Revision: 40974 --- target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 5 +++++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + 5 files changed, 13 insertions(+) diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index d555c5b603..80f9090b1a 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -65,6 +65,9 @@ get_status_led() { eap7660d) status_led="eap7660d:green:ds4" ;; + hiwifi-hc6361) + status_led="hiwifi:blue:system" + ;; hornet-ub) status_led="alfa:blue:wps" ;; 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 849fd564ac..fe5ff93130 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -103,6 +103,11 @@ dir-825-c1) ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt" ;; +hiwifi-hc6361) + ucidef_set_led_default "inet" "INET" "hiwifi:blue:internet" "0" + ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt" + ;; + hornet-ub) ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0" ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1" 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 e8268cac8b..4bf4321cd3 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -289,6 +289,7 @@ dir-600-a1 |\ dir-615-c1 |\ dir-615-e1 |\ dir-615-e4 |\ +hiwifi-hc6361 |\ ja76pf |\ mynet-n600 |\ oolite |\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 2fbef9653e..23f2ecf36d 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -670,6 +670,9 @@ ar71xx_board_detect() { *"BHU BXU2000n-2 rev. A1") name="bxu2000n-2-a1" ;; + *"HiWiFi HC6361") + name="hiwifi-hc6361" + ;; esac case "$machine" in diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 7475f9f4cc..a6723fab54 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -153,6 +153,7 @@ platform_check_image() { dragino2 | \ ew-dorin | \ ew-dorin-router | \ + hiwifi-hc6361 | \ hornet-ub-x2 | \ mzk-w04nu | \ mzk-w300nh | \