ar71xx: PowerCloud CR5000 openwrt configuration
authorFelix Fietkau <nbd@openwrt.org>
Sat, 19 Dec 2015 11:28:18 +0000 (11:28 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 19 Dec 2015 11:28:18 +0000 (11:28 +0000)
OpenWrt configuration part of support for the PowerCloud Systems
CR5000.  The CR5000 is a dual-band 802.11n wireless router with
8MB flash, 64MB RAM, (unused on stock firmware) USB 2.0 port and
five port gigabit ethernet switch.  The CR5000 was sold as
hardware for the Skydog cloud-managed router service.

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
SVN-Revision: 47946

package/boot/uboot-envtools/files/ar71xx
target/linux/ar71xx/base-files/etc/board.d/01_leds
target/linux/ar71xx/base-files/etc/board.d/02_network
target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index aed7b0b2877196e682e736d1721030c60589d111..a070a5d827a84d900c28cda2881d165bf86fd3c3 100644 (file)
@@ -19,6 +19,7 @@ cap324 | \
 cap4200ag | \
 carambola2 | \
 cr3000 | \
+cr5000 | \
 eap300v2 | \
 hornet-ub | \
 hornet-ub-x2 | \
index 0faa6f4781f8d99bba863cfd4d6a73466c85d910..16053443b4afd11e73519cb9adb1bf7f02cf44f6 100755 (executable)
@@ -135,6 +135,11 @@ cr3000)
        ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
        ;;
 
+cr5000)
+       ucidef_set_led_wlan "wlan" "WLAN" "pcs:blue:wlan" "phy0tpt"
+       ucidef_set_led_usbdev "usb" "USB" "pcs:white:wps" "1-1"
+       ;;
+
 db120)
        ucidef_set_led_usbdev "usb" "USB" "db120:green:usb" "1-1"
        ;;
index b4608f69a79172f0f88157452634a8b977eaf17f..bbc93fff5bdcaab4d12f15abe6565c6d4d7c2596 100755 (executable)
@@ -34,6 +34,11 @@ epg5000)
                "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
        ;;
 
+cr5000)
+       ucidef_add_switch "switch0" \
+               "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
+       ;;
+
 ap136-010 |\
 ap147-010)
        ucidef_set_interfaces_lan_wan "eth0" "eth1"
index df3b8ceefadc779b214f8de3ccd98714a6a40a71..eaf410b8b835b46a7fbcd4931c744a2264aa96e0 100644 (file)
@@ -70,6 +70,9 @@ get_status_led() {
        cr3000)
                status_led="pcs:amber:power"
                ;;
+       cr5000)
+               status_led="pcs:amber:power"
+               ;;
        db120)
                status_led="db120:green:status"
                ;;
index c677c0874ce69345430be81f7a7abae4974a0201..dd327fbc7f23029115cdedb78ebe58c27d5ca79b 100755 (executable)
@@ -427,6 +427,9 @@ ar71xx_board_detect() {
        *CR3000)
                name="cr3000"
                ;;
+       *CR5000)
+               name="cr5000"
+               ;;
        *"DB120 reference board")
                name="db120"
                ;;
index bd090654cffae0fb4c07b7c2d05f301bd1d905af..51ca7f796ea30b879f222cb0d057b8dffff24897 100755 (executable)
@@ -169,7 +169,8 @@ platform_check_image() {
        all0258n | \
        cap324 | \
        cap4200ag | \
-       cr3000)
+       cr3000 |\
+       cr5000)
                platform_check_image_allnet "$1" && return 0
                return 1
                ;;