ar71xx: add user-space support for the OpenMesh A60
authorSven Eckelmann <sven.eckelmann@open-mesh.com>
Tue, 9 Aug 2016 14:06:45 +0000 (16:06 +0200)
committerJohn Crispin <john@phrozen.org>
Tue, 14 Feb 2017 11:18:05 +0000 (12:18 +0100)
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
target/linux/ar71xx/base-files/etc/board.d/01_leds
target/linux/ar71xx/base-files/etc/board.d/02_network
target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/lib/ar71xx.sh

index b0aa7c2b24eac0b6c0c1f53e98143fb730dae9fa..c2737bd460342a275a4078b2f4d757b9db50e5a5 100755 (executable)
@@ -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"
index 0687b292089069a90023301fe00a9865693ebc55..92c2af7978ca7fb8f3656a1932b44e66625163fe 100755 (executable)
@@ -120,6 +120,7 @@ ar71xx_setup_interfaces()
        wp543)
                ucidef_set_interface_lan "eth0"
                ;;
+       a60|\
        alfa-ap96|\
        alfa-nx|\
        gl-ar150|\
index 17b324d65ee6c2d851df4bf3dfb4da644070e35f..871a12b9bdea82a2cf7f4d402c318c0c243e43a4 100644 (file)
@@ -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"
                ;;
index f090b041d06e8ab8e634556ef6c12ab2b6eac623..4781278948e45fb6758ac68f721a4ae8c12b9d84 100755 (executable)
@@ -382,6 +382,9 @@ ar71xx_board_detect() {
        *"Oolite V1.0")
                name="oolite"
                ;;
+       *"A60")
+               name="a60"
+               ;;
        *"AC1750DB")
                name="f9k1115v2"
                ;;