From 0f254b4b67b400e093b8e8e0e22144dbdddcb7ad Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Mon, 17 Sep 2012 14:17:12 +0000 Subject: dir-825-b1: Fix wholeflash images: Attempting to flash a wholeflash (-openwrt) image from the normal image would brick (but recoverable via emergency flash) the router if the wholeflash image was larger than the maximum size for a normal image. First we rename the -openwrt images to -wholeflash since -openwrt is really too generic. We also revert the changes to the regular dir-825-b1 image, which now is the same as before, but add a -towholeflash image which is almost the same as the regular dir-825-b1 image, but copies caldata to new location and allows flashing of images that use the full flash (except u-boot, u-boot-env, and caldata paritition space) (these are the -wholeflash images). SVN-Revision: 33447 --- target/linux/ar71xx/base-files/lib/ar71xx.sh | 7 +++++-- target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'target/linux/ar71xx/base-files/lib') diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 8db983039c..2b083e1920 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -201,8 +201,11 @@ ar71xx_board_detect() { *"DIR-825 rev. B1") name="dir-825-b1" ;; - *"DIR-825 rev. B1 OpenWrt") - name="dir-825-b1-openwrt" + *"DIR-825 rev. B1 WHOLEFLASH") + name="dir-825-b1-wholeflash" + ;; + *"DIR-825 rev. B1 TOWHOLEFLASH") + name="dir-825-b1-towholeflash" ;; *"DIR-825 rev. B1 TOSTOCK") name="dir-825-b1-tostock" diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 2992aed322..9987b2442e 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -101,7 +101,8 @@ platform_check_image() { dir-615-c1 | \ dir-615-e4 | \ dir-825-b1 | \ - dir-825-b1-openwrt | \ + dir-825-b1-towholeflash | \ + dir-825-b1-wholeflash | \ dir-825-b1-tostock | \ ew-dorin | \ ew-dorin-router | \ -- cgit v1.2.3