[PATCH] efi_loader: Fix loaded image alignment
vincent.stehle at arm.com
Tue Oct 12 11:45:07 CEST 2021
On Mon, Oct 11, 2021 at 03:10:23PM +0300, Ilias Apalodimas wrote:
> We are ignoring the alignment communicated via the PE/COFF header.
> Starting 5.10 the Linux kernel will loudly complain about it. For more
> details look at  (in linux kernel).
> So add a function that can allocate aligned EFI memory and use it for our
> relocated loaded image.
Thank you for this fix.
I verified that Linux v5.14.3 EFI stub complains about not being aligned to 64k
without this fix and is happy with it, on the following systems:
- qemu with U-Boot latest (after v2021.10)
- Pine64 ROCKPro64 with U-Boot "near" v2021.07
- Lenovo Leez P710 with U-Boot v2021.07
- Compulab IOT-GATE-iMX8 with U-Boot "near" v2021.10-rc3
Feel free to add (or not):
Tested-by: Vincent Stehlé <vincent.stehle at arm.com>
System Architect - Arm
More information about the U-Boot