[U-Boot] efi: Error building as EFI payload (both 32bit and 64 bit)

Stoppa, Igor igor.stoppa at intel.com
Thu Aug 13 20:38:41 CEST 2015


+Simon

Hello Bin, Simon,

On 13 August 2015 at 17:52, Stoppa, Igor <igor.stoppa at intel.com> wrote:

> I'm running qemu 2.1.3 on OpenSUSE and it doesn't seem to start in EFI
> mode other than with a build of the Open Virtual Machine Firmware that
> I found googling [1]. With this I can reach an EFI shell.

Almost the same also with qemu 2.2.0 on Ubuntu

[...]

> Anyway, with the OVMF, I am able to see the EFI BIOS starting.
> I can list the block devices and also see the file containing U-Boot
> in payload format (u-boot-payload.efi)
> This is how I start qemu:
>
> qemu-system-x86_64 -nographic -bios ../bios/OVMF.fd -hda fat:tmp/efi/
>
> It tries to boot from any of the boot devices available, then it fails
> and drops me to the Shell.
>
> At which point, following the README.efi, I launch the payload:
>
> FS0:u-boot-payload.efi
>
> I get a message:
> U-Boot EFI Payload

I have added some traces to the code.
It seems that the failure happens at
lib/efi/efi_stub.c:333 where it tries to get a memory map for the 2nd time.

[...]

Tomorrow I'll try again, after downloading and trying the latest qemu.

What version of qemu is known to work with the EFI x86 payload?



> [1] http://ufpr.dl.sourceforge.net/project/edk2/OVMF/OVMF-X64-r15214.zip


-- 
thanks, igor


More information about the U-Boot mailing list