summaryrefslogtreecommitdiff
path: root/tools/imximage.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/imximage.h')
-rw-r--r--tools/imximage.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/imximage.h b/tools/imximage.h
index 1445c1e..5c929e4 100644
--- a/tools/imximage.h
+++ b/tools/imximage.h
@@ -157,13 +157,14 @@ typedef struct {
dcd_v2_t dcd_table;
} imx_header_v2_t;
+/* The header must be aligned to 4k on MX53 for NAND boot */
struct imx_header {
union {
imx_header_v1_t hdr_v1;
imx_header_v2_t hdr_v2;
} header;
uint32_t flash_offset;
-};
+} __attribute__((aligned(4096)));
typedef void (*set_dcd_val_t)(struct imx_header *imxhdr,
char *name, int lineno,