summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2017-02-15 13:12:54 (GMT)
committerTom Rini <trini@konsulko.com>2017-03-15 00:40:17 (GMT)
commit35d8265c64dee1bd3015883673960df32c4e9c1a (patch)
tree68cd0a5c24fe7448f0fe34cedd49c91180198484 /tools
parent19a75b8cf8d17fffa9493bf3f3e380d76eccd8dd (diff)
downloadu-boot-35d8265c64dee1bd3015883673960df32c4e9c1a.tar.xz
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: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/omapimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/omapimage.c b/tools/omapimage.c
index 7198b33..e31b94a 100644
--- a/tools/omapimage.c
+++ b/tools/omapimage.c
@@ -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) {