Re: [U-Boot] [PATCH v4 5/7] tools: add padding of data image file for imximage

2013-09-11 Thread York Sun
On 09/11/2013 12:13 AM, Stefano Babic wrote: > Hi York, > > On 11/09/2013 00:14, York Sun wrote: > >>> +static int imximage_generate(struct mkimage_params *params, >>> + struct image_type_params *tparams) >>> +{ >>> + struct imx_header *imxhdr; >>> + size_t alloc_len; >>> + struct stat sb

Re: [U-Boot] [PATCH v4 5/7] tools: add padding of data image file for imximage

2013-09-11 Thread Stefano Babic
Hi York, On 11/09/2013 00:14, York Sun wrote: >> +static int imximage_generate(struct mkimage_params *params, >> +struct image_type_params *tparams) >> +{ >> +struct imx_header *imxhdr; >> +size_t alloc_len; >> +struct stat sbuf; >> +char *datafile = params->datafile; >> +

Re: [U-Boot] [PATCH v4 5/7] tools: add padding of data image file for imximage

2013-09-10 Thread York Sun
On 08/27/2013 08:17 AM, Stefano Babic wrote: > Implement function vrec_header to be able to pad the final > data image file according the what has been calculated for > boot_data.length. > > Signed-off-by: Stefano Babic > > --- > Changes in v4: > - fix crash when imximage_init_loadsize is not se

[U-Boot] [PATCH v4 5/7] tools: add padding of data image file for imximage

2013-08-27 Thread Stefano Babic
Implement function vrec_header to be able to pad the final data image file according the what has been calculated for boot_data.length. Signed-off-by: Stefano Babic --- Changes in v4: - fix crash when imximage_init_loadsize is not set Found during regression tests with boards ima3-mx53 and m53ev