Re: [PATCH u-boot 2/2] tools: default_image: Accept images with padding

2023-02-07 Thread Tom Rini
On Mon, Feb 06, 2023 at 10:47:43PM +0100, Pali Rohár wrote: > On Monday 06 February 2023 14:43:07 Tom Rini wrote: > > On Sun, Jan 29, 2023 at 05:44:11PM +0100, Pali Rohár wrote: > > > > > If image file is stored on flash partition then it contains padding, which > > > is not part of the image itse

Re: [PATCH u-boot 2/2] tools: default_image: Accept images with padding

2023-02-06 Thread Simon Glass
Hi Tom, On Mon, 6 Feb 2023 at 12:43, Tom Rini wrote: > > On Sun, Jan 29, 2023 at 05:44:11PM +0100, Pali Rohár wrote: > > > If image file is stored on flash partition then it contains padding, which > > is not part of the image itself. Image data size is stored in the image > > header. So use imag

Re: [PATCH u-boot 2/2] tools: default_image: Accept images with padding

2023-02-06 Thread Pali Rohár
On Monday 06 February 2023 14:43:07 Tom Rini wrote: > On Sun, Jan 29, 2023 at 05:44:11PM +0100, Pali Rohár wrote: > > > If image file is stored on flash partition then it contains padding, which > > is not part of the image itself. Image data size is stored in the image > > header. So use image si

Re: [PATCH u-boot 2/2] tools: default_image: Accept images with padding

2023-02-06 Thread Tom Rini
On Sun, Jan 29, 2023 at 05:44:11PM +0100, Pali Rohár wrote: > If image file is stored on flash partition then it contains padding, which > is not part of the image itself. Image data size is stored in the image > header. So use image size from the header instead of expecting that total > image fil

Re: [PATCH u-boot 2/2] tools: default_image: Accept images with padding

2023-01-30 Thread Simon Glass
On Sun, 29 Jan 2023 at 09:44, Pali Rohár wrote: > > If image file is stored on flash partition then it contains padding, which > is not part of the image itself. Image data size is stored in the image > header. So use image size from the header instead of expecting that total > image file size is

[PATCH u-boot 2/2] tools: default_image: Accept images with padding

2023-01-29 Thread Pali Rohár
If image file is stored on flash partition then it contains padding, which is not part of the image itself. Image data size is stored in the image header. So use image size from the header instead of expecting that total image file size is size of the header plus size of the image data. This allows