]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
imximage: Fix the bootdata.size calculation
authorYe.Li <B37916@freescale.com>
Thu, 30 Oct 2014 09:54:08 +0000 (17:54 +0800)
committerStefano Babic <sbabic@denx.de>
Mon, 3 Nov 2014 09:33:01 +0000 (10:33 +0100)
commitde97980478db4378719a529deb8e203e33bf6f66
tree21a3401750a985766e476cec72090849d6561bb2
parentd12159b63b0e0fe4842afedf84b4a497f2323b8b
imximage: Fix the bootdata.size calculation

In system boot chapter of i.MX6 reference manual, the "Image Vector Table"
figure shows the bootdata.start points to the beginning of the destination
memory. It means the bootdata.size should contain the IVT offset part,
but the calculation in imximage tool does not have.

We found this issue when booting from QuadSPI NOR on i.MX6SX. The u-boot
runs into abnormal (crash or stop) after booting. After checked the destination
memory where the image is loaded to, there are hundreds of bytes at
the image end are not loaded into memory. Since there is a 4096 bytes
round in the calculation, for the booting devices using smaller IVT offset,
such as SD and SPI booting, they are not easy to reproduce.

Signed-off-by: Ye.Li <B37916@freescale.com>
tools/imximage.c