Secure Boot on iMX8ULP

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

Secure Boot on iMX8ULP

2,015 Views
ksingh
Contributor I

I am following the guide from uboot-imx to implement Secure Boot, and after I have fused the SRK Hash (before closing the board), I see two messages after doing `ahab_status` within u-boot.

IPC = MU RTD (0x1) 
CMD = ELE_OEM_CNTN_AUTH_REQ (0x87)
IND = ELE_NO_AUTHENTICATION_FAILURE_IND (0xEE)
STA = ELE_SUCCESS_IND (0xD6)

IPC = MU APD (0x2)
CMD = ELE_OEM_CNTN_AUTH_REQ (0x87)
IND = ELE_NO_AUTHENTICATION_FAILURE_IND (0xEE)
STA = ELE_SUCCESS_IND (0xD6)

 

I can't figure out why I am getting these messages- has anyone else run into this issue or knows what it means and how to go about it? For context I have pasted my CST setup below for the iMX8ULP according to the CST User Guide.

 ./ahab_pki_tree.sh 
-existing-ca n
-kt ecc
-kl p384
-da sha384
-duration 10
-srk-ca n

../linux64/bin/srktool
-a 1
-d sha256
-s sha384
-t SRK1234table.bin
-e SRK1234fuse.bin
-f 1
-c <path_to_crts>
 

 

Labels (2)
0 Kudos
Reply
3 Replies

1,959 Views
Harvey021
NXP TechSupport
NXP TechSupport

Already reply back in another ticket from you, please reply there.

 

Regards

Harvey

0 Kudos
Reply

1,414 Views
oliben
Contributor II

Hello Harvey,

 

I have been unable to find your reply on this other ticket, and I am running into the same issue on i.MX93, though it appears the IPC mechanism in my case is "MU APD", not "MU RTD":

0x0287eed6
IPC = MU APD (0x2)
CMD = ELE_OEM_CNTN_AUTH_REQ (0x87)
IND = ELE_NO_AUTHENTICATION_FAILURE_IND (0xEE)
STA = ELE_SUCCESS_IND (0xD6)

0x0287eed6
IPC = MU APD (0x2)
CMD = ELE_OEM_CNTN_AUTH_REQ (0x87)
IND = ELE_NO_AUTHENTICATION_FAILURE_IND (0xEE)
STA = ELE_SUCCESS_IND (0xD6)

 

Could you please explain why I am seeing these events and how to interpret the various fields?

0 Kudos
Reply

1,350 Views
oliben
Contributor II

OK, I think I might have found the answer you were referring to, although it was not in one of ksingh's posts:

ELE_NO_AUTHENTICATION_FAILURE_IND 

appears to indicate that the container is not signed.

I am guessing that the status (STA) is nevertheless

ELE_SUCCESS_IND

