diff options
author | Zhao Gang <gang.zhao.42@gmail.com> | 2016-07-15 10:00:04 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-07-20 00:21:48 +0200 |
commit | d963ddf0424a551e5fadd561c934bfdb5d198764 (patch) | |
tree | f1169f5e1ca6165d9a7953bea25625a939a524af /target/linux/ar71xx/base-files | |
parent | 6c2651566cce8f5b3a3d3b976439dee2bac5e07e (diff) | |
download | upstream-d963ddf0424a551e5fadd561c934bfdb5d198764.tar.gz upstream-d963ddf0424a551e5fadd561c934bfdb5d198764.tar.bz2 upstream-d963ddf0424a551e5fadd561c934bfdb5d198764.zip |
ar71xx: add support for gl-ar300m
This add initial support for gl-ar300m router.
Product page: http://www.gl-inet.com/ar300m/
Signed-off-by: Zhao Gang <gang.zhao.42@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
5 files changed, 12 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 77bed5b73e..1254c711f4 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -262,6 +262,10 @@ gl-ar300) ucidef_set_led_wlan "wlan" "WLAN" "gl_ar300:wlan" "phy0tpt" ;; +gl-ar300m) + ucidef_set_led_wlan "wlan" "WLAN" "gl-ar300m:wlan" "phy0tpt" + ;; + gl-domino) ucidef_set_led_wlan "wlan" "WLAN" "domino:blue: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 667d228410..301304ac3b 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -391,6 +391,7 @@ alfa-ap96 |\ alfa-nx |\ ap83 |\ gl-ar150 |\ +gl-ar300m |\ gl-domino |\ gl-inet |\ jwap003 |\ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index f517f9bad3..71ebf89cd9 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -451,6 +451,9 @@ set_state() { done) status_led_on case $(ar71xx_board_name) in + gl-ar300m) + fw_printenv lc >/dev/null 2>&1 && fw_setenv "bootcount" 0 + ;; qihoo-c301) local n=$(fw_printenv activeregion | cut -d = -f 2) fw_setenv "image${n}trynum" 0 diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 4eed64b6fc..d1c92c97d2 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -536,6 +536,9 @@ ar71xx_board_detect() { *"GL AR300") name="gl-ar300" ;; + *"GL-AR300M") + name="gl-ar300m" + ;; *"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 119537e651..c5cb4aba35 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -233,6 +233,7 @@ platform_check_image() { ew-dorin-router | \ gl-ar150 | \ gl-ar300 | \ + gl-ar300m | \ gl-domino | \ hiwifi-hc6361 | \ hornet-ub-x2 | \ |