i.MX8M Mini Hangs at ATF when booting from USB

Michael Nazzareno Trimarchi michael at amarulasolutions.com
Mon Jan 31 21:25:42 CET 2022


HI Adam

On Mon, Jan 31, 2022 at 9:21 PM Adam Ford <aford173 at gmail.com> wrote:
>
> I have a situation where the same Flash.bin file can boot an MMC card,
> but hang when booting over USB.
>
> In both cases, I can see the FIT file is loaded, and the various items
> are identified and placed in their respective folders memory
> locations.  The only difference I can see is that when jumping to
> 0x920000 (ATF), the USB booting hangs and ATF doesn't appear to
> execute.  Is there some special command that I need to issue to unlock
> this memory to execute from it when booting from USB?  I am calling
> enable_tzc380 from SPL, and I read the first 100 bytes and last 100
> bytes and compared it to my bl31.bin file, and it appears to match, so
> I know I can read from it.
>
> U-Boot SPL 2022.01-00836-g3cc200c91a-dirty (Jan 30 2022 - 07:31:51 -0600)
> No pmic
> WDT:   Not starting watchdog at 30280000
> Trying to boot from USB SDP
> USB EHCI 1.00
> SDP: initialize...
> SDP: handle requests...
> Downloading file of size 832080 to 0x40400000... done
> Jumping to header at 0x40400000
> Header Tag is not an IMX image
> Found header at 0x40417c00
> firmware: 'uboot'
> External data: dst=40200000, offset=3000, size=9ddd8
> fdt: 'fdt-1'
> External data: dst=4029de00, offset=aaea0, size=87b0
> loadables: 'atf'
> External data: dst=920000, offset=a0dd8, size=a0c6
> image entry point: 0x920000
>

Check if the uart used on atf and uboot are mapping correctly (but
this should because you can boot from sdcard)
ENV_IS_EVERYWHERE in configs file. It's no PMIC a problem when you jump in atf?

Michael

> <hang>



-- 
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael at amarulasolutions.com
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info at amarulasolutions.com
www.amarulasolutions.com


More information about the U-Boot mailing list