because that is not a fatal error, as the system can boot even without authentication because it is not locked.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2104533%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESecure%20Boot%20on%20iMX8ULP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2104533%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20following%20the%20guide%20from%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fuboot-imx%2Fblob%2Flf_v2024.04%2Fdoc%2Fimx%2Fahab%2Fguides%2Fmx8ulp_9x_secure_boot.txt%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Euboot-imx%3C%2FA%3E%26nbsp%3Bto%20implement%20Secure%20Boot%2C%20and%20after%20I%20have%20fused%20the%20SRK%20Hash%20(before%20closing%20the%20board)%2C%20I%20see%20two%20messages%20after%20doing%20%60ahab_status%60%20within%20u-boot.%3C%2FP%3E%3CPRE%3E%3CSPAN%3EIPC%20%3D%20MU%20RTD%20(0x1)%20%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ECMD%20%3D%20ELE_OEM_CNTN_AUTH_REQ%20(0x87)%20%3CBR%20%2F%3EIND%20%3D%20ELE_NO_AUTHENTICATION_FAILURE_IND%20(0xEE)%20%3CBR%20%2F%3ESTA%20%3D%20ELE_SUCCESS_IND%20(0xD6)%20%3CBR%20%2F%3E%3CBR%20%2F%3EIPC%20%3D%20MU%20APD%20(0x2)%20%3CBR%20%2F%3ECMD%20%3D%20ELE_OEM_CNTN_AUTH_REQ%20(0x87)%20%3CBR%20%2F%3EIND%20%3D%20ELE_NO_AUTHENTICATION_FAILURE_IND%20(0xEE)%20%3CBR%20%2F%3ESTA%20%3D%20ELE_SUCCESS_IND%20(0xD6)%3C%2FSPAN%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EI%20can't%20figure%20out%20why%20I%20am%20getting%20these%20messages-%20has%20anyone%20else%20run%20into%20this%20issue%20or%20knows%20what%20it%20means%20and%20how%20to%20go%20about%20it%3F%20For%20context%20I%20have%20pasted%20my%20CST%20setup%20below%20for%20the%20iMX8ULP%20according%20to%20the%20CST%20User%20Guide.%3C%2FP%3E%3CPRE%3E%26nbsp%3B%3CSPAN%3E.%2Fahab_pki_tree.sh%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-existing-ca%20n%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-kt%20ecc%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-kl%20p384%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-da%20sha384%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-duration%2010%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-srk-ca%20n%20%3CBR%20%2F%3E%3CBR%20%2F%3E..%2Flinux64%2Fbin%2Fsrktool%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-a%201%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-d%20sha256%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-s%20sha384%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-t%20SRK1234table.bin%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-e%20SRK1234fuse.bin%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-f%201%20%3CBR%20%2F%3E%20%20%20%20%20%20%20%20%20%20%20-c%20%3CPATH_TO_CRTS%3E%20%3C%2FPATH_TO_CRTS%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FPRE%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2104533%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX8ULP%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2193328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Secure%20Boot%20on%20iMX8ULP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2193328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOK%2C%20I%20think%20I%20might%20have%20found%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors%2FError-in-SRK-table-key-generated-from-IMX-CST-TOOL-NEW%2Fm-p%2F2127343%2Fhighlight%2Ftrue%23M238928%22%20target%3D%22_self%22%3Ethe%20answer%3C%2FA%3E%20you%20were%20referring%20to%2C%20although%20it%20was%20not%20in%20one%20of%20ksingh's%20posts%3A%3C%2FP%3E%3CPRE%3E%3CSPAN%3EELE_NO_AUTHENTICATION_FAILURE_IND%3C%2FSPAN%3E%26nbsp%3B%3C%2FPRE%3E%3CP%3Eappears%20to%20indicate%20that%20the%20container%20is%20not%20signed.%3C%2FP%3E%3CP%3EI%20am%20guessing%20that%20the%20status%20(STA)%20is%20nevertheless%3C%2FP%3E%3CPRE%3E%3CSPAN%3EELE_SUCCESS_IND%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3Ebecause%20that%20is%20not%20a%20fatal%20error%2C%20as%20the%20system%20can%20boot%20even%20without%20authentication%20because%20it%20is%20not%20locked.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2192789%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Secure%20Boot%20on%20iMX8ULP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2192789%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Harvey%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20have%20been%20unable%20to%20find%20your%20reply%20on%20this%20other%20ticket%2C%20and%20I%20am%20running%20into%20the%20same%20issue%20on%20i.MX93%2C%20though%20it%20appears%20the%20IPC%20mechanism%20in%20my%20case%20is%20%22MU%20APD%22%2C%20not%20%22MU%20RTD%22%3A%3C%2FP%3E%3CP%3E0x0287eed6%3CBR%20%2F%3EIPC%20%3D%20MU%20APD%20(0x2)%3CBR%20%2F%3ECMD%20%3D%20ELE_OEM_CNTN_AUTH_REQ%20(0x87)%3CBR%20%2F%3EIND%20%3D%20ELE_NO_AUTHENTICATION_FAILURE_IND%20(0xEE)%3CBR%20%2F%3ESTA%20%3D%20ELE_SUCCESS_IND%20(0xD6)%3C%2FP%3E%3CP%3E0x0287eed6%3CBR%20%2F%3EIPC%20%3D%20MU%20APD%20(0x2)%3CBR%20%2F%3ECMD%20%3D%20ELE_OEM_CNTN_AUTH_REQ%20(0x87)%3CBR%20%2F%3EIND%20%3D%20ELE_NO_AUTHENTICATION_FAILURE_IND%20(0xEE)%3CBR%20%2F%3ESTA%20%3D%20ELE_SUCCESS_IND%20(0xD6)%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ECould%20you%20please%20explain%20why%20I%20am%20seeing%20these%20events%20and%20how%20to%20interpret%20the%20various%20fields%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2106999%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Secure%20Boot%20on%20iMX8ULP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2106999%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAlready%20reply%20back%20in%20another%20ticket%20from%20you%2C%20please%20reply%20there.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EHarvey%3C%2FP%3E%3C%2FLINGO-BODY%3E