[REGRESSION] imx: spl_imx_romapi: boot loops
Marcel Ziswiler
marcel.ziswiler at toradex.com
Tue Oct 24 12:03:15 CEST 2023
Hi Rasmus
Thanks for your help.
On Tue, 2023-10-24 at 11:18 +0200, Rasmus Villemoes wrote:
[snip]
> Hm. Can you show the result of 'fdtdump u-boot.itb | head'
⬢[zim at toolbox u-boot.git]$ fdtdump u-boot.itb | head
**** fdtdump is a low-level debugging tool, not meant for general use.
**** If you want to decompile a dtb, you probably want
**** dtc -I dtb -O dts <filename>
/dts-v1/;
// magic: 0xd00dfeed
// totalsize: 0x414 (1044)
// off_dt_struct: 0x38
// off_dt_strings: 0x370
// off_mem_rsvmap: 0x28
// version: 17
// last_comp_version: 2
// boot_cpuid_phys: 0x0
// size_dt_strings: 0xa1
> as well as
> just the actual file sizes of u-boot.itb and flash.bin.
⬢[zim at toolbox u-boot.git]$ ls -l u-boot.itb u-boot.bin
-rw-r--r--. 1 zim zim 882984 Oct 24 11:42 u-boot.bin
-rw-r--r--. 1 zim zim 934504 Oct 24 11:42 u-boot.itb
> Also, in spl_romapi_read_stream(), can you add a print out what
> ss->pagesize is, and also an unconditional printf() after the
> rom_api_download_image() - we apparently don't hit the "Failure download
> %d", but I'd still like to see if we even return from that
> rom_api_download_image() call.
U-Boot SPL 2024.01-rc1-dirty (Oct 24 2023 - 11:56:41 +0200)
Training FAILED
DDR configured as single rank
SEC0: RNG instantiated
Normal Boot
WDT: Started watchdog at 30280000 with servicing every 1000ms (60s timeout)
Trying to boot from BOOTROM
Boot Stage: Primary boot
Find img info 0x4802b000, size 1044
Need continue download 1024
spl_romapi_read_stream ss->pagesize 0x200
spl_romapi_read_stream ss->pagesize 0x200
downloading another 0xc9000 bytes
rom_api_download_image()=240
spl_romapi_read_stream ss->pagesize 0x200
downloading another 0x1ae00 bytes
rom_api_download_image()=240
spl_romapi_read_stream�
> Rasmus
Cheers
Marcel
More information about the U-Boot
mailing list