aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-01-29 19:12:32 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-01-29 19:12:32 +0000
commit5d4ddbce7204ec7c3fa586b7c8d6c76a364ec9c7 (patch)
tree97086adff6755fc9bbcc023bf75ec7e50727d739 /target/linux
parent5ca187570f7db8f23709865b7af85f9f6b7558aa (diff)
downloadupstream-5d4ddbce7204ec7c3fa586b7c8d6c76a364ec9c7.tar.gz
upstream-5d4ddbce7204ec7c3fa586b7c8d6c76a364ec9c7.tar.bz2
upstream-5d4ddbce7204ec7c3fa586b7c8d6c76a364ec9c7.zip
ar71xx: add user-space support for the AP132 board
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
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/02_network7
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
4 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index eb730e34e5..9c77d13c78 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -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"
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 7cd0113cd8..ac225ed055 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -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"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 720c19eaa0..428144dc1a 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -177,6 +177,9 @@ ar71xx_board_detect() {
*AP121-MINI)
name="ap121-mini"
;;
+ *"AP132 reference board")
+ name="ap132"
+ ;;
*"AP136-010 reference board")
name="ap136-010"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 3d5efdba3a..c8b8380ab5 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -104,6 +104,7 @@ platform_check_image() {
;;
ap81 | \
ap83 | \
+ ap132 | \
dir-600-a1 | \
dir-615-c1 | \
dir-615-e4 | \