[OpenWrt-Devel] [PATCH CC 02/13] ar71xx: add user-space support for the OpenMesh OM2P-HSv3
Sven Eckelmann
sven.eckelmann at open-mesh.com
Fri Jun 17 09:24:42 EDT 2016
Signed-off-by: Sven Eckelmann <sven.eckelmann at open-mesh.com>
---
Based on following CC backports from 2016-05-19:
* https://patchwork.ozlabs.org/patch/624172/
* https://patchwork.ozlabs.org/patch/624173/
* https://patchwork.ozlabs.org/patch/624174/
* https://patchwork.ozlabs.org/patch/624175/
* https://patchwork.ozlabs.org/patch/624176/
* https://patchwork.ozlabs.org/patch/624177/
* https://patchwork.ozlabs.org/patch/624178/
* https://patchwork.ozlabs.org/patch/624179/
* https://patchwork.ozlabs.org/patch/624180/
* https://patchwork.ozlabs.org/patch/624181/
* https://patchwork.ozlabs.org/patch/624182/
* https://patchwork.ozlabs.org/patch/624183/
* https://patchwork.ozlabs.org/patch/624184/
* https://patchwork.ozlabs.org/patch/624185/
* https://patchwork.ozlabs.org/patch/624186/
* https://patchwork.ozlabs.org/patch/624187/
* https://patchwork.ozlabs.org/patch/624188/
* https://patchwork.ozlabs.org/patch/624189/
* https://patchwork.ozlabs.org/patch/624190/
* https://patchwork.ozlabs.org/patch/624191/
* https://patchwork.ozlabs.org/patch/624192/
* https://patchwork.ozlabs.org/patch/624193/
* https://patchwork.ozlabs.org/patch/624194/
* https://patchwork.ozlabs.org/patch/624195/
* https://patchwork.ozlabs.org/patch/624196/
* https://patchwork.ozlabs.org/patch/624197/
* https://patchwork.ozlabs.org/patch/624198/
* https://patchwork.ozlabs.org/patch/624199/
* https://patchwork.ozlabs.org/patch/624200/
* https://patchwork.ozlabs.org/patch/624201/
* https://patchwork.ozlabs.org/patch/624202/
* https://patchwork.ozlabs.org/patch/624203/
* https://patchwork.ozlabs.org/patch/624200/
* https://patchwork.ozlabs.org/patch/624205/
It is a backport of the patch for trunk from 2016-05-20 which waits to be
accepted as well:
* https://patchwork.ozlabs.org/patch/624537/
target/linux/ar71xx/base-files/etc/diag.sh | 1 +
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 1 +
target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++
3 files changed, 5 insertions(+)
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 631459f..9a6b4cf 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -171,6 +171,7 @@ get_status_led() {
om2pv2 | \
om2p-hs | \
om2p-hsv2 | \
+ om2p-hsv3 | \
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 9a768cd..d297266 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -293,6 +293,7 @@ om2p | \
om2pv2 | \
om2p-hs | \
om2p-hsv2 | \
+om2p-hsv3 | \
om2p-lc)
ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0"
ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 92ee56d..230df0b 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -563,6 +563,9 @@ ar71xx_board_detect() {
*"OM2P HSv2")
name="om2p-hsv2"
;;
+ *"OM2P HSv3")
+ name="om2p-hsv3"
+ ;;
*"OM2P LC")
name="om2p-lc"
;;
--
2.8.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list