From patchwork Sun Aug 2 06:59:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Dickinson X-Patchwork-Id: 505702 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E89B014012C for ; Tue, 11 Aug 2015 01:42:57 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id C2C5E28C0DA; Mon, 10 Aug 2015 17:41:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DATE_IN_PAST_96_XX autolearn=no version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3F70F28C037 for ; Mon, 10 Aug 2015 17:40:54 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from s1.neomailbox.net (s1.neomailbox.net [5.148.176.57]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 10 Aug 2015 17:40:51 +0200 (CEST) From: Daniel Dickinson Date: Sun, 2 Aug 2015 02:59:20 -0400 To: openwrt-devel@lists.openwrt.org Message-Id: <20150810154128.440F523A154C@danielcent.thecshore.com> Subject: [OpenWrt-Devel] [PATCH 5/8] CC PowerCloud CR3000 OpenWrt configuration X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Daniel Dickinson --- package/boot/uboot-envtools/files/ar71xx | 1 + target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 9 +++++++++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network | 6 ++++++ target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 3 ++- 6 files changed, 24 insertions(+), 1 deletion(-) diff --git a/package/boot/uboot-envtools/files/ar71xx b/package/boot/uboot-envtools/files/ar71xx index e6f73b1..20a83b0 100644 --- a/package/boot/uboot-envtools/files/ar71xx +++ b/package/boot/uboot-envtools/files/ar71xx @@ -18,6 +18,7 @@ all0258n | \ cap324 | \ cap4200ag | \ carambola2 | \ +cr3000 | \ eap300v2 | \ hornet-ub | \ hornet-ub-x2 | \ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 6ffdd37..f54d6c2 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -59,6 +59,9 @@ get_status_led() { cpe510) status_led="tp-link:green:link4" ;; + cr3000) + status_led="pcs:amber:power" + ;; db120) status_led="db120:green:status" ;; 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 eefc299..fc4ed16 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -108,6 +108,15 @@ cpe510) ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13" ;; +cr3000) + ucidef_set_led_netdev "wan" "WAN" "pcs:blue:wan" "eth1" + ucidef_set_led_switch "lan1" "LAN1" "pcs:green:lan1" "switch0" "0x04" + ucidef_set_led_switch "lan2" "LAN2" "pcs:green:lan2" "switch0" "0x08" + ucidef_set_led_switch "lan3" "LAN3" "pcs:green:lan3" "switch0" "0x10" + ucidef_set_led_switch "lan4" "LAN4" "pcs:green:lan4" "switch0" "0x02" + ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt" + ;; + db120) ucidef_set_led_usbdev "usb" "USB" "db120:green:usb" "1-1" ;; diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index bee5a53..2d0eb5b 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -263,6 +263,12 @@ wzr-hp-g300nh) ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t" ;; +cr3000) + ucidef_set_interfaces_lan_wan "eth0.1" "eth1" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4" + ;; + dgl-5500-a1 |\ dir-825-c1) local mac diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 25f0451..f1441c1 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -396,6 +396,9 @@ ar71xx_board_detect() { name="cpe510" tplink_pharos_board_detect ;; + *CR3000) + name="cr3000" + ;; *"DB120 reference board") name="db120" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 6faf38c..8acb2b1 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -168,7 +168,8 @@ platform_check_image() { all0315n | \ all0258n | \ cap324 | \ - cap4200ag) + cap4200ag | \ + cr3000) platform_check_image_allnet "$1" && return 0 return 1 ;;