Commit 3d3bb6708a3c41723b899f7186ae79b4e9b6baa1
1 parent
59ca4318ab
Exists in
smarc-imx-l5.0.0_1.0.0-ga
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
tools/imximage.c
... | ... | @@ -752,7 +752,7 @@ |
752 | 752 | * |
753 | 753 | * The remaining fraction of a block bytes would not be loaded! |
754 | 754 | */ |
755 | - *header_size_ptr = ROUND(sbuf->st_size, 4096); | |
755 | + *header_size_ptr = ROUND((sbuf->st_size + imximage_ivt_offset), 4096); | |
756 | 756 | |
757 | 757 | if (csf_ptr && imximage_csf_size) { |
758 | 758 | *csf_ptr = params->ep - imximage_init_loadsize + |