diff options
author | Baruch Siach <baruch@tkos.co.il> | 2015-07-09 18:19:11 +0300 |
---|---|---|
committer | Peng Fan <Peng.Fan@freescale.com> | 2015-08-20 14:04:42 +0800 |
commit | 5c8dcbe7aba3980e07a67bb567bfddc5700460a5 (patch) | |
tree | 8e1ca1455bad1e5c5250bfccfea8837a155db2ee /scripts/gcc-version.sh | |
parent | b437ce19ce71f670942183f70985ce123ab5140c (diff) | |
download | u-boot-imx-5c8dcbe7aba3980e07a67bb567bfddc5700460a5.zip u-boot-imx-5c8dcbe7aba3980e07a67bb567bfddc5700460a5.tar.gz u-boot-imx-5c8dcbe7aba3980e07a67bb567bfddc5700460a5.tar.bz2 |
tools/imximage: set DCD pointer to NULL when its length is 0
When dcd_len is 0 the Write Data command that the set_dcd_rst_v2() routine
generates is empty. This causes HAB to complain that the command is invalid.
--------- HAB Event 1 -----------------
event data:
0xdb 0x00 0x0c 0x41 0x33 0x06 0xc0 0x00
0xcc 0x00 0x04 0x04
To fix this set the DCD pointer in the IVT to NULL in this case. The DCD header
itself is still needed for detect_imximage_version() to determine the image
version.
Conflicts:
tools/imximage.c
cherry-picked from
http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commitdiff;h=873bf926bfbb0a667158261813115fa6819661b7
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Stefano Babic <sbabic@denx.de>
(cherry picked from commit 873bf926bfbb0a667158261813115fa6819661b7)
Diffstat (limited to 'scripts/gcc-version.sh')
0 files changed, 0 insertions, 0 deletions