make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- O=../out -j32 O=../out -j32
make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- O=../out -j32
When using SDP, SPL loaded fine, but u-boot isn't started (AFAIK the loading of u-boot + TFA in memory is successful)
Console log
U-Boot SPL 2024.07-rc4-00013-g579deeeba4-dirty (Jun 10 2024 - 08:40:54 +0530)
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_u32_index: timeout-sec: (not found)
ofnode_read_u32_index: hw_margin_ms: (not found)
ofnode_read_bool: u-boot,noautostart: false
ofnode_read_bool: u-boot,autostart: false
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_bool: fsl,ext-reset-output: true
WDT: Started watchdog@30280000 with servicing every 1000ms (10s timeout)
Trying to boot from USB SDP
ofnode_read_prop: dr_mode: otg
ofnode_read_prop: assigned-clock-rates: <not found>
Looking for clock-controller@30380000
Looking for clock-controller@30380000
- result for clock-controller@30380000: clock-controller@30380000 (ret=0)
- result for clock-controller@30380000: clock-controller@30380000 (ret=0)
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_u32_index: clock-frequency: x (24000000)
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_prop: assigned-clock-rates: <not found>
ofnode_read_prop: assigned-clock-rates: <not found>
Looking for clock-controller@30380000
Looking for clock-controller@30380000
- result for clock-controller@30380000: clock-controller@30380000 (ret=0)
- result for clock-controller@30380000: clock-controller@30380000 (ret=0)
ofnode_read_prop: assigned-clock-rates: <not found>
Looking for clock-controller@30380000
Looking for clock-controller@30380000
- result for clock-controller@30380000: clock-controller@30380000 (ret=0)
- result for clock-controller@30380000: clock-controller@30380000 (ret=0)
USB EHCI 1.00
SDP: initialize...
SDP: handle requests...
Downloading file of size 887824 to 0x40400000... done
Jumping to header at 0x40400000
Header Tag is not an IMX image
Found header at 0x40422400
Running the built-in script using uuu -v -b emmc ./flash.bin
Wait for Known USB Device Appear...
New USB Device Attached at 3:53-
3:53->Start Cmd:SDP: boot -f ./flash.bin
100%3:53->Okay (0.58s)
New USB Device Attached at 3:53-
3:53->Start Cmd:SDPV: delay 1000
3:53->Okay (1.001s)
3:53->Start Cmd:SDPV: write -f ./flash.bin -skipspl
100%3:53->Okay (1.305s)
3:53->Start Cmd:SDPV: jump
100%
Analysis:
Debugging the code path in u-boot shows that the fitImage (bundled using binman) which contains u-boot, TFA is loaded into the RAM
Jump is expected to trigger the start of U-boot or TFA (which am not sure), the target is stuck and resets only by watchdog
Thanks in advance for the hint or help to narrow down.
Board: Phytec Tauri-L with imx8mm
U-boot mainline: https://source.denx.de/u-boot/u-boot Additional changes:
and USB enabled in SPL using
Compiled with
TFA: https://review.trustedfirmware.org/TF-A/trusted-firmware-a.git
Problem:
Console log
Running the built-in script using
uuu -v -b emmc ./flash.bin
Analysis:
Thanks in advance for the hint or help to narrow down.