MCUBoot example

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

MCUBoot example

135 Views
mastupristi
Senior Contributor I

Hi,

I tried mcuboot_opensource and ota_mcuboot_basic examples.

For educational purposes, I would like to try using unsigned images. I am already able to create an unsigned image with imgtool, but I don't know how to configure the mcuboot example.

Could you please tell me how to do that?

 

regards

Max

Tags (2)
0 Kudos
Reply
2 Replies

76 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @mastupristi 

thank you for your interest! I  just want to let you know that am currently checking this, as currently, I do not have guidelines for doing this. 

Diego

0 Kudos
Reply

57 Views
mastupristi
Senior Contributor I

Hi @diego_charles 

In the meantime, I've made some changes that make this thing work, but I don't know if they're the “right” ones.

file source/sblconfig.h,  commented some lines to disable signatore:

//#define CONFIG_BOOT_SIGNATURE
//#define CONFIG_BOOT_SIGNATURE_TYPE_RSA
//#define CONFIG_BOOT_SIGNATURE_TYPE_RSA_LEN 2048

 

file bootutil/nxp_port/boot.c, modified checks to call  CRYPTO_InitHardware() when 

 

file bootutil/nxp_port/keys.c, commented a line to avoid error if no signature is defined:

#if defined(MCUBOOT_SIGN_RSA)
#include "sign-rsa2048-pub.c"
#elif defined(MCUBOOT_SIGN_EC256)
#include "sign-ecdsa-p256-pub.c"
#else
/* This error assumes that a signature algorithm must be specified;
it does not accept the case where there is no signature. */
//#error "No public key available for given signing algorithm."
#endif

 

Do you think this is the right thing to do?
I propose that we modify the example to support this case as well.

 

regards

Max

0 Kudos
Reply