Re: [ImageBuilder PATCH] uboot-script-gen: use size from arm64 Image header

2023-08-29 Thread Stewart Hildebrand
On 8/24/23 19:19, Stefano Stabellini wrote: > On Thu, 24 Aug 2023, Stewart Hildebrand wrote: >> There is a corner case where the filesizes of the xen and Linux kernel images >> are not sufficient. These binaries likely contain .NOLOAD sections, which are >> not accounted in the filesize. >> >> Chec

Re: [ImageBuilder PATCH] uboot-script-gen: use size from arm64 Image header

2023-08-24 Thread Stefano Stabellini
On Thu, 24 Aug 2023, Stewart Hildebrand wrote: > There is a corner case where the filesizes of the xen and Linux kernel images > are not sufficient. These binaries likely contain .NOLOAD sections, which are > not accounted in the filesize. > > Check for the presence of an arm64 kernel image header

[ImageBuilder PATCH] uboot-script-gen: use size from arm64 Image header

2023-08-24 Thread Stewart Hildebrand
There is a corner case where the filesizes of the xen and Linux kernel images are not sufficient. These binaries likely contain .NOLOAD sections, which are not accounted in the filesize. Check for the presence of an arm64 kernel image header, and get the effective image size from the header. Use t