[tools/firmware-utils] imagetag: Significantly updated brcm63xx imagetag writing...
authorDaniel Dickinson <crazycshore@gmail.com>
Tue, 16 Nov 2010 06:46:53 +0000 (06:46 +0000)
committerDaniel Dickinson <crazycshore@gmail.com>
Tue, 16 Nov 2010 06:46:53 +0000 (06:46 +0000)
commit6c333a46f927bd92e86c70644081861d4198cc82
tree8482554dc599aafac91e637587c204e26c99aa3f
parentf83c3f488b4b63dd4903c552cd549f309e361a85
[tools/firmware-utils] imagetag: Significantly updated brcm63xx imagetag writing tool.
* Rewrote commandline parsing code using gengetopt
- We now get long options
- We have more options including use of the info section for
board information (e.g. to add the same boardid but
different GPIOs on different routers)
* Added back the ability to write stock images (this is useful, for example,
when copying the firmware from the in-memory flash, and then being
able to create an image that will let you revert to/test stock firmware
* Fixed copying of CRCs to use memcpy instead of strncpy (strncpy stops at 0)
* Added ability to use all sections of the imagetag, including custom magic
  signatures (e.g. for the Telsey router I'm adding soon), info sections,
and reserved sections
* Added putting the router type (as defined in the image generating Makefile)
into the info1 section and the filesystem type in the info2 section.
This will be used by mtd (when I add the code) to return the name of
image used to flash this router.  (As requested by Jo, as well as being
useful for same boardid different board scenario described above).

SVN-Revision: 24011
target/linux/brcm63xx/image/Makefile
tools/firmware-utils/Makefile
tools/firmware-utils/src/imagetag.c
tools/firmware-utils/src/imagetag.ggo [new file with mode: 0644]
tools/firmware-utils/src/imagetag_cmdline.c [new file with mode: 0644]
tools/firmware-utils/src/imagetag_cmdline.h [new file with mode: 0644]