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)
commitf83c5938d2ddc50aec789eed49b70eb642889ef0
treec35a4464fed588160db35f3aeb813b1618ebc41c
parentff1bc5c29d59db7246a362c4b93b61b72fe8e4e6
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
target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/bcm_tag.h
target/linux/brcm63xx/patches-2.6.37/041-bcm963xx_real_rootfs_length.patch
tools/firmware-utils/src/imagetag.c
tools/firmware-utils/src/imagetag.ggo
tools/firmware-utils/src/imagetag_cmdline.c
tools/firmware-utils/src/imagetag_cmdline.h