ar71xx: add user-space support for OpenMesh OM2Pv2
authorJohn Crispin <john@openwrt.org>
Mon, 2 Jun 2014 13:21:02 +0000 (13:21 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 2 Jun 2014 13:21:02 +0000 (13:21 +0000)
Signed-off-by: Marek Lindner <marek@open-mesh.com>
[sven@open-mesh.com: Rebased]
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
SVN-Revision: 40956

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh

index 7647039515fd5f9c6d58c48cda326b6762b7205e..616c8cc98f5faa11275ec1329ca7eefe38545378 100755 (executable)
@@ -98,6 +98,7 @@ get_status_led() {
                status_led="nbg6716:white:power"
                ;;
        om2p | \
+       om2pv2 | \
        om2p-hs | \
        om2p-lc)
                status_led="om2p:blue:power"
index db60cee9dd093c8f576771f7b0322c6b0060ea87..aac13c4e8eeaa9f52793340643a2dda70a5e8794 100755 (executable)
@@ -151,6 +151,7 @@ nbg6716)
        ;;
 
 om2p | \
+om2pv2 | \
 om2p-hs | \
 om2p-lc)
        ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
index 02c46f9b94a5e8b4d58bada774736550716e019b..fa114139a58b63f5402d38ed5f0f02fbd12f4e4c 100755 (executable)
@@ -358,6 +358,9 @@ ar71xx_board_detect() {
        *OM2P)
                name="om2p"
                ;;
+       *OM2Pv2)
+               name="om2pv2"
+               ;;
        *"OM2P HS")
                name="om2p-hs"
                ;;
index fb8ef191f77f7fa49f3842d49d193939fd304794..9eac5ef27d2c0825ed92281f42ec94fc6091ec6d 100644 (file)
@@ -59,6 +59,7 @@ platform_check_image_openmesh()
        case "$img_board_target" in
                OM2P)
                        [ "$board" = "om2p" ] && break
+                       [ "$board" = "om2pv2" ] && break
                        [ "$board" = "om2p-lc" ] && break
                        [ "$board" = "om2p-hs" ] && break
                        echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform"