Hello,
I am using Android on a i.MX 8QuadXPlus MEK board. And there I wanted to enable UART output in the Arm Trusted Firmware (ATF) by setting DEBUG_CONSOLE to 1 in $AOSP/vendor/nxp-opensource/arm-trusted-firmware/plat/imx/imx8qx/include/platform_def.h.
However if I compile that setting in, then flashing doesn't work any more. Spending some time, I traced the issue down to:
...
func console_register
...
str x0, [x21, :lo12:console_list] /* list head = new console */
...
in vendor/nxp-opensource/arm-trusted-firmware/drivers/console/aarch64/multi_console.S
Not working means, that it is hanging forever in
2:132 1/ 1 [=================100%=================] SDPS: boot -f u-boot-imx8qxp-mek-uuu.imx
and nothing is happening on UART.
Does anyone know what is going wrong here?
Edit:
BTW: I am using an own build tee-imx8qx.bin
2nd Edit:
It is not in that instruction that the CPU gets stuck but the effects of the instruction is causing the flashing to stop.