diff options
author | Luka Perkov <luka@openwrt.org> | 2013-08-15 00:57:47 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-08-15 00:57:47 +0000 |
commit | 9a00f5936206f493bfd3ae9df44ccf2941018aa3 (patch) | |
tree | 2e8c2b482d60ebaadcc475894a3c393147ad6fe8 /target/linux/ar71xx/base-files | |
parent | e57b180a0144641969016eb266ea1d17239da976 (diff) | |
download | upstream-9a00f5936206f493bfd3ae9df44ccf2941018aa3.tar.gz upstream-9a00f5936206f493bfd3ae9df44ccf2941018aa3.tar.bz2 upstream-9a00f5936206f493bfd3ae9df44ccf2941018aa3.zip |
ar71xx: add support for hornet-ub-x2
The hornet-ub-x2 is hornet-ub variant with double more flash and ram.
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37788 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/ar71xx.sh | 11 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 |
2 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 1554a51e95..e7fbfbe58a 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -280,7 +280,16 @@ ar71xx_board_detect() { name="jwap003" ;; *"Hornet-UB") - name="hornet-ub" + local size + size=$(awk '/firmware/ { print $2 }' /proc/mtd) + + if [ "x$size" = "x00790000" ]; then + name="hornet-ub" + fi + + if [ "x$size" = "x00f90000" ]; then + name="hornet-ub-x2" + fi ;; *LS-SR71) name="ls-sr71" diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 1b3273d19f..8294fa43c8 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -113,6 +113,7 @@ platform_check_image() { dir-835-a1 | \ ew-dorin | \ ew-dorin-router | \ + hornet-ub-x2 | \ mzk-w04nu | \ mzk-w300nh | \ tew-632brp | \ |