]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
tools: mkimage: fix imximage header size
authorAlbert ARIBAUD \(3ADEV\) <albert.aribaud@3adev.fr>
Fri, 19 Jun 2015 12:18:30 +0000 (14:18 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:29:19 +0000 (13:29 +0200)
imximage header size is 4-byte, not 8-byte aligned.
This produces .imx images that a Vybrid cannot boot
on.

Fix by adding a "padding" field in header.

Signed-off-by: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
tools/imximage.h

index 36fe0958fee3023763b8fb4860d5c1fe98c69616..a913329f3433fc5f56cee6250970adb55a5d70cd 100644 (file)
@@ -129,6 +129,7 @@ typedef struct {
        ivt_header_t header;
        write_dcd_command_t write_dcd_command;
        dcd_addr_data_t addr_data[MAX_HW_CFG_SIZE_V2];
+       uint32_t padding[1]; /* end up on an 8-byte boundary */
 } dcd_v2_t;
 
 typedef struct {