Cannot retrieve hash using img_mgmt_client API

Hello,

After I upload a new signed image to my device using MCUboot serial recovery (single image), MCUmgr Img_mgmt_client API

img_mgmt_client_state_read() always fails because there's no hash. I added version number using VERSION file. Is there a similar way to add hash to my image?
Regards,
Chang
Parents Reply
  • Hi Swathy,

    For nRF54, CONFIG_BOOT_IMG_HASH_ALG_SHA512=y is defined by other dependencies by default. The followings will make build errors because those configs can't be modified directly:

    CONFIG_BOOT_IMG_HASH_ALG_SHA512=n
    CONFIG_BOOT_IMG_HASH_ALG_SHA256=y
     
    SB_CONFIG_BOOT_SIGNATURE_TYPE_NONE=y was the only way I could find to disable SHA512. If there are other ways to disable SHA512 and enable SHA256 on nRF54 MCUboot, please let me know. I'm using NCS v3.0.2.
    Regards,
    Chang
Children
No Data
Related