This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5708: AM57xx HS : Secure boot

Part Number: AM5708

Hi

We have configured TI_OTP_writer and generate flashable MLO and flashed on fresh new processor
we are facing error during boot

we have verified bootable MLO hash and it is matching with SMPK hash value
boot log is as follows

PPA 4.6.4 (GCC Build - Sep 24 2020 - 16:41:23)
Supports ALL DRA7x, TDA2x, and AM57x devices
Detected device: 05841e21 HS
!ONLY PUBLIC DEBUG ON!
!OBFUSCATOR ON!
!TEE Load API SUPPORTED!
SEC_STATUS = 0x2282f8a2
SEC_CTRL   = 0x00010203
SEC_EMU    = 0x000007fc
SEC_TAP    = 0x00002607

!!!!!!!!!!
FATAL ERROR
!!!!!!!!!!

Non Secure context:
usr_sp = 00000000
usr_lr = 00000000
svc_sp = 4037fc28
svc_lr = 00039425
svc_spsr = 00000000
abt_sp = 00000000
abt_lr = 00000000
abt_spsr = 00000000
und_sp = 00000000
und_lr = 00000000
und_spsr = 00000000
irq_sp = 00000000
irq_lr = 00000000
irq_spsr = 00000000
fiq_sp = 00000000
fiq_lr = 00000000
fiq_spsr = 00000000
fiq_r8 = 00000000
fiq_r9 = 00000000
fiq_r10 = 00000000
fiq_r11 = 00000000
fiq_r12 = 00000000
!!!!!!!!!!

Error Codes from ROM Code sub-modules:
See src/common/include/sec_err_define.h
[0x004a401c]: 0x48534148 0x00000000 HASH....
[0x004a4024]: 0x30304d4b 0x00000800 KM00....
[0x004a402c]: 0x31304d4b 0x00000000 KM01....
[0x004a4034]: 0x30415352 0x00000000 RSA0....
[0x004a403c]: 0x30534541 0x00000000 AES0....
[0x004a4044]: 0x414b5046 0x00000000 FPKA....
[0x004a404c]: 0x30534544 0x00000000 DES0....
[0x004a4054]: 0x34435241 0x00000000 ARC4....
[0x004a405c]: 0x30474e52 0x00000000 RNG0....
[0x004a4064]: 0x48545541 0x00000020 AUTH ...
[0x004a406c]: 0x30304745 0x00000000 EG00....
[0x004a4074]: 0x31304745 0x00000000 EG01....
[0x004a407c]: 0x554d4d53 0x00000000 SMMU....
[0x004a4084]: 0x32304d4b 0x00000000 KM02....
[0x004a408c]: 0x4c445453 0x00000000 STDL....
[0x004a4094]: 0x30415344 0x00000000 DSA0....
[0x004a409c]: 0x31415344 0x00000000 DSA1....
[0x004a40a4]: 0x30304844 0x00000000 DH00....
[0x004a40ac]: 0x43414d48 0x00000000 HMAC....
[0x004a40b4]: 0x30304d4c 0x00000000 LM00....
[0x004a40bc]: 0x30414d44 0x00000000 DMA0....
[0x004a40c4]: 0x30504453 0x00000000 SDP0....
[0x004a40cc]: 0x30434345 0x00000000 ECC0....
[0x004a40d4]: 0x31434345 0x00000000 ECC1....

!!!!!!!!!!
For reset reason, refer to src/common/include/sec_reset.h
HW_Reset_Type      0x00000000   Reason             0x00000013  SEC_RESET_?
LR_Abort           0x008160fc   RegistersBackup    0x004a0ac8
XFAR               0x00000000   XFSR               0x00000000
ScmPlatformStatus  0x00000000   SecErrorFuncStatus 0x00000000
SdpError           0x00000000
R0=     00000013
R1=     00000001
R2=     004a0ac8
R3=     00000080
R4=     0081041d
R5=     80000093
R6=     00000000
R7=     00000000
R8=     00000000
R9=     004abd0c
R10=    4037fc64
R11=    00041494
R12=    00000000

svc:    R13=004A0AA8, R14=004AA6D5, SPSR=00000000
abt:    R13=004A1100, R14=00000000, SPSR=00000000
sys:    R13=00000000, R14=00000000
!!!!!!!!!!

we are not sure what went wrong
can any one guide us on same?

Thanks