aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-09-25 12:57:41 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-09-25 12:57:41 +0000
commitcd7d6a23f7f53e7b7adde38b1775bb153d6e8a61 (patch)
tree519aa247369acbed798a9b85ed8b76c989bc3a8e /target/linux/ar71xx/base-files/lib/upgrade/platform.sh
parent40e58ce1c3a5128d40daca7b70c1f66f8c92d647 (diff)
downloadupstream-cd7d6a23f7f53e7b7adde38b1775bb153d6e8a61.tar.gz
upstream-cd7d6a23f7f53e7b7adde38b1775bb153d6e8a61.tar.bz2
upstream-cd7d6a23f7f53e7b7adde38b1775bb153d6e8a61.zip
ar71xx: create 'fat' images for the DIR-825/TEW-673GRU boards
With these images, it is possible to use the 'unused' partition of the flash. The 'fat' images can be installed with the sysupgrade command. When a 'fat' image is installed from a regular one, the platform specific sysupgrade script copies the calibration data to the end of the flash. Likewise, when a regular image is installed from the 'fat' version the sysupgrade script copies the calibration data back to the original location. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33540 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/lib/upgrade/platform.sh')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 9f4ce2cb83..cdd463edbe 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -100,13 +100,11 @@ platform_check_image() {
dir-600-a1 | \
dir-615-c1 | \
dir-615-e4 | \
- dir-825-b1 | \
ew-dorin | \
ew-dorin-router | \
mzk-w04nu | \
mzk-w300nh | \
tew-632brp | \
- tew-673gru | \
tew-712br | \
wrt400n | \
airrouter | \
@@ -130,6 +128,12 @@ platform_check_image() {
}
return 0
;;
+
+ dir-825-b1 | \
+ tew-673gru)
+ dir825b_check_image "$1" && return 0
+ ;;
+
om2p | \
om2p-lc)
platform_check_image_om2p "$magic_long" "$1" && return 0
@@ -239,6 +243,10 @@ platform_do_upgrade() {
all0315n )
platform_do_upgrade_allnet "0x9f080000" "$ARGV"
;;
+ dir-825-b1 |\
+ tew-673gru)
+ platform_do_upgrade_dir825b "$ARGV"
+ ;;
om2p | \
om2p-lc)
platform_do_upgrade_om2p "$ARGV"