If the DEBUG serial port is UART2 according to your own platform, SPL cannot load ATF and stops at the following log。the same problem occurs with EVK development boards.Attached is the modified patch。
Help to analyze what is the problem。Tks!
U-Boot SPL 2019.04-dirty (Jul 01 2020 - 16:42:26 +0800)
PMIC: PFUZE100 ID=0x10
DDRINFO: start DRAM init
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from MMC1
Authentication key not yet programmed
keyslot package magic error, do nothing here!
已解决! 转到解答。
Hi Aber
one can try to debug ATF with "#define DEBUG_CONSOLE" in
platform_def.h\include\imx8mq\imx\plat - imx-atf - i.MX ARM Trusted firmware
or try with jtag using app note
Normal and Secure Debug for i.MX8/8X Family of Applications Processors
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Aber
one can try to debug ATF with "#define DEBUG_CONSOLE" in
platform_def.h\include\imx8mq\imx\plat - imx-atf - i.MX ARM Trusted firmware
or try with jtag using app note
Normal and Secure Debug for i.MX8/8X Family of Applications Processors
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
#define DEBUG_CONSOLE 1
Log will print the following information。
U-Boot SPL 2019.04-dirty (Jul 02 2020 - 10:10:50 +0800)
PMIC: PFUZE100 ID=0x10
DDRINFO: start DRAM init
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from MMC1
Authentication key not yet programmed
keyslot package magic error, do nothing here!
NOTICE: BL31: v2.0(release):android-10.0.0_2.0.0-20200420-0-gfaa706a7d-dirty
NOTICE: BL31: Built : 10:11:04, Jul 2 2020
NOTICE: sip svc init
uart2 is used by m4 in SDK_EVK-MIMX8MQ so one can try
to assign properly rdc permissions to a53 in atf bl31_imx_rdc_setup(),
that is set UART2 RDC_PDAP105 read/write permissions for Master 0 A53
imx8mq_bl31_setup.c\imx8mq\imx\plat - imx-atf - i.MX ARM Trusted firmware
RDC is described in sect.3.2 Resource Domain Controller (RDC)
i.MX 8M Dual/8M QuadLite/8M Quad Applications Processors Reference Manual
Best regards
igor
Hi Igor,
We have the same issue. Could you provide exact codes to add/modify under the imx8mq_bl31_setup.c?
There are a lot to digest in the section 3.2 Resource Domain Controller (RDC) under the Reference Manual.
Thanks,
BL