diff options
author | John Crispin <blogic@openwrt.org> | 2015-11-24 18:30:19 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-11-24 18:30:19 +0000 |
commit | 49d38ad8c15d948426d4b48b6f2e7d7f3480c686 (patch) | |
tree | 8ed3da20af575dc14de000351ce53fc438287f87 /target/linux/ar71xx/base-files | |
parent | d95f4c6ca377edcdf8c827a50b5e67e12313f9f6 (diff) | |
download | master-187ad058-49d38ad8c15d948426d4b48b6f2e7d7f3480c686.tar.gz master-187ad058-49d38ad8c15d948426d4b48b6f2e7d7f3480c686.tar.bz2 master-187ad058-49d38ad8c15d948426d4b48b6f2e7d7f3480c686.zip |
ar71xx: add GL-AR300 support V3
This is the patch for GL-AR300 V3, tested against the latest trunk.
Signed-off-by: alzhao<alzhao@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47621 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
4 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index 16a875805d..da3e5614d8 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -221,6 +221,10 @@ gl-ar150) ucidef_set_led_wlan "wlan" "WLAN" "gl_ar150:wlan" "phy0tpt" ;; +gl-ar300) + ucidef_set_led_wlan "wlan" "WLAN" "gl_ar300:wlan" "phy0tpt" + ;; + gl-inet) ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1" ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red:wlan" "phy0tpt" diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index de86ba54c8..a5a40a177d 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -408,6 +408,12 @@ wpe72) ucidef_set_interfaces_lan_wan "eth1" "eth0" ;; +gl-ar300) + ucidef_set_interfaces_lan_wan "eth1" "eth0" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4" + ;; + wpj344) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" 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 75a75a4fd4..8eb9266d4a 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -485,6 +485,9 @@ ar71xx_board_detect() { *"GL AR150") name="gl-ar150" ;; + *"GL AR300") + name="gl-ar300" + ;; *"EnGenius EPG5000") name="epg5000" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index d90f724e64..e68a05bfc0 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -221,6 +221,7 @@ platform_check_image() { ew-dorin | \ ew-dorin-router | \ gl-ar150 | \ + gl-ar300 | \ hiwifi-hc6361 | \ hornet-ub-x2 | \ mzk-w04nu | \ |