android_Q10.0.0_2.0.0 SPL cannot load ATF startup

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

android_Q10.0.0_2.0.0 SPL cannot load ATF startup

ソリューションへジャンプ
4,212件の閲覧回数
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!

タグ(2)
0 件の賞賛
返信
1 解決策
4,079件の閲覧回数
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 件の賞賛
返信
9 返答(返信)
4,079件の閲覧回数
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 件の賞賛
返信
4,078件の閲覧回数
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 件の賞賛
返信
4,080件の閲覧回数
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 件の賞賛
返信
4,079件の閲覧回数
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 件の賞賛
返信
4,079件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

may be recommended to rebuild all image from scratch.

Best regards
igor

0 件の賞賛
返信
4,079件の閲覧回数
aber
Contributor III

Just empty and recompile the same problem。

0 件の賞賛
返信
4,078件の閲覧回数
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 件の賞賛
返信
3,967件の閲覧回数
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 件の賞賛
返信
4,079件の閲覧回数
aber
Contributor III

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

0 件の賞賛
返信