aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/imagetag.c
diff options
context:
space:
mode:
authorDaniel Dickinson <crazycshore@gmail.com>2011-04-15 12:18:25 +0000
committerDaniel Dickinson <crazycshore@gmail.com>2011-04-15 12:18:25 +0000
commitf83c5938d2ddc50aec789eed49b70eb642889ef0 (patch)
treec35a4464fed588160db35f3aeb813b1618ebc41c /tools/firmware-utils/src/imagetag.c
parentff1bc5c29d59db7246a362c4b93b61b72fe8e4e6 (diff)
downloadupstream-f83c5938d2ddc50aec789eed49b70eb642889ef0.tar.gz
upstream-f83c5938d2ddc50aec789eed49b70eb642889ef0.tar.bz2
upstream-f83c5938d2ddc50aec789eed49b70eb642889ef0.zip
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 <jonas.gorski+openwrt@gmail.com> SVN-Revision: 26680
Diffstat (limited to 'tools/firmware-utils/src/imagetag.c')
-rw-r--r--tools/firmware-utils/src/imagetag.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/firmware-utils/src/imagetag.c b/tools/firmware-utils/src/imagetag.c
index a7b9babd3e..bebaba2f29 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);
}