Commit 3d3bb6708a3c41723b899f7186ae79b4e9b6baa1

Authored by Ye.Li
1 parent 59ca4318ab

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

... ... @@ -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 +