[U-Boot] [PATCH v2] imximage: Fix the bootdata.size calculation

Stefano Babic sbabic at denx.de
Mon Nov 3 11:25:38 CET 2014


On 30/10/2014 10:54, Ye.Li wrote:
> 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 at freescale.com>
> ---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list