Re: [PATCH] tools: kwboot: Fix sending Kirkwood v0 images

2021-11-10 Thread Stefan Roese
On 05.11.21 23:29, Pali Rohár wrote: Properly calculate and align image header size to xmodem block size. Kirkwood v0 images do not have stored total size of header in header structure itself like it is for v1 images. So kwbheader_size() calculates size by traversing image structure itself. Alig

Re: [PATCH] tools: kwboot: Fix sending Kirkwood v0 images

2021-11-10 Thread Stefan Roese
On 05.11.21 23:29, Pali Rohár wrote: Properly calculate and align image header size to xmodem block size. Kirkwood v0 images do not have stored total size of header in header structure itself like it is for v1 images. So kwbheader_size() calculates size by traversing image structure itself. Alig

[PATCH] tools: kwboot: Fix sending Kirkwood v0 images

2021-11-05 Thread Pali Rohár
Properly calculate and align image header size to xmodem block size. Kirkwood v0 images do not have stored total size of header in header structure itself like it is for v1 images. So kwbheader_size() calculates size by traversing image structure itself. Aligning is done in kwboot by putting zero