Help Needed with Secure Boot on KW45B41Z-EVK

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

Help Needed with Secure Boot on KW45B41Z-EVK

798 Views
jictannu
Contributor III

Hi all,

I'm in the process of setting up Secure Boot on the KW45B41Z-EVK. I've flashed the CUST_PROD_OEMFW_ENC_SK, CUST_PROD_OEMFW_AUTH_PUK, and kw45b41_nbu_ble_1_9_12_3.sb3 files provided officially. I'm trying to follow the Secure Boot steps from this documentation(https://spsdk-try.readthedocs.io/en/master/examples/kw45xx_k32w1xx/kw45xx_k32w1xx_secure_boot.html), but I'm facing a couple of hurdles:

1. The documentation requires multiple .pub files, but I only found .pem files in AN13883SW, with no .pub files present. How do I generate the necessary .pub files? Also, will these keys match the official ones if I follow the key preparation process?

2. The chip is in OEM Open state at the moment. Is there a method to verify whether the CM33 image authentication has been completed successfully?

Any assistance or pointers would be greatly appreciated. Thanks!

Tags (1)
0 Kudos
Reply
6 Replies

686 Views
jictannu
Contributor III

 

Hi @Ricardo_Zamora 

Following the steps in section 5.1, I noticed that the SB3KDK generated in the `sb3kdk.txt` file is inconsistent with the SB3KDK that I have already programmed into the device. This inconsistency seems problematic. How can I ensure that the generated keys match the ones already burned into the device to successfully carry out the Secure Boot testing?

Looking forward to your reply and assistance.

Best regards,

jictannu

0 Kudos
Reply

770 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Could you please confirm that you are following the AN13883SW?

 

Using the "5.1. Generating OEM Keys & Certificates " you can have both, .pub and .pem.

 

Regards,

Ricardo

0 Kudos
Reply

758 Views
jictannu
Contributor III

Hi Ricardo,

Thank you for your input. I've already programmed the device with the official SB3KDK and RoTKTH. However, I'm concerned that if I generate new keys following the "5.1. Generating OEM Keys & Certificates" section, the resulting SB3KDK would be different from the one I've already flashed. Would this not lead to an inconsistency, and can authentication still be successful in this case?

Best regards,

jictannu

0 Kudos
Reply

746 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello jictannu,

 

KW45 EVK fuses are pre-programmed with generic keys for ease of use in development. You can still follow this document with an EVK, but it is not possible to program its fuses. For an EVK, NXP SDK Keys (available in the attached zip file) should be used to generate secure binaries.

 

Best Regards,

Ricardo

0 Kudos
Reply

741 Views
jictannu
Contributor III

Hi Ricardo,

Just as I initially asked, the documentation for generating secure binaries requires .pub files, but these are not provided in AN13883SW. If I follow the document's steps to regenerate the keys, they will certainly not match what I've already programmed into the fuse, right? So, how should I proceed to test Secure Boot on KW45 EVK?

I appreciate your guidance on this matter.

Best regards,

jictannu

0 Kudos
Reply

694 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

You just need to use the pem keys for the EVK, and follow the rest of the document.

 

Just omit the 5.1.

 

Regards,

Ricardo

0 Kudos
Reply