> From: Aswin Murugan <[email protected]> > > PXE assumes that a downloaded image is a Linux Image, uImage, or FIT > image and dispatches it through bootm, booti, or bootz. However, PXE > may download an EFI stub kernel or another UEFI application in PE/COFF > format. These images contain a DOS/PE header instead of the ARM64 > Image magic, so genimg_get_format() reports them as invalid. The > legacy bootm/booti/bootz path then fails with "Bad Linux ARM64 Image > magic!". > > Detect PE/COFF images downloaded by PXE and execute them with > efi_binary_run(). Track the downloaded image size so it can be > validated, and pass the selected device tree blob to the EFI > application. > > Signed-off-by: Aswin Murugan <[email protected]> > Signed-off-by: Sumit Singh Dhami <[email protected]> > --- > boot/pxe_utils.c | 20 ++++++++++++++++++-- > 1 file changed, 18 insertions(+), 2 deletions(-)
Applied to u-boot-net branch for-main [1], thanks! [1] https://git.u-boot-project.org/u-boot/custodians/u-boot-net/-/commits/for-main [1/1] boot: pxe: support booting PE/COFF EFI applications commit: e0b7e1d9c06fa33657838dda6a93a696b0c90fa9 Best regards, -- Jerome Forissier <[email protected]>
