ar71xx: add user-space support for AP136-020
authorGabor Juhos <juhosg@openwrt.org>
Wed, 26 Dec 2012 09:50:36 +0000 (09:50 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 26 Dec 2012 09:50:36 +0000 (09:50 +0000)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34885

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

index bfe1416c85fd0a4e145417cf72fb00d962abb774..b8585737ce4439bfcc39056dd2ed6d89f2fa6845 100755 (executable)
@@ -36,7 +36,8 @@ get_status_led() {
        all0305)
                status_led="eap7660d:green:ds4"
                ;;
-       ap136-010)
+       ap136-010|\
+       ap136-020)
                status_led="ap136:green:status"
                ;;
        ap81)
index fe0ce03d9cd53f2151396c1d39a3eb93b1e28de8..746393dd64b86d03ef9389f4c1c7017e8aecd9f3 100755 (executable)
@@ -29,6 +29,13 @@ ap136-010)
        ucidef_add_switch_vlan "switch0" "2" "5 6"
        ;;
 
+ap136-020)
+       ucidef_set_interfaces_lan_wan "eth1" "eth0"
+       ucidef_add_switch "switch0" "1" "1"
+       ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
+       ucidef_add_switch_vlan "switch0" "2" "5 6"
+       ;;
+
 db120 |\
 rb-2011l | \
 rb-2011uas-2hnd)
index d7888638aee351e4d04db8c5745c264e16a39a14..34e93f308062f515d6d18dd110a92ad56947ab72 100755 (executable)
@@ -177,6 +177,9 @@ ar71xx_board_detect() {
        *"AP136-010 reference board")
                name="ap136-010"
                ;;
+       *"AP136-020 reference board")
+               name="ap136-020"
+               ;;
        *AP81)
                name="ap81"
                ;;
index 1cfc6e3cfbc770af3ed69f3fccc234e9b6ff9844..01cf4b298be1494f8962580b047ce61d45ab4ecd 100755 (executable)
@@ -89,6 +89,7 @@ platform_check_image() {
        ap121 | \
        ap121-mini | \
        ap136-010 | \
+       ap136-020 | \
        ap96 | \
        db120 | \
        hornet-ub | \