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

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?
Thanks and regards,
Heshsham

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
participants (2)
-
Heshsham Abdul Basit
-
Tom Rini