This new dumpimage tool makes it easy to unpack images created by mkimage. The tool was written by:
Guilherme Maciel Ferreira <guilherme.maciel.ferre...@gmail.com> I have tidied it up a little and resubmitted it, since no response was received to my earlier email. You can review this change here (complete with patman tags): https://u-boot-review.googlesource.com/#/c/1538/ Changes in v2: - Add additional -o option for when the file name is not valid - Correct checkpatch problems - Tidy up shell script style a little - Updated test to include coverage for the new -o option Guilherme Maciel Ferreira (4): mkimage: added 'static' specifier to match function's prototype. tools: moved code common to all image tools to a separated module. Add dumpimage, a tool to extract data from U-Boot images sandbox: dumpimage: Test dumpimage Makefile | 1 + README | 9 ++ test/image/test-imagetools.sh | 141 +++++++++++++++++++ tools/.gitignore | 1 + tools/Makefile | 28 ++++ tools/aisimage.c | 16 +-- tools/default_image.c | 67 +++++++++- tools/dumpimage.c | 305 ++++++++++++++++++++++++++++++++++++++++++ tools/dumpimage.h | 33 +++++ tools/fit_image.c | 11 +- tools/imagetool.c | 58 ++++++++ tools/imagetool.h | 173 ++++++++++++++++++++++++ tools/imximage.c | 12 +- tools/kwbimage.c | 10 +- tools/mkimage.c | 25 +--- tools/mkimage.h | 123 +---------------- tools/mxsimage.c | 12 +- tools/omapimage.c | 10 +- tools/pblimage.c | 10 +- tools/ublimage.c | 10 +- 20 files changed, 862 insertions(+), 193 deletions(-) create mode 100755 test/image/test-imagetools.sh create mode 100644 tools/dumpimage.c create mode 100644 tools/dumpimage.h create mode 100644 tools/imagetool.c create mode 100644 tools/imagetool.h -- 1.8.4.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot