aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-11-03 08:00:13 +0000
committerJohn Crispin <john@openwrt.org>2014-11-03 08:00:13 +0000
commitcc5194cf030c422ef82442091598582cf4aeca34 (patch)
tree655972cf7bc4b19a6390e84553713349a289cc56 /target/linux/ramips/base-files
parent101289156b4748583995d4cdb27751cea4efe917 (diff)
downloadupstream-cc5194cf030c422ef82442091598582cf4aeca34.tar.gz
upstream-cc5194cf030c422ef82442091598582cf4aeca34.tar.bz2
upstream-cc5194cf030c422ef82442091598582cf4aeca34.zip
ramips: add support for Airlink101 AR670W
This is a RT2880-based board, 32MB RAM, 4MB flash. The bootloader is a hacked u-Boot that reads an LZMA image directly, so we skip generating the uImage header and enable the lzma mtdsplit parser. Signed-off-by: Claudio Leite <leitec@staticky.com> SVN-Revision: 43153
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds5
-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.sh7
5 files changed, 16 insertions, 3 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 4a482b38fd..bd8c779660 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -41,12 +41,11 @@ case $board in
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
set_wifi_led "rt2800pci-phy0::radio"
;;
+ ar670w|\
+ ar725w|\
awapn2403)
set_wifi_led "rt2800soc-phy0::radio"
;;
- ar725w)
- set_wifi_led "rt2800soc-phy0::radio"
- ;;
asl26555)
ucidef_set_led_default "power" "POWER" "asl26555:green:power" "1"
ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0"
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 1c7d80ce0e..cedcb8bdcd 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -157,6 +157,7 @@ ramips_setup_interfaces()
ucidef_add_switch_vlan "switch0" "2" "0 5t"
;;
+ ar670w | \
ar725w | \
rt-n15 | \
wl-351)
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 297709950d..709158be1d 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"
;;
+ ar670w)
+ status_led="ar670w:green:power"
+ ;;
ar725w)
status_led="ar725w:green:power"
;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index e3977aa71d..a02bcf9674 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"
;;
+ *"Airlink101 AR670W")
+ name="ar670w"
+ ;;
*"Airlink101 AR725W")
name="ar725w"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 4fe0ef46fa..decbc546fd 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -110,6 +110,13 @@ platform_check_image() {
}
return 0
;;
+ ar670w)
+ [ "$magic" != "6d000080" ] && {
+ echo "Invalid image type."
+ return 1
+ }
+ return 0
+ ;;
cy-swr1100 |\
dir-610-a1 |\
dir-645)