base-files: fwtool: Fix wrong checksum on combined-image with metadata
authorPetr Štetiar <ynezz@true.cz>
Fri, 9 Nov 2018 11:27:12 +0000 (12:27 +0100)
committerJohn Crispin <john@phrozen.org>
Mon, 26 Nov 2018 11:05:45 +0000 (12:05 +0100)
commit41770add03ad77a0ce41ed424ad050238f7d9272
treef1498cb3b6c3bd260c9aeca0fa11dc6b3a5ba1d4
parent975019b3a755ec3b91864b60b45e5ee104075096
base-files: fwtool: Fix wrong checksum on combined-image with metadata

If I create following image:

define Device/engenius-m36
  IMAGE/sysupgrade.bin := combined-image | append-metadata
endef

Sysupgrade then errors out:

  Invalid image. Contents do not match checksum (image:cd285595eaf297370404ae0e2815ec1a calculated:2cf9a2286fb6b01af3ea189128017d44)
  Image check 'platform_check_image' failed.

By removing the metadata from the image I get combined-image checksum
working again and sysupgrade works.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
package/base-files/files/lib/upgrade/fwtool.sh