ar71xx: add user-space support for the AP132 board
authorGabor Juhos <juhosg@openwrt.org>
Tue, 29 Jan 2013 19:12:32 +0000 (19:12 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 29 Jan 2013 19:12:32 +0000 (19:12 +0000)
Based on http://patchwork.openwrt.org/patch/3162/

Signed-off-by: Embedded Wireless GmbH <info at embeddedwireless.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35396

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/02_network
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index eb730e34e5be661e6a94cfacd77faa616564b23b..9c77d13c780f957b90bcdbf145df6d438e1518fd 100755 (executable)
@@ -36,6 +36,9 @@ get_status_led() {
        all0305)
                status_led="eap7660d:green:ds4"
                ;;
+       ap132)
+               status_led="ap132:green:status"
+               ;;
        ap136-010|\
        ap136-020)
                status_led="ap136:green:status"
index 7cd0113cd883f4bc8daa8b1fd2e9702aaa93429d..ac225ed05551bc96885f9944ebfb8d3ea14b1b27 100755 (executable)
@@ -22,6 +22,13 @@ ubnt-unifi-outdoor)
        ucidef_set_interface_lan "eth0 eth1"
        ;;
 
+ap132)
+       ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+       ucidef_add_switch "switch0" "1" "1"
+       ucidef_add_switch_vlan "switch0" "1" "0t 2 3 4 5"
+       ucidef_add_switch_vlan "switch0" "2" "0t 1"
+       ;;
+
 ap136-010)
        ucidef_set_interfaces_lan_wan "eth0" "eth1"
        ucidef_add_switch "switch0" "1" "1"
index 720c19eaa0408715ce8dd3261b51429fce3bc306..428144dc1aa9cf9905f7134717a5e1a9112f3735 100755 (executable)
@@ -177,6 +177,9 @@ ar71xx_board_detect() {
        *AP121-MINI)
                name="ap121-mini"
                ;;
+       *"AP132 reference board")
+               name="ap132"
+               ;;
        *"AP136-010 reference board")
                name="ap136-010"
                ;;
index 3d5efdba3aac0ab1d49d48a95e05e8e46fc96ae7..c8b8380ab5d0d811e8d3811b8167ce467cd1fd31 100755 (executable)
@@ -104,6 +104,7 @@ platform_check_image() {
                ;;
        ap81 | \
        ap83 | \
+       ap132 | \
        dir-600-a1 | \
        dir-615-c1 | \
        dir-615-e4 | \