<milkylainen>
Also. Anything I try nets a returning efi prompt or an invalid opcode.
<marex>
milkylainen: ask xypron_
<xypron_>
milkylainen: EFI payload was developed and is maintained by Simon Glass. If DISTRO_DEFAULTS is not supported, try without.
<milkylainen>
xypron_: did. But end up in a invalid opcode or nothing at all.
<milkylainen>
xypron_: 64-bit host, Does that mean 64-bit u-boot payload 64-bit physical and 64-bit stub?
<milkylainen>
I assumed the 32 or 64 defconfig would atleast just boot.
<xypron_>
milkylainen: It depends on the UEFI firmware of your host machine if you need a 32 or 64 bit binary.
<xypron_>
milkylainen: the idea of EFI payload is that you start them with the UEFI firmware of your computer and get a U-Boot console.
mrnuke has joined #u-boot
<xypron_>
milylainen: for me it works fine: I copied the 64bit u-boot-payload.efi file to /boot/efi, created a new boot entry with efibootmgr and set BootNext to the new entry. After reboot U-Boot started.
<xypron_>
milkylainen ^
<milkylainen>
xypron_: I'm trying to validate on a Virtualbox UEFI.
<milkylainen>
xypron_: I'm assuming /boot/efi/whatever.efi can be executed by hand. I shouldn't need efibootmgr for the default name?
<apalos>
milkylainen: there's 2 ways you can do that
<apalos>
the first one loads the app on the fly, the second sets the bootmgr boot variables
<apalos>
you'll only need 'bootefi bootmgr' once you set the variables once
<xypron_>
milkylainen: with the UEFI shell you can start an efi easily. Otherwise use the boot manager. efibootmgr is a Linux program to set boot options.
<milkylainen>
xypron_: I'm trying to start u-boot as a payload in the uefi shell. I don't think I need efibootmgr for that?
<milkylainen>
BOOTX64.EFI is the default path?
<apalos>
x86?
<xypron_>
milkylainen: if you already have an UEFI shell, you should select the right block device and type u-boot-payload.efi at the prompt
<xypron_>
milkylainen: a file in \EFI\boot\bootx64.efi will be executed by default.
<milkylainen>
xypron_: yes. And that's why I'm here. I get an illegal opcode or just a returning shell prompt.
<milkylainen>
apalos: yup.
<apalos>
milkylainen: the name's correct then
<xypron_>
milkylainen: I started the UEFI shell now and typed u-boot-payload.efi and it runs.
<milkylainen>
xypron_: Vbox uefi?
<xypron_>
milkylainen: no just on my Asus mainboard
<xypron_>
milkylainen: when you compile qemu-x86_64.efi it creates a file lib/efi_loader/helloworld.efi that is rather simple. Does this one run in your VM?