06-03-2019 12:01 AM
Is It possible to run U-Boot with exception layer EL3.
I want to use U-Boot as the bootloader for BareMetal or FreeRTOS firmware for ZynqMP platform. The problem is that U-Boot runs with EL2, switchs EL to EL1 when start BareMetal/FreeRTOS (is built with BSP for EL3).
07-02-2019 09:26 PM
Evethough its is not the supported bootflow, Yes you can boot u-boot at EL3 with out any issue, you just have to skip loading ATF(bl31.elf) in the bootsequence.
Regarding hand off to EL3 app, you need to comment out the routine do_go_exec() defined in board/xilinx/zynqmp/zynqmp.c of u-boot.
06-25-2020 11:03 AM
Has anyone been able to implement this solution?
I tired to remove BL31 from the bif for generating BOOT.bin.
[bootloader, destination_cpu = a53-0] embeddedsw/lib/sw_apps/zynqmp_fsbl/src/fsbl.elf
[destination_cpu=a53-0, exception_level=el-3] u-boot-xlnx/u-boot.elf
After flashing BOOT.bin I get the FSBL output
================= In Stage 4 ============
Protection configuration applied
Running Cpu Handoff address: 0x8000000, Exec State: 0
Exit from FSBL
Do i need to put Uboot at a certain address? I am not sure what I am doing wrong here.