siemens / meta-iot2050

SIMATIC IOT2050 Isar/Debian Board Support Package
MIT License
130 stars 79 forks source link

iot2050-firmware-update: Add integrity check #353

Closed AsuraZeng closed 1 year ago

AsuraZeng commented 1 year ago

After the update is completed, read back the content of the flash, calculate the hash value of the content and the write value, compare the two hash value to ensure the correctness of the written value.

Signed-off-by: chao zeng chao.zeng@siemens.com

BaochengSu commented 1 year ago

After the update is completed, read back the content of the flash, calculate the hash value of the content and the write value, compare the two hash value to ensure the correctness of the written value.

This helps something like this, at least on telling the programming error apart from possible causes.

Signed-off-by: chao zeng chao.zeng@siemens.com