u-boot-2016/tools
Philipp Tomsich 2fb371ff64 rockchip: mkimage: add support for verify_header/print_header
The rockchip image generation was previously missing the ability to
verify the generated header (and dump the image-type) without having
to resort to hexdump or od. Experience in our testing has showed it
to be very easy to get the rkspi and rksd images mixed up and the
lab... so we add the necessary support to have dumpimage tell us
what image type we're dealing with.

This change set adds the verify_header and print_header capability
to the rksd/rkspi image drivers (through shared code in rkcommon).

As of now, we only support images fully that are not RC4-encoded for
the SPL payload (i.e. header1 and payload). For RC4-encoded payloads,
the outer header (header0) is checked, but no detection of whether
this is a SD/MMC or SPI formatted payload takes place.

The output of dumpsys now prints the image type (spl_hdr), whether it
is a SD/MMC or SPI image, and the (padded) size of the image:
  $ ./tools/dumpimage -l ./spl.img
  Image Type:   Rockchip RK33 (SD/MMC) boot image
                               ^^^^^^ SD/MMC vs. SPI indication
                         ^^^^ spl_hdr indicated by the image
  Data Size:    79872 bytes

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Simon Glass <sjg@chromium.org>
2017-06-07 07:29:22 -06:00
..
binman fdt: Drop fdt_select.py 2017-06-02 10:18:20 -06:00
buildman buildman: Allow 'gnueabihf' toolchains for ARM 2017-04-18 10:29:19 -04:00
dtoc fdt: Drop fdt_select.py 2017-06-02 10:18:20 -06:00
easylogo
env tools/env: avoid memory leak in fw_setenv 2017-04-18 10:29:22 -04:00
gdb
kermit
logos
omap
patman patman: Convert byte arrays to strings 2017-04-13 11:43:49 -06:00
scripts
tbot
.gitignore tools: sunxi: Add spl image builder 2017-04-07 11:23:45 +05:30
aisimage.c
aisimage.h
atmel_pmecc_params.c
atmelimage.c
bmp_logo.c
default_image.c
dumpimage.c
dumpimage.h
envcrc.c
fdt_host.h
fdtgrep.c fdtgrep: Cope with the /aliases node being last 2017-04-13 14:43:31 -06:00
fit_check_sign.c
fit_common.c
fit_common.h
fit_image.c
fit_info.c
gen_eth_addr.c
gen_ethaddr_crc.c
genboardscfg.py tools/genboardscfg.py: Make 'Supported' as known status 2017-05-12 08:37:36 -04:00
getline.c
getline.h
gpheader.h
gpimage-common.c
gpimage.c
ifdtool.c
ifdtool.h
image-host.c
imagetool.c
imagetool.h
img2brec.sh
img2srec.c
imximage.c tools: imximage: add set bit command 2017-03-19 17:30:15 +01:00
imximage.h tools: imximage: add set bit command 2017-03-19 17:30:15 +01:00
jtagconsole
kwbimage.c arm: mvebu: kwbimage: inline function to fix use-after-free 2017-05-31 07:43:04 +02:00
kwbimage.h
kwboot.c
lpc32xximage.c
Makefile fdt: Stop building the old python libfdt module 2017-06-02 10:18:19 -06:00
microcode-tool
microcode-tool.py
mingw_support.c
mingw_support.h
mkenvimage.c
mkexynosspl.c
mkimage.c
mkimage.h
mksunxiboot.c sunxi: Store the device tree name in the SPL header 2017-05-17 23:23:58 +05:30
moveconfig.py tools: moveconfig: cleanup README entires 2017-05-08 11:57:29 -04:00
mxsboot.c
mxsimage.c
mxsimage.h
ncb.c
netconsole
omapimage.c tools: omapimage: Fix size in header 2017-03-14 20:40:17 -04:00
omapimage.h
os_support.c
os_support.h
pbl_crc32.c
pbl_crc32.h
pblimage.c tools: plbimage support generate rcw file 2017-03-28 09:19:18 -07:00
pblimage.h
proftool.c
relocate-rela.c relocate-rela: add missing va_end() 2017-05-05 16:45:57 -04:00
rkcommon.c rockchip: mkimage: add support for verify_header/print_header 2017-06-07 07:29:22 -06:00
rkcommon.h rockchip: mkimage: add support for verify_header/print_header 2017-06-07 07:29:22 -06:00
rkimage.c rockchip: mkimage: remove placeholder functions from rkimage 2017-05-10 13:37:21 -06:00
rkmux.py
rksd.c rockchip: mkimage: add support for verify_header/print_header 2017-06-07 07:29:22 -06:00
rkspi.c rockchip: mkimage: add support for verify_header/print_header 2017-06-07 07:29:22 -06:00
socfpgaimage.c
sunxi-spl-image-builder.c tools: sunxi: avoid read after end of string 2017-05-05 16:45:57 -04:00
ublimage.c
ublimage.h
ubsha1.c
vybridimage.c
xway-swap-bytes.c
zynqimage.c
zynqmpimage.c