Hi Jonas,
On 25.04.24 17:58, Jonas Strunz wrote:
>
> Hi!
>
> We've started to activate the hash verification in our software
> components. For some legacy devices in the field, the update now fails
> because hash verification was not activated in the swupdate service:
> ERROR core/parser.c : check_hash_absent : 52 : hash verification not
> enabled but hash supplied for onboarding.service
It cannot work - if hash is provided, update is considered faulty if not
verified.
> ERROR core/stream_interface.c : extract_files : 165 : Compatible SW not
> found
> Image invalid or corrupted. Not installing ...
>
> Can we make our legacy devices accept the swupdate packages with hash
> verification without changing the swupdate service configuration?
You have to build a SWU from the same artifacts (that is, it contains a
swupdate able to compute hashes), and this is accepted by all devices.
A later version could be deployed with hashes in sw-description.
Best regards,
Stefano Babic