SPSDK OTFAD for mx93

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

SPSDK OTFAD for mx93

Jump to solution
4,047 Views
pilotnite
Contributor III

Hello All, 

This is my first time playing with spsdk tool for i.mx93 and getting following error: 

(spsdk-venv) [10/18/24 10:27:01] -> spsdk -> nxpimage otfad export -i 1 -c mx93_otfad.yaml         

ERROR:SPSDK: The UID:otfad1_key is not found in loaded registers for mx93 device.

 

I don't see any field "otfad1_key" in YAML file, here is my YAML template: 

(spsdk-venv) [10/18/24 10:02:31] ->  spsdk -> cat mx93_otfad.yaml

# ============================  On-The-Fly AES decryption Configuration template for mx93.  ============================

 

 

# -------------------------------------------------------- Note --------------------------------------------------------

# Is important to use physical addresses (non-secure) in settings of OTFAD to proper run the decryption on device.

# For example:

#   In case of using FlexSPI2 the secure base address address is 0x1400_0000. But in setting of the OTFAD use

# 0x0400_0000 as a base address.

#   The code must be still linked on secure base address 0x1400_0000 to proper run of OTFAD hardware.

 

#   Same is for FlexSPI1, but instead of 0x3800_0000 base address, the 0x2800_0000 must be used in OTFAD configuration.

# ======================================================================================================================

#                                                  == Basic Settings ==                                                 

# ======================================================================================================================

# ------------------------------------------===== MCU family [Required] =====-------------------------------------------

# Description: MCU family name.

# Possible options: <mx93, rt1010, rt116x, rt117x, rt118x, rt5xx, rt6xx>

family: mx93

# --------------------------------------===== OTFAD output folder [Required] =====--------------------------------------

# Description: Path to directory where the OTFAD output will be generated

output_folder: otfad_output

# ---------------------------------===== Output binary image file name [Optional] =====---------------------------------

# Description: Filename of the output image containing keyblobs and encrypted data blobs without file extension (.bin

# will be appended)

output_name: otfad_whole_image

# ---------------------------------------===== Keyblob file name [Optional] =====---------------------------------------

# Description: Filename of the keyblob without file extension (.bin will be appended)

keyblob_name: OTFAD_Table

# ----------------------------------------===== Encrypted name [Optional] =====-----------------------------------------

# Description: filename of the encrypted datablobs without file extension (.bin will be appended)

encrypted_name: encrypted_blob

# --------------------------------------===== Generate readme.txt [Optional] =====--------------------------------------

# Description: Readme file contains information about image layout

generate_readme: true

# ======================================================================================================================

#                                                  == OTFAD Settings ==                                                 

# ======================================================================================================================

# ----------------------------------------------===== KEK [Required] =====----------------------------------------------

# Description: OTFAD Key Encryption Key to encrypt OTFAD table. Might be provided as a path to binary file containing

# KEK or as a string or number

# kek: my_secret_kek.bin

kek: '3b910ece1b46502e0039d4deedcdee5e'

# ---------------------------------===== OTFAD key blobs table address [Required] =====---------------------------------

# Description: The base address of key blob table, it should be aligned to 1 KB (1024 B)

otfad_table_address: '0x08000000'

# ----------------------------------------===== Data blobs list [Optional] =====----------------------------------------

# Description: List of all data blobs included in this key blob

data_blobs:

  -

    # -----------------------------------===== Plain Text data blob [Required] =====------------------------------------

    # Description: Path to binary file with plain text data to be encrypted if desired

    # data: my_data.bin

    data: imx-boot--fspi.bin-flash_singleboot

    # -------------------------------------===== Data blob address [Required] =====-------------------------------------

    # Description: Data blob address, it could be omitted if data blob starts at start_address

    address: '0x08001000'

# --------------------------------===== List of Key Blobs used by OTFAD [Required] =====--------------------------------

# Description: The list of definition of individual key blobs including plain data. Add other array items as you need

# and device allows

key_blobs:

  -

    # ------------------------------------------===== AES key [Required] =====------------------------------------------

    # Description: AES key for the key blob

    aes_key: '0xB1A0C56AF31E98CD6936A79D9E6F829D'

    # -------------------------------------===== AES Counter value [Required] =====-------------------------------------

    # Description: AES counter value for the key blob

    aes_ctr: '0x5689fab8b4bfb264'

    # ------------------------------===== Start address of key blob data [Required] =====-------------------------------

    # Description: Start address of key blob data, it should be aligned to 1 KB (1024 B)

    start_address: '0x08001000'

    # -------------------------------===== End address of key blob data [Required] =====--------------------------------

    # Description: End address of key blob data, it should be aligned to 1 KB (1024 B)

    end_address: '0x08010000'

    # --------------------------------===== AES decryption enable flag [Optional] =====---------------------------------

    # Description: For accesses hitting in a valid context, this bit indicates if the fetched data is to be decrypted or

    # simply bypassed

    aes_decryption_enable: true

    # ----------------------------------------===== Valid flag [Optional] =====-----------------------------------------

    # Description: This field signals if the context is valid or not

    valid: true

    # --------------------------------------===== Read Only flag [Optional] =====---------------------------------------

    # Description: This field signals if the context is Read only or not

    read_only: true

 

Any help will be highly appreciated. 

Cheers,

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
2,279 Views
nxa17177
NXP Employee
NXP Employee

Hello @pilotnite , have you tried using latest SPSDK? Let me know if you still have this issue in the latest spsdk version. 

View solution in original post

0 Kudos
Reply
8 Replies
3,993 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you share what are you testing?
Is it some of the examples for i.MX93?

Also, if you could share the actual commands/method you are using when getting the error would help a lot.

Thank you,
Best regards/Saludos,
Aldo.

0 Kudos
Reply
3,986 Views
pilotnite
Contributor III

Hi @AldoG,

Thank you for your feedback.

Our goal is to encrypt the bootloader and boot it from SPI flash on the i.MX93. Initially, we tried using the "otfad_tool," but we realized this tool is designed for the i.MX7 and is incompatible with the i.MX93 due to differences in the fuse maps.

We were then advised to use the SPSDK tool: https://spsdk.readthedocs.io/en/latest/. However, it lacks information specific to the i.MX93. Recently, after updating the SPSDK tool, I noticed that the family "mimx9352" was added, replacing the previous "mx93." I followed the instructions to set up the SPSDK tool and generated the template file for the "mimx9352" family.

Here’s a summary of the steps I followed:
(spsdk-venv) ➜ spsdk ➜ nxpimage otfad get-template -f mimx9352 -o mimx9352_otfad-1.yaml
Creating /home/nitesh/Projects/spsdk/mimx9352_otfad.yaml template file.

After editing the template with the location of my binary and KEK blob, I ran the export command:
(spsdk-venv) ➜ spsdk ➜ nxpimage otfad export -i 1 -c mimx9352_otfad.yaml
SPSDKRegsErrorRegisterNotFound: SPSDK: The UID:otfad1_key is not found in loaded registers for mimx9352 device.

I encountered the following error:
SPSDKRegsErrorRegisterNotFound: SPSDK: The UID:otfad1_key is not found in loaded registers for mimx9352 device.

Interestingly, if I change the family name to "rt118x," the tool generates all the necessary binary files and fuse map, but they are for the "rt118x" family, not for the i.MX93.

I would greatly appreciate it if you could share the proper documentation or guidance on using the SPSDK tool for the i.MX93 to avoid this error and proceed with the bootloader encryption.

Thank you for your assistance!





0 Kudos
Reply
3,962 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Then, you may refer to the following documentation:
https://spsdk.readthedocs.io/en/latest/examples/imx93/imx93_ahab_uboot.html

Best regards/Saludos,
Aldo.

0 Kudos
Reply
3,952 Views
pilotnite
Contributor III

@AldoG and to add I need to encrypt the bootloader and not just sign it.

0 Kudos
Reply
3,957 Views
pilotnite
Contributor III

@AldoG 

What I need is this https://spsdk.readthedocs.io/en/latest/apps/nxpimage.html#nxpimage-otfad but it does not work as the script returns error:

(spsdk-venv) [10/18/24 12:07:48] ➜ spsdk ➜ nxpimage otfad export -i 1 -c mimx9352_otfad.yaml
SPSDKRegsErrorRegisterNotFound: SPSDK: The UID:otfad1_key is not found in loaded registers for mimx9352 device.

 

0 Kudos
Reply
4,008 Views
pilotnite
Contributor III

Support, 

 

Any insights will be highly appreciated. 

 

Cheers, 

0 Kudos
Reply
2,280 Views
nxa17177
NXP Employee
NXP Employee

Hello @pilotnite , have you tried using latest SPSDK? Let me know if you still have this issue in the latest spsdk version. 

0 Kudos
Reply
2,237 Views
pilotnite
Contributor III
Hello @nxa17177,
Thank you for your reply... Yes, using latest SPSDK resolved the issues.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1977201%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESPSDK%20OTFAD%20for%20mx93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1977201%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20All%2C%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20my%20first%20time%20playing%20with%20spsdk%20tool%20for%20i.mx93%20and%20getting%20following%20error%3A%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E(spsdk-venv)%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%5B10%2F18%2F24%2010%3A27%3A01%5D%20-%26gt%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3Espsdk%3C%2FSPAN%3E%26nbsp%3B-%26gt%3B%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3Enxpimage%20otfad%20export%20-i%201%20-c%20mx93_otfad.yaml%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EERROR%3ASPSDK%3A%20The%20UID%3Aotfad1_key%20is%20not%20found%20in%20loaded%20registers%20for%20mx93%20device.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3EI%20don't%20see%20any%20field%20%22otfad1_key%22%20in%20YAML%20file%2C%26nbsp%3B%3CSPAN%20class%3D%22%22%3Ehere%20is%20my%20YAML%20template%3A%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E(spsdk-venv)%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%5B10%2F18%2F24%2010%3A02%3A31%5D%20-%26gt%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3Espsdk%3C%2FSPAN%3E%26nbsp%3B-%26gt%3B%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3Ecat%20mx93_otfad.yaml%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%3C%2FSPAN%3EOn-The-Fly%20AES%20decryption%20Configuration%20template%20for%20mx93.%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%3C%2FSPAN%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20--------------------------------------------------------%20Note%20--------------------------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Is%20important%20to%20use%20physical%20addresses%20(non-secure)%20in%20settings%20of%20OTFAD%20to%20proper%20run%20the%20decryption%20on%20device.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20For%20example%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%3C%2FSPAN%3EIn%20case%20of%20using%20FlexSPI2%20the%20secure%20base%20address%20address%20is%200x1400_0000.%20But%20in%20setting%20of%20the%20OTFAD%20use%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%200x0400_0000%20as%20a%20base%20address.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%3C%2FSPAN%3EThe%20code%20must%20be%20still%20linked%20on%20secure%20base%20address%200x1400_0000%20to%20proper%20run%20of%20OTFAD%20hardware.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%3C%2FSPAN%3ESame%20is%20for%20FlexSPI1%2C%20but%20instead%20of%200x3800_0000%20base%20address%2C%20the%200x2800_0000%20must%20be%20used%20in%20OTFAD%20configuration.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%3D%3D%20Basic%20Settings%20%3D%3D%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20------------------------------------------%3D%3D%3D%3D%3D%20MCU%20family%20%5BRequired%5D%20%3D%3D%3D%3D%3D-------------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Description%3A%20MCU%20family%20name.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Possible%20options%3A%20%3CMX93%3E%3C%2FMX93%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Efamily%3A%20mx93%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20--------------------------------------%3D%3D%3D%3D%3D%20OTFAD%20output%20folder%20%5BRequired%5D%20%3D%3D%3D%3D%3D--------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Description%3A%20Path%20to%20directory%20where%20the%20OTFAD%20output%20will%20be%20generated%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eoutput_folder%3A%20otfad_output%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20---------------------------------%3D%3D%3D%3D%3D%20Output%20binary%20image%20file%20name%20%5BOptional%5D%20%3D%3D%3D%3D%3D---------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Description%3A%20Filename%20of%20the%20output%20image%20containing%20keyblobs%20and%20encrypted%20data%20blobs%20without%20file%20extension%20(.bin%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20will%20be%20appended)%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eoutput_name%3A%20otfad_whole_image%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20---------------------------------------%3D%3D%3D%3D%3D%20Keyblob%20file%20name%20%5BOptional%5D%20%3D%3D%3D%3D%3D---------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Description%3A%20Filename%20of%20the%20keyblob%20without%20file%20extension%20(.bin%20will%20be%20appended)%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ekeyblob_name%3A%20OTFAD_Table%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20----------------------------------------%3D%3D%3D%3D%3D%20Encrypted%20name%20%5BOptional%5D%20%3D%3D%3D%3D%3D-----------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Description%3A%20filename%20of%20the%20encrypted%20datablobs%20without%20file%20extension%20(.bin%20will%20be%20appended)%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eencrypted_name%3A%20encrypted_blob%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20--------------------------------------%3D%3D%3D%3D%3D%20Generate%20readme.txt%20%5BOptional%5D%20%3D%3D%3D%3D%3D--------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Description%3A%20Readme%20file%20contains%20information%20about%20image%20layout%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Egenerate_readme%3A%20true%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%3D%3D%20OTFAD%20Settings%20%3D%3D%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20----------------------------------------------%3D%3D%3D%3D%3D%20KEK%20%5BRequired%5D%20%3D%3D%3D%3D%3D----------------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Description%3A%20OTFAD%20Key%20Encryption%20Key%20to%20encrypt%20OTFAD%20table.%20Might%20be%20provided%20as%20a%20path%20to%20binary%20file%20containing%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20KEK%20or%20as%20a%20string%20or%20number%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20kek%3A%20my_secret_kek.bin%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ekek%3A%20'3b910ece1b46502e0039d4deedcdee5e'%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20---------------------------------%3D%3D%3D%3D%3D%20OTFAD%20key%20blobs%20table%20address%20%5BRequired%5D%20%3D%3D%3D%3D%3D---------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Description%3A%20The%20base%20address%20of%20key%20blob%20table%2C%20it%20should%20be%20aligned%20to%201%20KB%20(1024%20B)%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Eotfad_table_address%3A%20'0x08000000'%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20----------------------------------------%3D%3D%3D%3D%3D%20Data%20blobs%20list%20%5BOptional%5D%20%3D%3D%3D%3D%3D----------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Description%3A%20List%20of%20all%20data%20blobs%20included%20in%20this%20key%20blob%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Edata_blobs%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%3C%2FSPAN%3E-%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20-----------------------------------%3D%3D%3D%3D%3D%20Plain%20Text%20data%20blob%20%5BRequired%5D%20%3D%3D%3D%3D%3D------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20Description%3A%20Path%20to%20binary%20file%20with%20plain%20text%20data%20to%20be%20encrypted%20if%20desired%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20data%3A%20my_data.bin%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3Edata%3A%20imx-boot--fspi.bin-flash_singleboot%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20-------------------------------------%3D%3D%3D%3D%3D%20Data%20blob%20address%20%5BRequired%5D%20%3D%3D%3D%3D%3D-------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20Description%3A%20Data%20blob%20address%2C%20it%20could%20be%20omitted%20if%20data%20blob%20starts%20at%20start_address%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3Eaddress%3A%20'0x08001000'%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20--------------------------------%3D%3D%3D%3D%3D%20List%20of%20Key%20Blobs%20used%20by%20OTFAD%20%5BRequired%5D%20%3D%3D%3D%3D%3D--------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20Description%3A%20The%20list%20of%20definition%20of%20individual%20key%20blobs%20including%20plain%20data.%20Add%20other%20array%20items%20as%20you%20need%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%23%20and%20device%20allows%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Ekey_blobs%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%3C%2FSPAN%3E-%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20------------------------------------------%3D%3D%3D%3D%3D%20AES%20key%20%5BRequired%5D%20%3D%3D%3D%3D%3D------------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20Description%3A%20AES%20key%20for%20the%20key%20blob%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3Eaes_key%3A%20'0xB1A0C56AF31E98CD6936A79D9E6F829D'%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20-------------------------------------%3D%3D%3D%3D%3D%20AES%20Counter%20value%20%5BRequired%5D%20%3D%3D%3D%3D%3D-------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20Description%3A%20AES%20counter%20value%20for%20the%20key%20blob%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3Eaes_ctr%3A%20'0x5689fab8b4bfb264'%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20------------------------------%3D%3D%3D%3D%3D%20Start%20address%20of%20key%20blob%20data%20%5BRequired%5D%20%3D%3D%3D%3D%3D-------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20Description%3A%20Start%20address%20of%20key%20blob%20data%2C%20it%20should%20be%20aligned%20to%201%20KB%20(1024%20B)%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3Estart_address%3A%20'0x08001000'%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20-------------------------------%3D%3D%3D%3D%3D%20End%20address%20of%20key%20blob%20data%20%5BRequired%5D%20%3D%3D%3D%3D%3D--------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20Description%3A%20End%20address%20of%20key%20blob%20data%2C%20it%20should%20be%20aligned%20to%201%20KB%20(1024%20B)%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3Eend_address%3A%20'0x08010000'%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20--------------------------------%3D%3D%3D%3D%3D%20AES%20decryption%20enable%20flag%20%5BOptional%5D%20%3D%3D%3D%3D%3D---------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20Description%3A%20For%20accesses%20hitting%20in%20a%20valid%20context%2C%20this%20bit%20indicates%20if%20the%20fetched%20data%20is%20to%20be%20decrypted%20or%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20simply%20bypassed%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3Eaes_decryption_enable%3A%20true%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20----------------------------------------%3D%3D%3D%3D%3D%20Valid%20flag%20%5BOptional%5D%20%3D%3D%3D%3D%3D-----------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20Description%3A%20This%20field%20signals%20if%20the%20context%20is%20valid%20or%20not%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3Evalid%3A%20true%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20--------------------------------------%3D%3D%3D%3D%3D%20Read%20Only%20flag%20%5BOptional%5D%20%3D%3D%3D%3D%3D---------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%23%20Description%3A%20This%20field%20signals%20if%20the%20context%20is%20Read%20only%20or%20not%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3Eread_only%3A%20true%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3EAny%20help%20will%20be%20highly%20appreciated.%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3ECheers%2C%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1977201%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149191%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPSDK%20OTFAD%20for%20mx93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149191%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F99893%22%20target%3D%22_blank%22%3E%40nxa17177%3C%2FA%3E%2C%3CBR%20%2F%3EThank%20you%20for%20your%20reply...%20Yes%2C%20using%20latest%20SPSDK%20resolved%20the%20issues.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2147464%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPSDK%20OTFAD%20for%20mx93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2147464%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233332%22%20target%3D%22_blank%22%3E%40pilotnite%3C%2FA%3E%26nbsp%3B%2C%20have%20you%20tried%20using%20latest%20SPSDK%3F%20Let%20me%20know%20if%20you%20still%20have%20this%20issue%20in%20the%20latest%20spsdk%20version.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1984957%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPSDK%20OTFAD%20for%20mx93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1984957%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F171173%22%20target%3D%22_blank%22%3E%40AldoG%3C%2FA%3E%26nbsp%3Band%20to%20add%20I%20need%20to%20encrypt%20the%20bootloader%20and%20not%20just%20sign%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1984765%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPSDK%20OTFAD%20for%20mx93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1984765%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F171173%22%20target%3D%22_blank%22%3E%40AldoG%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20need%20is%20this%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fspsdk.readthedocs.io%2Fen%2Flatest%2Fapps%2Fnxpimage.html%23nxpimage-otfad%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fspsdk.readthedocs.io%2Fen%2Flatest%2Fapps%2Fnxpimage.html%23nxpimage-otfad%3C%2FA%3E%26nbsp%3Bbut%20it%20does%20not%20work%20as%20the%20script%20returns%20error%3A%3C%2FP%3E%3CP%3E(spsdk-venv)%20%5B10%2F18%2F24%2012%3A07%3A48%5D%20%E2%9E%9C%20spsdk%20%E2%9E%9C%20nxpimage%20otfad%20export%20-i%201%20-c%20mimx9352_otfad.yaml%3CBR%20%2F%3ESPSDKRegsErrorRegisterNotFound%3A%20SPSDK%3A%20The%20UID%3Aotfad1_key%20is%20not%20found%20in%20loaded%20registers%20for%20mimx9352%20device.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1983355%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPSDK%20OTFAD%20for%20mx93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1983355%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThen%2C%20you%20may%20refer%20to%20the%20following%20documentation%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fspsdk.readthedocs.io%2Fen%2Flatest%2Fexamples%2Fimx93%2Fimx93_ahab_uboot.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fspsdk.readthedocs.io%2Fen%2Flatest%2Fexamples%2Fimx93%2Fimx93_ahab_uboot.html%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1981175%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPSDK%20OTFAD%20for%20mx93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1981175%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F171173%22%20target%3D%22_blank%22%3E%40AldoG%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20feedback.%3C%2FP%3E%3CP%3EOur%20goal%20is%20to%20encrypt%20the%20bootloader%20and%20boot%20it%20from%20SPI%20flash%20on%20the%20i.MX93.%20Initially%2C%20we%20tried%20using%20the%20%22otfad_tool%2C%22%20but%20we%20realized%20this%20tool%20is%20designed%20for%20the%20i.MX7%20and%20is%20incompatible%20with%20the%20i.MX93%20due%20to%20differences%20in%20the%20fuse%20maps.%3C%2FP%3E%3CP%3EWe%20were%20then%20advised%20to%20use%20the%20SPSDK%20tool%3A%20%3CA%20href%3D%22https%3A%2F%2Fspsdk.readthedocs.io%2Fen%2Flatest%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fspsdk.readthedocs.io%2Fen%2Flatest%2F%3C%2FA%3E.%20However%2C%20it%20lacks%20information%20specific%20to%20the%20i.MX93.%20Recently%2C%20after%20updating%20the%20SPSDK%20tool%2C%20I%20noticed%20that%20the%20family%20%22mimx9352%22%20was%20added%2C%20replacing%20the%20previous%20%22mx93.%22%20I%20followed%20the%20instructions%20to%20set%20up%20the%20SPSDK%20tool%20and%20generated%20the%20template%20file%20for%20the%20%22mimx9352%22%20family.%3C%2FP%3E%3CP%3EHere%E2%80%99s%20a%20summary%20of%20the%20steps%20I%20followed%3A%3CBR%20%2F%3E(spsdk-venv)%20%E2%9E%9C%20spsdk%20%E2%9E%9C%20nxpimage%20otfad%20get-template%20-f%20mimx9352%20-o%20mimx9352_otfad-1.yaml%3CBR%20%2F%3ECreating%20%2Fhome%2Fnitesh%2FProjects%2Fspsdk%2Fmimx9352_otfad.yaml%20template%20file.%3CBR%20%2F%3E%3CBR%20%2F%3EAfter%20editing%20the%20template%20with%20the%20location%20of%20my%20binary%20and%20KEK%20blob%2C%20I%20ran%20the%20export%20command%3A%3CBR%20%2F%3E(spsdk-venv)%20%E2%9E%9C%20spsdk%20%E2%9E%9C%20nxpimage%20otfad%20export%20-i%201%20-c%20mimx9352_otfad.yaml%3CBR%20%2F%3ESPSDKRegsErrorRegisterNotFound%3A%20SPSDK%3A%20The%20UID%3Aotfad1_key%20is%20not%20found%20in%20loaded%20registers%20for%20mimx9352%20device.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20encountered%20the%20following%20error%3A%3CBR%20%2F%3ESPSDKRegsErrorRegisterNotFound%3A%20SPSDK%3A%20The%20UID%3Aotfad1_key%20is%20not%20found%20in%20loaded%20registers%20for%20mimx9352%20device.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EInterestingly%2C%20if%20I%20change%20the%20family%20name%20to%20%22rt118x%2C%22%20the%20tool%20generates%20all%20the%20necessary%20binary%20files%20and%20fuse%20map%2C%20but%20they%20are%20for%20the%20%22rt118x%22%20family%2C%20not%20for%20the%20i.MX93.%3C%2FP%3E%3CP%3EI%20would%20greatly%20appreciate%20it%20if%20you%20could%20share%20the%20proper%20documentation%20or%20guidance%20on%20using%20the%20SPSDK%20tool%20for%20the%20i.MX93%20to%20avoid%20this%20error%20and%20proceed%20with%20the%20bootloader%20encryption.%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20assistance!%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1980623%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPSDK%20OTFAD%20for%20mx93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1980623%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3ECould%20you%20share%20what%20are%20you%20testing%3F%3CBR%20%2F%3EIs%20it%20some%20of%20the%20examples%20for%20i.MX93%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%2C%20if%20you%20could%20share%20the%20actual%20commands%2Fmethod%20you%20are%20using%20when%20getting%20the%20error%20would%20help%20a%20lot.%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%2C%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1978234%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPSDK%20OTFAD%20for%20mx93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1978234%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESupport%2C%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAny%20insights%20will%20be%20highly%20appreciated.%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ECheers%2C%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E