bcm63xx: Move the OpenWrt rootfs length field
authorDaniel Dickinson <crazycshore@gmail.com>
Fri, 15 Apr 2011 12:18:25 +0000 (12:18 +0000)
committerDaniel Dickinson <crazycshore@gmail.com>
Fri, 15 Apr 2011 12:18:25 +0000 (12:18 +0000)
commit1a3a96abb6b86d850443ef3a99d5c7039370d35f
tree3d1472c7b77f48fc99f698edbcc967320584f394
parent9159fd3cf2d6430d33bbecaf59dbd176b25d3551
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
src/imagetag.c
src/imagetag.ggo
src/imagetag_cmdline.c
src/imagetag_cmdline.h