mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
kwbimage: align v1 binary header to 4B
According to the Armada-XP documentation the binary header format requires the header length to be aligned to 4B. Signed-off-by: Chris Packham <judge.packham@gmail.com> Acked-by: Stefan Roese <sr@denx.de> Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
This commit is contained in:
parent
e3c6c7bfee
commit
c250ce0f57
1 changed files with 1 additions and 0 deletions
|
|
@ -498,6 +498,7 @@ static void *image_create_v1(size_t *imagesz, struct image_tool_params *params,
|
||||||
binhdrsz = sizeof(struct opt_hdr_v1) +
|
binhdrsz = sizeof(struct opt_hdr_v1) +
|
||||||
(binarye->binary.nargs + 1) * sizeof(unsigned int) +
|
(binarye->binary.nargs + 1) * sizeof(unsigned int) +
|
||||||
s.st_size;
|
s.st_size;
|
||||||
|
binhdrsz = ALIGN_SUP(binhdrsz, 32);
|
||||||
hdr->headersz_lsb = binhdrsz & 0xFFFF;
|
hdr->headersz_lsb = binhdrsz & 0xFFFF;
|
||||||
hdr->headersz_msb = (binhdrsz & 0xFFFF0000) >> 16;
|
hdr->headersz_msb = (binhdrsz & 0xFFFF0000) >> 16;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue