Author: nbd
Date: 2015-12-19 12:28:12 +0100 (Sat, 19 Dec 2015)
New Revision: 47945

Modified:
   trunk/package/boot/uboot-envtools/files/ar71xx
   trunk/target/linux/ar71xx/base-files/etc/board.d/01_leds
   trunk/target/linux/ar71xx/base-files/etc/board.d/02_network
   trunk/target/linux/ar71xx/base-files/etc/diag.sh
   trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh
   trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
Log:
ar71xx: PowerCloud CR3000 OpenWrt configuration

OpenWRt configuration part of support for the PowerCloud
Systems CR3000.  The CR3000 is a 802.11n 2.4 GHz wireless router with
8MB flash, 64MB RAM, a four port gigabit ethernet switch, and a fast
ethernet wan port that was sold by PowerCloud Systems as
hardware for the Skydog cloud-managed router service.

Signed-off-by: Daniel Dickinson <[email protected]>

Modified: trunk/package/boot/uboot-envtools/files/ar71xx
===================================================================
--- trunk/package/boot/uboot-envtools/files/ar71xx      2015-12-19 11:27:59 UTC 
(rev 47944)
+++ trunk/package/boot/uboot-envtools/files/ar71xx      2015-12-19 11:28:12 UTC 
(rev 47945)
@@ -18,6 +18,7 @@
 cap324 | \
 cap4200ag | \
 carambola2 | \
+cr3000 | \
 eap300v2 | \
 hornet-ub | \
 hornet-ub-x2 | \

Modified: trunk/target/linux/ar71xx/base-files/etc/board.d/01_leds
===================================================================
--- trunk/target/linux/ar71xx/base-files/etc/board.d/01_leds    2015-12-19 
11:27:59 UTC (rev 47944)
+++ trunk/target/linux/ar71xx/base-files/etc/board.d/01_leds    2015-12-19 
11:28:12 UTC (rev 47945)
@@ -126,6 +126,15 @@
        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:blue:lan1" "switch0" "0x04"
+       ucidef_set_led_switch "lan2" "LAN2" "pcs:blue:lan2" "switch0" "0x08"
+       ucidef_set_led_switch "lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10"
+       ucidef_set_led_switch "lan4" "LAN4" "pcs:blue: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"
        ;;

Modified: trunk/target/linux/ar71xx/base-files/etc/board.d/02_network
===================================================================
--- trunk/target/linux/ar71xx/base-files/etc/board.d/02_network 2015-12-19 
11:27:59 UTC (rev 47944)
+++ trunk/target/linux/ar71xx/base-files/etc/board.d/02_network 2015-12-19 
11:28:12 UTC (rev 47945)
@@ -249,6 +249,12 @@
                "0:lan" "1:lan" "2:lan" "3:lan" "5@eth0"
        ;;
 
+cr3000)
+       ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
+       ucidef_add_switch "switch0"  \
+               "0@eth0" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2"
+       ;;
+
 dgl-5500-a1 |\
 dir-825-c1)
        local mac

Modified: trunk/target/linux/ar71xx/base-files/etc/diag.sh
===================================================================
--- trunk/target/linux/ar71xx/base-files/etc/diag.sh    2015-12-19 11:27:59 UTC 
(rev 47944)
+++ trunk/target/linux/ar71xx/base-files/etc/diag.sh    2015-12-19 11:28:12 UTC 
(rev 47945)
@@ -67,6 +67,9 @@
        cpe510)
                status_led="tp-link:green:link4"
                ;;
+       cr3000)
+               status_led="pcs:amber:power"
+               ;;
        db120)
                status_led="db120:green:status"
                ;;

Modified: trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh  2015-12-19 11:27:59 UTC 
(rev 47944)
+++ trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh  2015-12-19 11:28:12 UTC 
(rev 47945)
@@ -424,6 +424,9 @@
                name="cpe510"
                tplink_pharos_board_detect
                ;;
+       *CR3000)
+               name="cr3000"
+               ;;
        *"DB120 reference board")
                name="db120"
                ;;

Modified: trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh        
2015-12-19 11:27:59 UTC (rev 47944)
+++ trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh        
2015-12-19 11:28:12 UTC (rev 47945)
@@ -168,7 +168,8 @@
        all0315n | \
        all0258n | \
        cap324 | \
-       cap4200ag)
+       cap4200ag | \
+       cr3000)
                platform_check_image_allnet "$1" && return 0
                return 1
                ;;
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to