diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2017-12-28 18:10:00 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-19 23:49:24 +0300 |
commit | 3a0e70f181ecf21db2486c289055d4269887cab8 (patch) | |
tree | 1bdbf48e95072b68e882a64d0cec8054795bdffe | |
parent | 4849d9540751cdf66d5169e2bcc4ee0ea9a6f647 (diff) | |
download | u-boot-3a0e70f181ecf21db2486c289055d4269887cab8.tar.xz |
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>
-rw-r--r-- | tools/omapimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/omapimage.c b/tools/omapimage.c index e7c46388f4..01e02649e1 100644 --- a/tools/omapimage.c +++ b/tools/omapimage.c @@ -145,7 +145,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_CH_HDR_SIZE + GPIMAGE_HDR_SIZE, + gph_set_header(gph, sbuf->st_size - OMAP_CH_HDR_SIZE, params->addr, 0); if (strncmp(params->imagename, "byteswap", 8) == 0) { |