From 3d3bb6708a3c41723b899f7186ae79b4e9b6baa1 Mon Sep 17 00:00:00 2001 From: "Ye.Li" Date: Wed, 22 Oct 2014 10:27:54 +0800 Subject: [PATCH] MLK-9714 imx: imximage tool: Fixed the bootdata.size calculation The bootdata.size should contain the IVT offset part, but the calculation for bootdata.size in imximage tool does not. This will cause some data at the end of image not be loaded into memory. Signed-off-by: Ye.Li --- tools/imximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/imximage.c b/tools/imximage.c index 6b4294f..c615d57 100644 --- a/tools/imximage.c +++ b/tools/imximage.c @@ -752,7 +752,7 @@ static void imximage_set_header(void *ptr, struct stat *sbuf, int ifd, * * The remaining fraction of a block bytes would not be loaded! */ - *header_size_ptr = ROUND(sbuf->st_size, 4096); + *header_size_ptr = ROUND((sbuf->st_size + imximage_ivt_offset), 4096); if (csf_ptr && imximage_csf_size) { *csf_ptr = params->ep - imximage_init_loadsize + -- 1.9.1