How to write OTPMK on wandboard using C++ code

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

How to write OTPMK on wandboard using C++ code

907 Views
vikas_sh1
Contributor I

Hi All,

I need to write the OTPMK on wandboard using c++ code on evaluation board. can anyone help me how we can write this on board.

BR

Vikas Sharma

Labels (1)
0 Kudos
3 Replies

585 Views
Yuri
NXP Employee
NXP Employee

From the "i.MX_6_Linux_High_Assurance_Boot_(HAB)_User's_Guide.pdf" :

On production parts, the OTPMK are be burned by Freescale prior to shipping the device.

The value burned by Freescale is random and not recorded. The intent of the

OTPMK is to be a secret key that is only known to CAAM so the value

below is only meant for testing purposes. In order to use HAB, these fuses

should be programmed. One can determine if a valid OTPMK has been

burned by checking the OTPMK_ZERO bit in the SNVS_HP Status Register.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

585 Views
vikas_sh1
Contributor I

Thank Yuri.

If that is the case then where can we write the Keys?

If we want to use the ZMK (Zeroizable Master Key), and a security event happens (erasing the key) can it be re-programmed from software? How can we use ZMK.

BR

Vikas Sharma

0 Kudos

585 Views
Yuri
NXP Employee
NXP Employee

The following may be helpful.i.MX6 CAAM : sm_test.c in 3.0.35 kernel broken

Regards,

Yuri.

0 Kudos