aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-06-02 13:21:02 +0000
committerJohn Crispin <blogic@openwrt.org>2014-06-02 13:21:02 +0000
commita625de6b427674f22a74ca4390ef9ab363272498 (patch)
treee37d2fd268cf3603b7a5fcde73732d390d0d73cb /target
parent886f70b365d1f35b248c4a96573e6957db604b93 (diff)
downloadupstream-a625de6b427674f22a74ca4390ef9ab363272498.tar.gz
upstream-a625de6b427674f22a74ca4390ef9ab363272498.tar.bz2
upstream-a625de6b427674f22a74ca4390ef9ab363272498.zip
ar71xx: add user-space support for OpenMesh OM2Pv2
Signed-off-by: Marek Lindner <marek@open-mesh.com> [sven@open-mesh.com: Rebased] Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40956 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh1
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/01_leds1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rw-r--r--target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh1
4 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 7647039515..616c8cc98f 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -98,6 +98,7 @@ get_status_led() {
status_led="nbg6716:white:power"
;;
om2p | \
+ om2pv2 | \
om2p-hs | \
om2p-lc)
status_led="om2p:blue:power"
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 db60cee9dd..aac13c4e8e 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -151,6 +151,7 @@ nbg6716)
;;
om2p | \
+om2pv2 | \
om2p-hs | \
om2p-lc)
ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 02c46f9b94..fa114139a5 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -358,6 +358,9 @@ ar71xx_board_detect() {
*OM2P)
name="om2p"
;;
+ *OM2Pv2)
+ name="om2pv2"
+ ;;
*"OM2P HS")
name="om2p-hs"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
index fb8ef191f7..9eac5ef27d 100644
--- a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
@@ -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"