summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2014-10-22 10:27:54 +0800
committerYe.Li <B37916@freescale.com>2014-10-22 11:00:55 +0800
commit3d3bb6708a3c41723b899f7186ae79b4e9b6baa1 (patch)
treee5f2a4aeb736ca7381837a9295b0427162a9c6ae /tools
parent59ca4318ab4e1cfd39e6c1343e87eda481226552 (diff)
downloadu-boot-imx-3d3bb6708a3c41723b899f7186ae79b4e9b6baa1.zip
u-boot-imx-3d3bb6708a3c41723b899f7186ae79b4e9b6baa1.tar.gz
u-boot-imx-3d3bb6708a3c41723b899f7186ae79b4e9b6baa1.tar.bz2
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 <B37916@freescale.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/imximage.c2
1 files changed, 1 insertions, 1 deletions
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 +