Skip to content
Snippets Groups Projects
Commit 35d8265c authored by Lokesh Vutla's avatar Lokesh Vutla Committed by Tom Rini
Browse files

tools: omapimage: Fix size in header


The size field in GP header that is expected by ROM is size of the
image + size of the header. But omapimage generates a gp header
only with size of the image as size field. Fix it

Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
parent 19a75b8c
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,7 @@ static void omapimage_set_header(void *ptr, struct stat *sbuf, int ifd,
toc++;
memset(toc, 0xff, sizeof(*toc));
gph_set_header(gph, sbuf->st_size - OMAP_FILE_HDR_SIZE,
gph_set_header(gph, sbuf->st_size - OMAP_CH_HDR_SIZE + GPIMAGE_HDR_SIZE,
params->addr, 0);
if (strncmp(params->imagename, "byteswap", 8) == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment