aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib/upgrade
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/lib/upgrade
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/lib/upgrade')
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh7
1 files changed, 7 insertions, 0 deletions
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)