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 Children
  • Hi Swathy,

    Thanks for the info. That makes MCUboot respond to img_mgmt_client_state_read() with hash information. However, the hash length is 64. image_state_res_fn() anticipates strictly 32, so img_mgmt_client_state_read() fails.

    For those who ran into the same problem, SB_CONFIG_BOOT_SIGNATURE_TYPE_NONE=y seems to work to make the hash size 32 bytes. Could you please confirm if that is the right way to make it work?
    Regards,
    Chang
Related