diff options
author | Tom Rini <trini@ti.com> | 2013-01-08 08:28:27 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-01-08 14:26:42 -0700 |
commit | 91c038f087d7f643c85609897af3710d5f8b42a9 (patch) | |
tree | e96b3c73031aafdd000a253e6dcf5ae6966e8c65 /tools | |
parent | e56cdd778ca08fc8c32ffc3ddebbb6102519f344 (diff) | |
parent | 7528cf5f016b5b8b8b12b373f6f31a10bf89233d (diff) | |
download | u-boot-imx-91c038f087d7f643c85609897af3710d5f8b42a9.zip u-boot-imx-91c038f087d7f643c85609897af3710d5f8b42a9.tar.gz u-boot-imx-91c038f087d7f643c85609897af3710d5f8b42a9.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Diffstat (limited to 'tools')
-rw-r--r-- | tools/imximage.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/imximage.c b/tools/imximage.c index 63f88b6..a93d7eb 100644 --- a/tools/imximage.c +++ b/tools/imximage.c @@ -515,7 +515,14 @@ static void imximage_set_header(void *ptr, struct stat *sbuf, int ifd, /* Set the imx header */ (*set_imx_hdr)(imxhdr, dcd_len, params->ep, imxhdr->flash_offset); - *header_size_ptr = sbuf->st_size + imxhdr->flash_offset; + + /* + * ROM bug alert + * mx53 only loads 512 byte multiples. + * The remaining fraction of a block bytes would + * not be loaded. + */ + *header_size_ptr = ROUND(sbuf->st_size + imxhdr->flash_offset, 512); } int imximage_check_params(struct mkimage_params *params) |