[U-Boot] Why is u-boot SPL reading u-boot.img twice [Zynq z7c02]?

Tom Rini trini at ti.com
Fri May 9 18:20:43 CEST 2014


On Fri, May 09, 2014 at 07:56:21PM +0530, Heshsham Abdul Basit wrote:

> Hi,
> 
> Target: Zynq z7c02
> 
> Whenever I run boot.bin generated in TOPDIR/u-boot source  after
> compiling u-boot source,
> 
> I observe it reads u-boot.img twice:
> 
> U-Boot SPL printing from common/spl/spl.c 2014.01-dirty (May 06 2014 - 16:48:05)
> 
> mmc boot, reading file arch/arm/cpu/armv7/zynq/spl.c
> 
> reading u-boot.img
> 
> reading u-boot.img
> 
> Why is it reading twice?

The first read is only reading the header to see where to load to for
real.  The second read is of the whole file.  See common/spl/spl_fat.c

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140509/4e703b71/attachment.pgp>


More information about the U-Boot mailing list