summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/base-files/lib
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-08-15 00:57:47 +0000
committerLuka Perkov <luka@openwrt.org>2013-08-15 00:57:47 +0000
commit5064c81457129bf430db18f372199f6e9892b524 (patch)
treef6e700c067011bc8e802f3cb3a580357934b4538 /target/linux/ar71xx/base-files/lib
parentc67640bbd4bde8ae7474dc6b2780ced7ee2b4fc0 (diff)
downloadmtk-20170518-5064c81457129bf430db18f372199f6e9892b524.zip
mtk-20170518-5064c81457129bf430db18f372199f6e9892b524.tar.gz
mtk-20170518-5064c81457129bf430db18f372199f6e9892b524.tar.bz2
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> SVN-Revision: 37788
Diffstat (limited to 'target/linux/ar71xx/base-files/lib')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh11
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
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 1554a51..e7fbfbe 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 1b3273d..8294fa4 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 | \