rv1126-uboot/tools
Baruch Siach db7cd4ed33 tools/kwbimage: fix v1 header verification
The verify_header callback in kwbimage.c only verifies v0 headers checksum.
Running 'mkimage -l' on a v1 image gives the following misleading output:

GP Header: Size ae000000 LoadAddr 34160600

Implement support for v1 headers. For that, factor out the header checksum code
to a separate main_hdr_checksum_ok() routine. This routine relies on the fact
that the checksum field offset is the same in both v0 and v1 headers. With this
patch applied 'mkimage -l' correctly identifies the image:

Image Type:   MVEBU Boot from sdio Image
Image version:1
Data Size:    398904 Bytes = 389.55 KiB = 0.38 MiB
Load Address: 007fffc0
Entry Point:  00800000

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Stefan Roese <sr@denx.de>
2017-07-12 06:57:55 +02:00
..
binman binman: Put our local modules ahead of system modules 2017-07-11 10:08:20 -06:00
buildman avr32: Retire AVR32 for good 2017-07-06 16:17:19 -04:00
dtoc dtoc: Add tests 2017-07-11 10:08: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: Add a functional test 2017-06-08 20:21:59 -06:00
scripts
.gitignore tools: sunxi: Add spl image builder 2017-04-07 11:23:45 +05:30
Makefile fdt: Stop building the old python libfdt module 2017-06-02 10:18:19 -06:00
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: Deal with NULL data passed to check_type_include() 2017-06-12 08:38:07 -04: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 treewide: remove unneeded semicolons 2017-06-16 10:11:38 -04:00
imximage.c
imximage.h
jtagconsole
kwbimage.c tools/kwbimage: fix v1 header verification 2017-07-12 06:57:55 +02:00
kwbimage.h tools/kwbimage.h: make offset marks style consistent 2017-07-12 06:57:55 +02:00
kwboot.c
lpc32xximage.c
microcode-tool
microcode-tool.py
mingw_support.c
mingw_support.h
mkenvimage.c
mkexynosspl.c
mkimage.c mkimage: fix display of image types list 2017-07-06 16:17:16 -04:00
mkimage.h
mksunxiboot.c sunxi: Store the device tree name in the SPL header 2017-05-17 23:23:58 +05:30
moveconfig.py moveconfig: Allow automatic location and adding of 'imply' 2017-07-11 10:08:20 -06:00
mxsboot.c
mxsimage.c
mxsimage.h
ncb.c
netconsole
omapimage.c
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 rk322x soc 2017-07-11 12:13:45 +02:00
rkcommon.h rockchip: mkimage: force 2KB alignment for init_size 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: force 2KB alignment for init_size 2017-06-07 07:29:22 -06:00
rkspi.c rockchip: mkimage: force 2KB alignment for init_size 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