From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Mon, 03 Nov 2014 11:25:38 +0100 Subject: [U-Boot] [PATCH v2] imximage: Fix the bootdata.size calculation In-Reply-To: <1414662848-2051-1-git-send-email-B37916@freescale.com> References: <1414662848-2051-1-git-send-email-B37916@freescale.com> Message-ID: <54575822.1030103@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- 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 =====================================================================