Commit 3a0e70f181ecf21db2486c289055d4269887cab8

Authored by Lokesh Vutla
Committed by Tom Rini
1 parent 4849d95407

tools: omapimage: Fix mismatch of image 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 tool is updating size
as image size + 2 * header size. Remove this extra header size bytes.

Reported-by: Denys Dmytriyenko <denys@ti.com>
Debugged-by: Madan Srinivas <madans@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -145,7 +145,7 @@
145 145 toc++;
146 146 memset(toc, 0xff, sizeof(*toc));
147 147  
148   - gph_set_header(gph, sbuf->st_size - OMAP_CH_HDR_SIZE + GPIMAGE_HDR_SIZE,
  148 + gph_set_header(gph, sbuf->st_size - OMAP_CH_HDR_SIZE,
149 149 params->addr, 0);
150 150  
151 151 if (strncmp(params->imagename, "byteswap", 8) == 0) {