On 07/21/2014 12:28 PM, Bruno Randolf wrote:
> It would be possible to create a special image for upgrade from AA,
> something like
> "openwrt-au1000-au1500-jffs2-128k-sysupgrade-from-12.09.bin", but I
> think it's simpler to just add a symlink to the tar.gz in all cases,

The symlink approach does not work, as dd does not recognize the symlink
and the rootfs is broken afterwards. So IMHO the best solution is to
create a special sysupgrade image for upgrade from 12.09, like
"openwrt-au1000-au1500-jffs2-128k-sysupgrade-from-12.09.bin"...

diff --git a/target/linux/au1000/image/Makefile
b/target/linux/au1000/image/Makefile
index 63c0b03..56f613b 100644
--- a/target/linux/au1000/image/Makefile
+++ b/target/linux/au1000/image/Makefile
@@ -65,6 +65,10 @@ define Image/Build
        $(CP) $(BIN_DIR)/$(IMG_PREFIX)-$(1).fs
$(TMP_DIR)/$(IMG_PREFIX)-root.fs
        tar -C $(BIN_DIR) -cvzf
$(BIN_DIR)/$(IMG_PREFIX)-$(1)-sysupgrade.bin \
                $(IMG_PREFIX)-vmlinux.bin -C $(TMP_DIR)
$(IMG_PREFIX)-root.fs
+       # backwards compatible image for upgrade from Attitude
Adjustment (12.09)
+       $(CP) $(BIN_DIR)/$(IMG_PREFIX)-$(1).fs
$(TMP_DIR)/$(IMG_PREFIX)-jffs2-128k.fs
+       tar -C $(BIN_DIR) -cvzf
$(BIN_DIR)/$(IMG_PREFIX)-$(1)-sysupgrade-from-12.09.bin \
+               $(IMG_PREFIX)-vmlinux.bin -C $(TMP_DIR)
$(IMG_PREFIX)-jffs2-128k.fs
 ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
        $(call Image/Build/Initramfs)
 endif

bruno
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to