-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New TF-A causes PANIC booting OP-TEE on Zynq Ultrascale+ ZCU104 board #290
Comments
Hi @frank-kue, perhaps your detailed description will ring a bell for someone, but if it doesn't you could always git bisect TF-A to identify the commit that causes the problem. |
The PANIC is from TF-A. The address looks suspiciously low. Does TF-A panic even if OP-TEE isn't loaded? |
@jenswi-linaro I am willing to try. Do you know how I can change the OP-TEE build process so that it builds TF-A without loading OP-TEE? In a different context, I once used |
Removing "NEED_BL32=yes SPD=opteed" might do it. |
@jenswi-linaro To answer your question: TF-A does not panic if OP-TEE is not loaded. The boot process loads U-boot and then boots Buildroot Linux. Calling The TF-A commit is:
The output from the boot process till U-boot startup is:
|
Following @frank-kue's bug workaround I also managed to get a system firmware image that can boot Linux and OP-TEE for the Xilinx Zynq UltraScale+ ZCU104 board, building version 4.3.0 of OP-TEE. |
@SilviaS Openly, I did no care so much about the LEDs. Unfortunately, I cannot check with the board right now. But yes, I remember some red light but I believe also in other contexts than OP TEE. |
Many thanks @frank-kue for your reply! |
Bug Description
In March 2024 I successfully built and run OP-TEE on an Xilinx Zynq Ultrascale+ ZCU104 board. Building a current version (4.2.0 or 4.3.0 or
master
) causes the boot to fail with a PANIC:This happens after initializing OP-TEE during boot and before running U-boot. During a successful boot (see bug workaround below) the console output at this place looks like:
Bug Workaround
The bug workaround is to set the git commit of
arm-trusted-firmware
to04013814718e
. (I did not try other git commits. This one works for me.)How to Reproduce
The
Dockerfile
in the attachment builds two files:BOOT.bin
andzynqmp-zcu104.ub
which successfully boot from SD-card on the ZCU104 board. For build instructions see the comments in theDockerfile
which follow closely the ones of https://optee.readthedocs.io/en/latest/building/devices/zynqmp.html .Docker.zip
To reproduce the bug (i.e. build a none-booting
BOOT.bin
) remove the linefrom the
Dockerfile
.The text was updated successfully, but these errors were encountered: