ahab_close error

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

ahab_close error

807 Views
dd_neu
Contributor I

I'm getting the following error when trying to close my board. What would cause this error?

 

=> ahab_status
Lifecycle: 0x00000008, OEM Open


        No Events Found!
=> ahab_close
Warning: Please ensure your sample is in NXP closed state, OEM SRK hash has been fused, 
         and you are able to boot a signed image successfully without any SECO events reported.
         If not, your sample will be unrecoverable.

Really perform this operation? <y/N>
y
Error: ele_forward_lifecycle: ret -5, life_cycle 0x8, response 0xbb29
Error in forward lifecycle to OEM closed
exit not allowed from main input shell.

I also tried using nxpele with similar results.

~/src/imx-yocto-bsp-secureboot/build/tmp/deploy/images/imx8ulp-lpddr4-evk/imx-boot-tools/files$ sudo /home/ddresser/src/venv/bin/nxpele -f mimx8ulp forward-lifecycle-update -l OEM_CLOSED 
[sudo] password for ddresser:                                                                                                                                                                                     
ERROR:UUUState:Command FB:UCMD ele_message 0x80000000 0x20000 0602951708000000 failed with error code -1 (477ms since start, spsdk_uuu.py:106)                                                                    
SPSDKError: SPSDK: ELE Message failed.                                                                                                                                                                            
Command:         ELE_FWD_LIFECYCLE_UP_REQ - (0x95)                                                                                                                                                                
Command words:   2                                                                                                                                                                                                
Command data:    False                                                                                                                                                                                            
Response words:  2                                                                                                                                                                                                
Response data:   False                                                                                                                                                                                            
Response status: Failure                                                                                                                                                                                          
   Response indication: ELE_AUTH_SKIPPED_OR_FAILED_FAILURE_IND - (0xbb)                                                                                                                                           
   Response abort code: 0x0 
0 Kudos
Reply
2 Replies

350 Views
devanlec
Contributor I

Hi, I'm seeing the same error code when attempting to forward the lifecycle from OEM open to OEM closed on an i.MX93 from userspace.

My current sequence is:

  1. Flash a secure boot image following the NXP security reference design with AHAB enabled and the kernel image in a signed container.
  2. From userspace, burn in SRKH efuses using the imx-secure-enclave library
  3. Attempt to forward the lifecycle to OEM closed now that the SRKH efuses are burned in.
    At this point, I see the 0xbb29 error and I have to reboot before I can successfully forward the lifecycle.

Is there a process that would allow burning in the SRKH efuses and forwarding the lifecycle in a single boot, or is it inherently necessary to reboot between these steps (maybe to clear the ELE lifecycle events from the initial boot without the SRKH fuses burned)?

0 Kudos
Reply

766 Views
Harvey021
NXP TechSupport
NXP TechSupport

I've replied back to you in system email. 

Please let me know if you need further support.

 

Regards

Harvey

%3CLINGO-SUB%20id%3D%22lingo-sub-2053283%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eahab_close%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2053283%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20getting%20the%20following%20error%20when%20trying%20to%20close%20my%20board.%20What%20would%20cause%20this%20error%3F%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%3E%3D%26gt%3B%20ahab_status%0ALifecycle%3A%200x00000008%2C%20OEM%20Open%0A%0A%0A%20%20%20%20%20%20%20%20No%20Events%20Found!%0A%3D%26gt%3B%20ahab_close%0AWarning%3A%20Please%20ensure%20your%20sample%20is%20in%20NXP%20closed%20state%2C%20OEM%20SRK%20hash%20has%20been%20fused%2C%20%0A%20%20%20%20%20%20%20%20%20and%20you%20are%20able%20to%20boot%20a%20signed%20image%20successfully%20without%20any%20SECO%20events%20reported.%0A%20%20%20%20%20%20%20%20%20If%20not%2C%20your%20sample%20will%20be%20unrecoverable.%0A%0AReally%20perform%20this%20operation%3F%20%3CY%3E%0Ay%0AError%3A%20ele_forward_lifecycle%3A%20ret%20-5%2C%20life_cycle%200x8%2C%20response%200xbb29%0AError%20in%20forward%20lifecycle%20to%20OEM%20closed%0Aexit%20not%20allowed%20from%20main%20input%20shell.%3C%2FY%3E%3C%2FPRE%3E%3CP%3EI%20also%20tried%20using%20nxpele%20with%20similar%20results.%3C%2FP%3E%3CPRE%3E~%2Fsrc%2Fimx-yocto-bsp-secureboot%2Fbuild%2Ftmp%2Fdeploy%2Fimages%2Fimx8ulp-lpddr4-evk%2Fimx-boot-tools%2Ffiles%24%20sudo%20%2Fhome%2Fddresser%2Fsrc%2Fvenv%2Fbin%2Fnxpele%20-f%20mimx8ulp%20forward-lifecycle-update%20-l%20OEM_CLOSED%20%0A%5Bsudo%5D%20password%20for%20ddresser%3A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0AERROR%3AUUUState%3ACommand%20FB%3AUCMD%20ele_message%200x80000000%200x20000%200602951708000000%20failed%20with%20error%20code%20-1%20(477ms%20since%20start%2C%20spsdk_uuu.py%3A106)%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0ASPSDKError%3A%20SPSDK%3A%20ELE%20Message%20failed.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0ACommand%3A%20%20%20%20%20%20%20%20%20ELE_FWD_LIFECYCLE_UP_REQ%20-%20(0x95)%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0ACommand%20words%3A%20%20%202%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0ACommand%20data%3A%20%20%20%20False%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0AResponse%20words%3A%20%202%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0AResponse%20data%3A%20%20%20False%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0AResponse%20status%3A%20Failure%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20Response%20indication%3A%20ELE_AUTH_SKIPPED_OR_FAILED_FAILURE_IND%20-%20(0xbb)%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20Response%20abort%20code%3A%200x0%20%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2171189%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ahab_close%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2171189%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20I'm%20seeing%20the%20same%20error%20code%20when%20attempting%20to%20forward%20the%20lifecycle%20from%20OEM%20open%20to%20OEM%20closed%20on%20an%20i.MX93%20from%20userspace.%3CBR%20%2F%3E%3CBR%20%2F%3EMy%20current%20sequence%20is%3A%3C%2FP%3E%3COL%3E%3CLI%3EFlash%20a%20secure%20boot%20image%20following%20the%20NXP%20security%20reference%20design%20with%20AHAB%20enabled%20and%20the%20kernel%20image%20in%20a%20signed%20container.%3C%2FLI%3E%3CLI%3EFrom%20userspace%2C%20burn%20in%20SRKH%20efuses%20using%20the%20imx-secure-enclave%20library%3C%2FLI%3E%3CLI%3EAttempt%20to%20forward%20the%20lifecycle%20to%20OEM%20closed%20now%20that%20the%20SRKH%20efuses%20are%20burned%20in.%3CBR%20%2F%3EAt%20this%20point%2C%20I%20see%20the%200xbb29%20error%20and%20I%20have%20to%20reboot%20before%20I%20can%20successfully%20forward%20the%20lifecycle.%3C%2FLI%3E%3C%2FOL%3E%3CP%3EIs%20there%20a%20process%20that%20would%20allow%20burning%20in%20the%20SRKH%20efuses%20and%20forwarding%20the%20lifecycle%20in%20a%20single%20boot%2C%20or%20is%20it%20inherently%20necessary%20to%20reboot%20between%20these%20steps%20(maybe%20to%20clear%20the%20ELE%20lifecycle%20events%20from%20the%20initial%20boot%20without%20the%20SRKH%20fuses%20burned)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2055124%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ahab_close%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2055124%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI've%20replied%20back%20to%20you%20in%20system%20email.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20let%20me%20know%20if%20you%20need%20further%20support.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EHarvey%3C%2FP%3E%3C%2FLINGO-BODY%3E