u-boot-2016/tools
Bryan O'Donoghue af1b492dfa tools/imximage: Fix fruity lack of 0x prefix in DCD Blocks
commit 8519c9c98a ("tools/imximage: use 0x prefix in HAB Blocks line")
adds an 0x prefix to each HAB Block number to make it easier for host tools
to process the HAB Block output, however it neglects to apply the same
prefix to the DCD Blocks directive. You need the DCD Blocks directive if
you are making a u-boot recovery image which the BootROM will accept via
the USB upload utility.

This disparity results in a fruity output like this with HAB Blocks
prefixed but DCD Blocks not prefixed - which is pretty inconsistent.

This patch fixes the difference assuming the original commit was a
legitimate change.

Old:
Image Type:   Freescale IMX Boot Image
Image Ver:    2 (i.MX53/6/7 compatible)
Mode:         DCD
Data Size:    430080 Bytes = 420.00 KiB = 0.41 MiB
Load Address: 877ff420
Entry Point:  87800000
HAB Blocks:   0x877ff400 0x00000000 0x00066c00
DCD Blocks:   00910000 0000002c 000001d4

New:
Image Type:   Freescale IMX Boot Image
Image Ver:    2 (i.MX53/6/7 compatible)
Mode:         DCD
Data Size:    430080 Bytes = 420.00 KiB = 0.41 MiB
Load Address: 877ff420
Entry Point:  87800000
HAB Blocks:   0x877ff400 0x00000000 0x00066c00
DCD Blocks:   0x00910000 0x0000002c 0x000001d4

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Breno Lima <breno.lima@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
2018-04-26 08:52:51 +02:00
..
binman tools: Update python "help" tests to cope with "more" oddities 2018-01-16 16:15:25 -05:00
buildman buildman: add option -E for treating compiler warnings as errors 2018-02-04 22:55:34 -05:00
dtoc libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
easylogo
env fw_printenv: Fix crash due to incorrect size for malloc'ed string. 2018-04-10 15:19:15 -04:00
gdb
kermit
libfdt libfdt: migrate fdt_rw.c to a wrapper of scripts/dtc/libfdt/fdt_rw.c 2018-01-28 12:27:30 -05:00
logos
omap
patman host-tools: use python2 explicitly for shebang 2018-01-28 12:27:30 -05:00
scripts
.gitignore tools: provide a tool to convert a binary file to an include 2018-01-22 23:09:12 +01:00
aisimage.c
aisimage.h
atmel_pmecc_params.c
atmelimage.c
bmp_logo.c tools: bmp_logo: correctly interpret BMP files with larger headers 2017-10-16 09:42:51 -04:00
default_image.c image: Add IH_OS_TEE for TEE chain-load boot 2018-03-19 16:14:25 -04:00
dumpimage.c
dumpimage.h
envcrc.c
fdt_host.h libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
fdtgrep.c tools: include necessary headers explicitly 2018-01-28 12:27:31 -05:00
file2include.c tools: provide a tool to convert a binary file to an include 2018-01-22 23:09:12 +01:00
fit_check_sign.c
fit_common.c
fit_common.h
fit_image.c tools/mkimage: Use proper output parameter in dtc-system call 2018-03-09 12:31:07 -05:00
fit_info.c
gen_eth_addr.c
gen_ethaddr_crc.c tools: include necessary headers explicitly 2018-01-28 12:27:31 -05:00
genboardscfg.py
getline.c
getline.h
gpheader.h
gpimage-common.c
gpimage.c
ifdtool.c libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-03-05 10:16:28 -05:00
ifdtool.h
image-host.c fix incorrect usage of DT node unit address in comments 2018-01-15 18:29:21 -07:00
imagetool.c
imagetool.h tools: include necessary headers explicitly 2018-01-28 12:27:31 -05:00
img2brec.sh
img2srec.c
imximage.c tools/imximage: Fix fruity lack of 0x prefix in DCD Blocks 2018-04-26 08:52:51 +02:00
jtagconsole
kwbimage.c kwbimage: Fix out of bounds access 2018-03-30 12:52:48 +02:00
kwbimage.h
kwboot.c
lpc32xximage.c
Makefile tools: Make kwboot build if HOST_TOOLS_ALL=y 2018-03-22 13:25:20 -04:00
microcode-tool
microcode-tool.py host-tools: use python2 explicitly for shebang 2018-01-28 12:27:30 -05:00
mingw_support.c
mingw_support.h
mips-relocs.c tools: include necessary headers explicitly 2018-01-28 12:27:31 -05:00
mkenvimage.c
mkexynosspl.c
mkimage.c mkimage: do not fail if there is no print_header function 2018-04-10 11:52:16 -04:00
mkimage.h
mksunxiboot.c
moveconfig.py
mrvl_uart.sh tools/mrvl_uart.sh: Tidy script output 2018-01-29 13:36:32 +01:00
mxsboot.c
mxsimage.c tools/mxsimage: Support building with LibreSSL 2018-04-06 20:45:28 -04:00
mxsimage.h
ncb.c
netconsole
omapimage.c tools: omapimage: Fix mismatch of image size in header 2018-01-19 15:49:24 -05:00
omapimage.h
os_support.c
os_support.h
pbl_crc32.c
pbl_crc32.h
pblimage.c
pblimage.h
prelink-riscv.c riscv: tools: Prelink u-boot 2018-01-12 08:05:12 -05:00
prelink-riscv.inc riscv: tools: Prelink u-boot 2018-01-12 08:05:12 -05:00
proftool.c
relocate-rela.c
rkcommon.c rockchip: mkimage: remove unused code-paths (spl_boot0 is now implied) 2017-11-21 23:57:23 +01:00
rkcommon.h
rkimage.c
rkmux.py host-tools: use python2 explicitly for shebang 2018-01-28 12:27:30 -05:00
rksd.c
rkspi.c
socfpgaimage.c
stm32image.c tools/mkimage: add support for STM32 image format 2018-03-19 16:14:19 -04:00
sunxi-spl-image-builder.c
ublimage.c
ublimage.h
ubsha1.c
vybridimage.c
xway-swap-bytes.c
zynqimage.c tools: xilinx: Fix zynq/zynqmp image recognition 2018-03-23 09:36:15 +01:00
zynqmpimage.c tools: xilinx: Fix zynq/zynqmp image recognition 2018-03-23 09:36:15 +01:00