diff options
| author | Troy Kisky <troy.kisky@boundarydevices.com> | 2012-10-03 15:47:06 +0000 | 
|---|---|---|
| committer | Stefano Babic <sbabic@denx.de> | 2012-10-20 17:13:01 +0200 | 
| commit | 348ca8efb79652d2b259fbd0ed6d317a77a8cbb9 (patch) | |
| tree | 0055b16b72b65c04899f1d04d44d214780370d56 /tools | |
| parent | 8d8cc828f456a64143a0b94c751f8cfcecfe5dcc (diff) | |
| download | olio-uboot-2014.01-348ca8efb79652d2b259fbd0ed6d317a77a8cbb9.tar.xz olio-uboot-2014.01-348ca8efb79652d2b259fbd0ed6d317a77a8cbb9.zip | |
imximage: fix size of image to load.
sbuf->st_size already includes sizeof(struct imx_header),
so remove extra addition.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/imximage.c | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/tools/imximage.c b/tools/imximage.c index 3e9ee6ac5..7dbf36cf4 100644 --- a/tools/imximage.c +++ b/tools/imximage.c @@ -221,8 +221,7 @@ static void set_imx_hdr_v1(struct imx_header *imxhdr, uint32_t dcd_len,  	/* The external flash header must be at the end of the DCD table */  	dcd_v1->addr_data[dcd_len].type = sbuf->st_size + -				imxhdr->flash_offset + -				sizeof(struct imx_header); +				imxhdr->flash_offset;  	/* Security feature are not supported */  	fhdr_v1->app_code_csf = 0; @@ -253,8 +252,7 @@ static void set_imx_hdr_v2(struct imx_header *imxhdr, uint32_t dcd_len,  	hdr_v2->boot_data.start = fhdr_v2->self - imxhdr->flash_offset;  	hdr_v2->boot_data.size = sbuf->st_size + -			imxhdr->flash_offset + -			sizeof(struct imx_header); +			imxhdr->flash_offset;  	/* Security feature are not supported */  	fhdr_v2->csf = 0; |