Can you provide the script to sign the OTA image?

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

Can you provide the script to sign the OTA image?

402 Views
shengs
Contributor II

i.MX-RT1180 MCUXpresso-IDE MCUXpresso-SDK MCUBOOT 

Hi,  I am evaluating the MCUBOOT example, and need your help to provide the script to sign the OTA image.

MCUXpresso IDE v11.10.0

MIMXRT1180-EVK board (SCH-50577 REV C3)

SDK v2.16.000

I import "evkmimxrt1180_mcuboot_opensource_cm33" and "evkmimxrt1180_ota_mcuboot_server_enet_cm33" using default settings.

I tried several time refer to the readme.md, but failed to load OTA image.

0 Kudos
Reply
5 Replies

322 Views
BrettLee
Contributor I

To sign the OTA image in your MCUBOOT project, locate the sign_script.py in the MCUBOOT tools directory. This script is used to generate the signed image. Follow the detailed steps in the readme.md file to ensure proper usage. If issues persist, verify the settings in your project to match those required by the script and MCUBOOT configuration.

Best Wishes dgme paystub
0 Kudos
Reply

287 Views
shengs
Contributor II

Thanks. But I can not find sign_script.py.

0 Kudos
Reply

337 Views
shengs
Contributor II

Solved by local FAE.

0 Kudos
Reply

396 Views
shengs
Contributor II

Which *.pem file does the "evkmimxrt1180_mcuboot_opensource_cm33" used?

Which *.pem file should the imgtool.py use?

Below is my script. I copied "mcuboot_opensource" from SDK to "workspace\evkmimxrt1180_ota_mcuboot_server_enet_cm33\scripts"

python imgtool.py sign --key ../enc-rsa2048-priv.pem --align 4 --header-size 0x400 --pad-header --slot-size 0x200000 --version "2.0" ..\..\..\Release/evkmimxrt1180_ota_mcuboot_server_enet_cm33.bin ..\..\..\Release/evkmimxrt1180_ota_mcuboot_server_enet_cm33_SIGNED.bin

signed successfully.

shengs_0-1723453542849.png

Write it to board with start address 0x28040000.

shengs_5-1723453823376.png

But MCUBOOT reports "Unable to find bootable image".

shengs_4-1723453635739.png

 

0 Kudos
Reply

68 Views
Sam_Gao
NXP Employee
NXP Employee

Hi  @shengs 

My apologies for the delayed response, Please update if need.

It seems this issue was fixed from  Failed in building signed application binary

 

0 Kudos
Reply