Application Images with MCUboot (mcuboot_opensource)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Application Images with MCUboot (mcuboot_opensource)

414 次查看
Bhumika18
Contributor I

Hello,

I am currently working with the mcuboot_opensource bootloader example from the NXP SDK on an i.MX RT device. After successfully flashing the MCUboot bootloader, I would like to understand the correct process for flashing the application binary.

I have a few questions regarding this:

  1. After programming the mcuboot_opensource bootloader, how should the application binary be flashed?

    • Which tool is typically used (e.g., MCUXpresso IDE, blhost, or other tools)?

    • Should the application be flashed directly to the primary slot address defined in the flash layout?

  2. How do we sign the application image?

    • Is the signing process done using the imgtool utility?

    • What is the correct command or procedure to generate a signed binary image?

  3. Is image signing mandatory?

    • Will MCUboot boot an unsigned image, or is signing always required?

    • Is there a way to disable signature verification for testing purposes?

I would appreciate any guidance on the correct workflow for flashing and signing application images when using MCUboot in a real project.

Thank you.

0 项奖励
回复
1 回复

203 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @Bhumika18 ,

Thanks for your interest in NXP MIMXRT series!

A1: Which tool is typically used?

Support is provided for IDE, JLink, or other debuggers, as well as for using blhost in serial download mode. The sole purpose is to write the signed image to the designated flash partition. 

  • Should the application be flashed directly to the primary slot address defined in the flash layout?

>> Yes, we need to sign the image as described in the ReadMe before that.

A2: 

  • Is the signing process done using the imgtool utility?

>> Yes, use imgtool. Use the tool included in the SDK rather than the one installed via pip to avoid any issues caused by version mismatches.

  • What is the correct command or procedure to generate a signed binary image?

>> Please refer to the signing commands provided in the ReadMe.

A3:

  • Will MCUboot boot an unsigned image, or is signing always required?

>> Signing is required by default.

  • Is there a way to disable signature verification for testing purposes?

>> Customization requires the customer to thoroughly review the mcuboot_opensource project. I suspect it may provide the relevant configuration options.

Best regards,
Gavin

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2321120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%BF%E7%94%A8%20MCUboot%20(mcuboot_opensource)%20%E7%9A%84%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%98%A0%E5%83%8F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2321120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3C%2FP%3E%3CP%3E%E6%88%91%E7%9B%AE%E5%89%8D%E6%AD%A3%E5%9C%A8i.%20%3CSTRONG%3EMX%20RT%E8%AE%BE%E5%A4%87%E4%B8%8A%E4%BD%BF%E7%94%A8%E6%81%A9%E6%99%BA%E6%B5%A6%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7%E5%8C%85%E4%B8%AD%E7%9A%84mcuboot_opensour%3C%2FSTRONG%3E%20ce%E5%BC%95%E5%AF%BC%E5%8A%A0%E8%BD%BD%E7%A8%8B%E5%BA%8F%E7%A4%BA%E4%BE%8B%E3%80%82%E6%88%90%E5%8A%9F%E5%88%B7%E6%96%B0McuBoot%E5%BC%95%E5%AF%BC%E5%8A%A0%E8%BD%BD%E7%A8%8B%E5%BA%8F%E5%90%8E%EF%BC%8C%E6%88%91%E6%83%B3%E4%BA%86%E8%A7%A3%E5%88%B7%E6%96%B0%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%9A%84%E6%AD%A3%E7%A1%AE%E8%BF%87%E7%A8%8B%E3%80%82%3C%2FP%3E%3CP%3E%E5%AF%B9%E6%AD%A4%EF%BC%8C%E6%88%91%E6%9C%89%E5%87%A0%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%9A%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%3E%E5%AF%B9%20%3CSTRONG%3Emcuboot_opensource%20%E5%BC%95%E5%AF%BC%3C%2FSTRONG%3E%E5%8A%A0%E8%BD%BD%E7%A8%8B%E5%BA%8F%E8%BF%9B%E8%A1%8C%E7%BC%96%E7%A8%8B%E5%90%8E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6%84%9F%E6%BF%80%E3%80%82%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2346663%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Application%20Images%20with%20MCUboot%20(mcuboot_opensource)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2346663%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%97%A8%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258069%22%20target%3D%22_blank%22%3E%40Bhumika18%3C%2FA%3E%E3%80%81%3C%2FP%3E%0A%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E5%85%B3%E6%B3%A8%E6%81%A9%E6%99%BA%E6%B5%A6%20MIMXRT%20%E7%B3%BB%E5%88%97%EF%BC%81%3C%2FP%3E%0A%3CP%3EA1%3A%3CSPAN%3E%E9%80%9A%E5%B8%B8%E4%BD%BF%E7%94%A8%E5%93%AA%E7%A7%8D%E5%B7%A5%E5%85%B7%EF%BC%9F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E6%94%AF%E6%8C%81%E9%9B%86%E6%88%90%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E3%80%81JLink%20%E6%88%96%E5%85%B6%E4%BB%96%E8%B0%83%E8%AF%95%E5%99%A8%EF%BC%8C%E4%B9%9F%E6%94%AF%E6%8C%81%E5%9C%A8%E4%B8%B2%E8%A1%8C%E4%B8%8B%E8%BD%BD%E6%A8%A1%E5%BC%8F%E4%B8%8B%E4%BD%BF%E7%94%A8%20blhost%E3%80%82%E5%85%B6%E5%94%AF%E4%B8%80%E7%9B%AE%E7%9A%84%E6%98%AF%E5%B0%86%E7%AD%BE%E5%90%8D%E6%98%A0%E5%83%8F%E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