From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Wed, 22 Oct 2014 10:14:20 +0200 Subject: [U-Boot] [PATCH] imximage: Fix the bootdata.size calculation In-Reply-To: <54475EF6.6030107@freescale.com> References: <1413959969-9688-1-git-send-email-B37916@freescale.com> <54475B29.3090902@denx.de> <54475EF6.6030107@freescale.com> Message-ID: <5447675C.3070708@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 Hi Ye, On 22/10/2014 09:38, Li Ye-B37916 wrote: > You can look into the "Figure 8-21. Image Vector Table" in the system boot chapter of i.MX6Q manual. The bootdata.start points > to the beginning of the destination memory, which means the bootdata.size should have IVT offset included. Well, ok, this is an interpretation.... > We also have checked > the boot rom codes for this. ok - this is the most important thing. Is it the same for all MX6 and MX53 ? > > We found this issue when booting from QSPI NOR on i.MX6SX. The u-boot runs into abnormal (crash or stop) after booting. We checked the > destination memory where the image is loaded to, and found hundreds of bytes at the image end are not loaded into memory. Since there > is a 4096 bytes round in the calculation, so the image size decides if the issue can be reproduced. It is not easy to see the issue by SD boot. ok - the only thing that it looks weird is that the issue happens now and not with a MX6Q(D) booting from SPI-NOR. There are several boards booting from SPI, but I have not heard about such as problems. 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 =====================================================================