summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eckelmann <sven.eckelmann@open-mesh.com>2016-08-09 16:06:45 +0200
committerJohn Crispin <john@phrozen.org>2017-02-15 09:35:46 +0100
commit5ad9164b9c8910e734778700af7514efcaac1a02 (patch)
tree89be0144cf94db4d3f4a4cb36afb8f81e86682d4
parent72d8d8c6f32eab856bb0fc08c374d3e02adca65d (diff)
downloadmtk-20170518-5ad9164b9c8910e734778700af7514efcaac1a02.zip
mtk-20170518-5ad9164b9c8910e734778700af7514efcaac1a02.tar.gz
mtk-20170518-5ad9164b9c8910e734778700af7514efcaac1a02.tar.bz2
ar71xx: add user-space support for the OpenMesh A60
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
-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.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
4 files changed, 11 insertions, 0 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 5cd2e5c..1ec225c 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -11,6 +11,10 @@ board_config_update
board=$(ar71xx_board_name)
case "$board" in
+a60)
+ ucidef_set_led_default "status-red" "Status (red)" "a60:red:status" "0"
+ ucidef_set_led_default "status-blue" "Status (blue)" "a60:blue:status" "0"
+ ;;
airgateway|\
airgatewaypro)
ucidef_set_led_wlan "wlan" "WLAN" "ubnt:blue:wlan" "phy0tpt"
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 50ce445..eac94d6 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -118,6 +118,7 @@ ar71xx_setup_interfaces()
wp543)
ucidef_set_interface_lan "eth0"
;;
+ a60|\
alfa-ap96|\
alfa-nx|\
gl-ar150|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 111dd61..157a9ac 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -8,6 +8,9 @@ get_status_led() {
local board=$(ar71xx_board_name)
case $board in
+ a60)
+ status_led="a60:green:status"
+ ;;
alfa-nx)
status_led="alfa:green:led_8"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 77016f4..79a651c 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -382,6 +382,9 @@ ar71xx_board_detect() {
*"Oolite V1.0")
name="oolite"
;;
+ *"A60")
+ name="a60"
+ ;;
*"AC1750DB")
name="f9k1115v2"
;;