aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-12-13 08:07:03 +0000
committerJohn Crispin <john@openwrt.org>2014-12-13 08:07:03 +0000
commit263070a2e72dbb85ed16d286a22fc3ce422580e5 (patch)
treed4120f45393fcec2462a5803eff7d8433c9bb392 /target/linux/ramips/base-files
parentaa697f1313f2fe1b7a6c1f52603b45016c8c1806 (diff)
downloadupstream-263070a2e72dbb85ed16d286a22fc3ce422580e5.tar.gz
upstream-263070a2e72dbb85ed16d286a22fc3ce422580e5.tar.bz2
upstream-263070a2e72dbb85ed16d286a22fc3ce422580e5.zip
ramips:Add support for Aigale Ai-BR100
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: 郭传鈜 <gch981213@gmail.com> SVN-Revision: 43681
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds4
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 12 insertions, 0 deletions
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 | \