git.openpandora.org
/
pandora-u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
patman: Support Series-name tag to name a series
[pandora-u-boot.git]
/
tools
/
ublimage.c
diff --git
a/tools/ublimage.c
b/tools/ublimage.c
index
9987462
..
d6b4017
100644
(file)
--- a/
tools/ublimage.c
+++ b/
tools/ublimage.c
@@
-214,6
+214,11
@@
static int ublimage_check_image_types(uint8_t type)
static int ublimage_verify_header(unsigned char *ptr, int image_size,
struct mkimage_params *params)
{
+ struct ubl_header *ubl_hdr = (struct ubl_header *)ptr;
+
+ if ((ubl_hdr->magic & 0xFFFFFF00) != UBL_MAGIC_BASE)
+ return -1;
+
return 0;
}