From f5c866b902908a8e2c63c63e027d5aa562f1c9e7 Mon Sep 17 00:00:00 2001 From: cshore Date: Fri, 15 Apr 2011 12:18:25 +0000 Subject: bcm63xx: Move the OpenWrt rootfs length field Dual image capable CFEs store an image sequence at the same place as currently OpenWrt stores the actual rootfs length, so it will get overwritten when flashing through such a CFE. To prevent this from happening, move the rootfs length field to the next four bytes, thus completely using the reserved1 field. Since the reserved1 field is now completely in use, it does not make sense to allow it to be set from the imagetag utility, so remove the option. Signed-off-by: Jonas Gorski git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26680 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/firmware-utils/src/imagetag.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tools/firmware-utils/src/imagetag.c') diff --git a/tools/firmware-utils/src/imagetag.c b/tools/firmware-utils/src/imagetag.c index a7b9babd3..bebaba2f2 100644 --- a/tools/firmware-utils/src/imagetag.c +++ b/tools/firmware-utils/src/imagetag.c @@ -361,10 +361,6 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin, \ strncpy(tag.information2, args->info2_arg, TAGINFO2_LEN); } - if (args->reserved1_given) { - strncpy(tag.reserved1, args->reserved1_arg, 8); - } - if (args->reserved2_given) { strncpy(tag.reserved2, args->reserved2_arg, 16); } -- cgit v1.2.3