Re: mcumgr: How to calculate hash of image under Linux #nrf52840


Marti Bolivar <marti@...>
 

Hi Phil,

It doesn't have to be TLV index 0. You need to use the "type" in each type/length/value (TLV) datum to find the hash TLV in the image binary.


I don't use mcumgr very much, just mcuboot, so I can't help you much with the "image list" output. I suggest you investigate your binary images - e.g. using the script I sent or some other means as you prefer - to compare values in the mcumgr output with what's in your image.


Hope this helps,
Marti


On Mon, Mar 4, 2019, 3:49 AM Phil Hipp <finke@...> wrote:
Hey Marti,

thanks for your reply. So in my understanding the value of TLV 0 is the hash that will be displayed using "Image list", isn't it?

Best

Philipp

Join users@lists.zephyrproject.org to automatically receive all group messages.