From e33dcd1cfe105cb0e1ad09887144e4911eac653f Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Sat, 8 Oct 2016 03:36:35 +0200 Subject: ar71xx: add support for YunCore CPE830 CPE830 is a clone of AP90Q, with different type of antenna (panel) and additional 4 LEDs for WiFi signal level indication. Use the same flash approach as for YunCore AP90Q. Signed-off-by: Piotr Dymacz --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 2 ++ target/linux/ar71xx/base-files/etc/diag.sh | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + 4 files changed, 7 insertions(+) (limited to 'target/linux/ar71xx/base-files') 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 2cf72d6..383695c 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -58,6 +58,7 @@ ap147-010) ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "ap147:green:wlan-2g" "phy0tpt" ;; ap90q|\ +cpe830|\ cpe870|\ dr531) ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0" @@ -67,6 +68,7 @@ dr531) ap90q) ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt" ;; + cpe830|\ cpe870) ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt" ucidef_set_rssimon "wlan0" "200000" "1" diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index e619749..b18a096 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -48,6 +48,7 @@ get_status_led() { status_led="$board:green:power" ;; ap90q|\ + cpe830|\ cpe870|\ gl-inet) status_led="$board:green:lan" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 0d4c1e0..37af9d4 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -526,6 +526,9 @@ ar71xx_board_detect() { name="cpe510" tplink_pharos_board_detect ;; + *CPE830) + name="cpe830" + ;; *CPE870) name="cpe870" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 66f6308..887a0f0 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -188,6 +188,7 @@ platform_check_image() { cf-e380ac-v2|\ cf-e520n|\ cf-e530n|\ + cpe830|\ cpe870|\ dgl-5500-a1|\ dhp-1565-a1|\ -- cgit v1.1