android_Q10.0.0_2.0.0 SPL cannot load ATF startup

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

android_Q10.0.0_2.0.0 SPL cannot load ATF startup

Jump to solution
2,010 Views
aber
Contributor III

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!

Tags (2)
0 Kudos
1 Solution
1,877 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
9 Replies
1,877 Views
e_kotsarev
Contributor II

Read 3.3.2 Generating and fusing the eMMC RPMB key in i.MX_Android_Security_User's_Guide.pdf

Seems like you missed rpmb key

0 Kudos
1,876 Views
aber
Contributor III

There is no problem with uart1. The main reason is that the M4 core uses UART2, and we are still looking for a way。Tks!

0 Kudos
1,878 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,877 Views
aber
Contributor III

#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

0 Kudos
1,877 Views
igorpadykov
NXP Employee
NXP Employee

may be recommended to rebuild all image from scratch.

Best regards
igor

0 Kudos
1,877 Views
aber
Contributor III

Just empty and recompile the same problem。

0 Kudos
1,876 Views
igorpadykov
NXP Employee
NXP Employee

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

0 Kudos
1,765 Views
bl
Contributor II

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

0 Kudos
1,877 Views
aber
Contributor III

Is there any way to solve it. There is no such problem on Android 9。

0 Kudos