u-boot/tools
Guilherme Maciel Ferreira a804b5ce2d Add dumpimage, a tool to extract data from U-Boot images
Given a multi-file image created through the mkimage's -d option:

  $ mkimage -A x86 -O linux -T multi -n x86 -d vmlinuz:initrd.img:System.map \
  multi.img

  Image Name:   x86
  Created:      Thu Jul 25 10:29:13 2013
  Image Type:   Intel x86 Linux Multi-File Image (gzip compressed)
  Data Size:    13722956 Bytes = 13401.32 kB = 13.09 MB
  Load Address: 00000000
  Entry Point:  00000000
  Contents:
     Image 0: 4040128 Bytes = 3945.44 kB = 3.85 MB
     Image 1: 7991719 Bytes = 7804.41 kB = 7.62 MB
     Image 2: 1691092 Bytes = 1651.46 kB = 1.61 MB

It is possible to perform the innverse operation -- extracting any file from
the image -- by using the dumpimage's -i option:

  $ dumpimage -i multi.img -p 2 System.map

Although it's feasible to retrieve "data files" from image through scripting,
the requirement to embed tools such 'dd', 'awk' and 'sed' for this sole purpose
is cumbersome and unreliable -- once you must keep track of file sizes inside
the image. Furthermore, extracting data files using "dumpimage" tool is faster
than through scripting.

Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
2013-12-13 09:15:32 -05:00
..
bddb Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
buildman buildman: make board selector argument a regex 2013-11-21 13:35:58 -07:00
easylogo easylogo: add lzma support 2012-06-19 22:33:55 +02:00
env Makefile: do not create a symbolic link to arch/${ARCH}/include/asm 2013-11-08 09:39:14 -05:00
gdb tools: Makefile: delete redundant lines 2013-11-17 14:11:32 -05:00
kernel-doc Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
logos arm, am335x: add support for 3 siemens boards 2013-08-28 11:44:59 -04:00
omap Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
palmtreo680 pxa: palmtreo680 flash programming utility 2013-06-22 15:25:28 +02:00
patman patman: add Commit-notes tag and section 2013-11-21 13:35:51 -07:00
scripts Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
.gitignore Add dumpimage, a tool to extract data from U-Boot images 2013-12-13 09:15:32 -05:00
aisimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
aisimage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
bin2header.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
binutils-version.sh tools, config.mk: add binutils-version 2012-10-04 14:18:54 +02:00
bmp_logo.c tools, bmp_logo: fix index from uint16_t to int to allow bigger logos 2013-08-10 10:48:00 +02:00
checkpatch.pl boards.cfg: show info about boards.cfg instead of MAINTAINERS 2013-09-20 10:30:53 -04:00
checkstack.pl tools: checkstack.pl from Linux added to tools 2012-03-06 22:07:55 +01:00
cleanpatch tools: Add cleanpatch 2012-10-15 11:54:04 -07:00
default_image.c Add dumpimage, a tool to extract data from U-Boot images 2013-12-13 09:15:32 -05:00
dtc-version.sh Validate dtc is new enough 2013-08-02 18:29:32 -04:00
dumpimage.c Add dumpimage, a tool to extract data from U-Boot images 2013-12-13 09:15:32 -05:00
dumpimage.h Add dumpimage, a tool to extract data from U-Boot images 2013-12-13 09:15:32 -05:00
envcrc.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fdt_host.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fit_image.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
gcc-version.sh tools, config.mk: Add gcc-version.sh, cc-version test from Linux 2012-05-15 08:31:26 +02:00
gen_eth_addr.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
getline.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
getline.h getline: split out for darwin systems 2010-01-26 00:07:13 +01:00
image-host.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
imagetool.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
imagetool.h Add dumpimage, a tool to extract data from U-Boot images 2013-12-13 09:15:32 -05:00
img2brec.sh Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
img2srec.c img2srec: use standard types 2009-11-24 23:43:18 +01:00
imximage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
imximage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
jtagconsole Blackfin: jtagconsole: disable output processing 2010-07-25 15:17:23 -04:00
kwbimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
kwbimage.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
kwboot.c kwboot: boot kirkwood SoCs over a serial link 2012-07-07 14:07:32 +02:00
Makefile Add dumpimage, a tool to extract data from U-Boot images 2013-12-13 09:15:32 -05:00
mingw_support.c Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
mingw_support.h Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
mkenvimage.c tools/Makefile: Move _GNU_SOURCE to Makefile 2013-08-16 13:45:15 -04:00
mkexynosspl.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mkimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
mkimage.h tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
mpc86x_clk.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mxsboot.c tools: mxsboot: Mark the FCB pages as valid 2013-09-10 19:12:54 +02:00
mxsimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
mxsimage.h ARM: mxs: tools: Add mkimage support for MXS bootstream 2013-08-31 15:26:52 +02:00
ncb.c ncb: Check return value of write() 2009-04-28 01:16:46 +02:00
netconsole net: Make netconsole src and dest ports configurable 2012-09-24 13:17:24 -05:00
omapimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
omapimage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
os_support.c Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
os_support.h Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
pblimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
pblimage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
proftool.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
reformat.py Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
setlocalversion tools/setlocalversion: Update from the Linux Kernel 2011-12-17 20:58:48 +01:00
ublimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
ublimage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ubsha1.c Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
xway-swap-bytes.c MIPS: INCA-IP: rename inca-swap-bytes host tool 2011-07-31 23:25:41 +09:00