summaryrefslogtreecommitdiff
path: root/common/cmd_misc.c
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2015-07-09 15:19:11 (GMT)
committerStefano Babic <sbabic@denx.de>2015-09-02 13:25:27 (GMT)
commitb893c9898c4126c7b09a5aa124c6bedf33fa305c (patch)
tree7583c7bee64c16ccf1674037bfe62fbcd07f06fb /common/cmd_misc.c
parentb7e84c93c450480ca4ff51ad2eb56bd83c1dc368 (diff)
downloadu-boot-fsl-qoriq-b893c9898c4126c7b09a5aa124c6bedf33fa305c.tar.xz
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. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'common/cmd_misc.c')
0 files changed, 0 insertions, 0 deletions