mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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>
This commit is contained in:
parent
4849d95407
commit
3a0e70f181
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ static void omapimage_set_header(void *ptr, struct stat *sbuf, int ifd,
|
||||||
toc++;
|
toc++;
|
||||||
memset(toc, 0xff, sizeof(*toc));
|
memset(toc, 0xff, sizeof(*toc));
|
||||||
|
|
||||||
gph_set_header(gph, sbuf->st_size - OMAP_CH_HDR_SIZE + GPIMAGE_HDR_SIZE,
|
gph_set_header(gph, sbuf->st_size - OMAP_CH_HDR_SIZE,
|
||||||
params->addr, 0);
|
params->addr, 0);
|
||||||
|
|
||||||
if (strncmp(params->imagename, "byteswap", 8) == 0) {
|
if (strncmp(params->imagename, "byteswap", 8) == 0) {
|
||||||
|
|
Loading…
Reference in a new issue