From 263070a2e72dbb85ed16d286a22fc3ce422580e5 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 13 Dec 2014 08:07:03 +0000 Subject: ramips:Add support for Aigale Ai-BR100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aigale Ai-BR100 is a router with mt7620a soc. There are only 2 lights on the board (WAN and WLAN) so I used the wlan light as the status led. Signed-off-by: 郭传鈜 SVN-Revision: 43681 --- target/linux/ramips/base-files/etc/board.d/01_leds | 4 ++++ target/linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/etc/diag.sh | 3 +++ target/linux/ramips/base-files/lib/ramips.sh | 3 +++ target/linux/ramips/base-files/lib/upgrade/platform.sh | 1 + 5 files changed, 12 insertions(+) (limited to 'target/linux/ramips/base-files') diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index bd8c779660..9c49c5cda5 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -27,6 +27,10 @@ case $board in 3g300m) set_usb_led "tenda:blue:3g" ;; + ai-br100) + ucidef_set_led_netdev "wan" "wan" "aigale:blue:wan" "eth0.2" + set_wifi_led "aigale:blue:wlan" + ;; a5-v11) ucidef_set_led_default "power" "POWER" "a5-v11:red:power" "1" ;; diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index b519cfdd3c..80b5449e05 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -110,6 +110,7 @@ ramips_setup_interfaces() ;; 3g-6200n | \ + ai-br100 | \ dir-610-a1 | \ dir-300-b7 | \ dir-320-b1 | \ diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index dfa5468205..f50ae1fe7f 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -12,6 +12,9 @@ get_status_led() { 3g300m | w150m) status_led="tenda:blue:ap" ;; + ai-br100) + status_led="aigale:blue:wlan" + ;; ar670w) status_led="ar670w:green:power" ;; diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index ff5044c615..b4e5d91e86 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -28,6 +28,9 @@ ramips_board_detect() { *"A5-V11") name="a5-v11" ;; + *"Aigale Ai-BR100") + name="ai-br100" + ;; *"Airlink101 AR670W") name="ar670w" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 4962b8b4d0..991d3b556e 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -19,6 +19,7 @@ platform_check_image() { 3g300m | \ a5-v11 | \ air3gii | \ + ai-br100 |\ all0239-3g | \ all0256n | \ all5002 | \ -- cgit v1.2.3