Commit Graph

7 Commits (fe8a3a36f0d1033219b799d96ea0d55c27e01261)

Author SHA1 Message Date
Daniel Dickinson f83c5938d2 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
13 years ago
Daniel Dickinson fc3a1d0ba3 Added OpenWRT-specific field to imagetag so that we can record the real root length, so that when the CRC fixup is applied and the root length is recorded as zero we can still calculate the rootfs mtd partition size.
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net>

SVN-Revision: 24838
14 years ago
Daniel Dickinson fe5d55977e tools/firmware-utils/imagetag: Fixed Pirelli Alice Gate CRC calculation in imagetag (was invalid strings in bcm_tag.h). Closes #7120
SVN-Revision: 20850
14 years ago
Florian Fainelli 2a4fb82289 flashmap and image generation: reduced union bcm_tag to a single struct combining the elements so that it is no longer necessary to create an openwrt-only tagid and tagcrc, and elimate the tagid detection and switch statements which made dealing with imagetags overly complicated, especially since the logic would need analogs in all code that touched the imagetag. Patch from cshore.
SVN-Revision: 20652
14 years ago
Florian Fainelli dad85cddac move bcm_tag.h out of the flashmap patch so that user-land tools can re-use it
SVN-Revision: 20548
14 years ago
Florian Fainelli b8d99458ff move files to files-2.6.30, to ease newer kernel integration
SVN-Revision: 19471
15 years ago
Florian Fainelli 9887dc6100 add experimental support for 2.6.28.10, tested on bcm6338
SVN-Revision: 17054
15 years ago