Change the image header magic
Since we've changed the meaning of several fields in the header, bump
the header to a new magic number. The fields that are still present are
in the same place, but all of the signature and TLV information is moved
into the TLV itself, which is still immediately after the image.
As of this commit, this defines the new image header/TLV format used for
1.0.
Based on work by Marko Kiiskila <marko@runtime.io>
Signed-off-by: Marko Kiiskila <marko@runtime.io>
Signed-off-by: David Brown <david.brown@linaro.org>
diff --git a/scripts/imgtool/image.py b/scripts/imgtool/image.py
index 7eb6c0c..358b1f2 100644
--- a/scripts/imgtool/image.py
+++ b/scripts/imgtool/image.py
@@ -6,7 +6,7 @@
import hashlib
import struct
-IMAGE_MAGIC = 0x96f3b83c
+IMAGE_MAGIC = 0x96f3b83d
IMAGE_HEADER_SIZE = 32
# Image header flags.