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 | mtk-20170518-d963ddf0424a551e5fadd561c934bfdb5d198764.zip mtk-20170518-d963ddf0424a551e5fadd561c934bfdb5d198764.tar.gz mtk-20170518-d963ddf0424a551e5fadd561c934bfdb5d198764.tar.bz2 |
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 77bed5b..1254c71 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 667d228..301304a 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 f517f9ba..71ebf89 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 4eed64b..d1c92c9 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 119537e..c5cb4ab 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 | \ |