Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2021.04, v2021.07-rc3 are OUT / Merge Window is CLOSED / Release v2021.07 is scheduled for 05 July 2021 / http://www.denx.de/wiki/U-Boot / Channel archives at https://libera.irclog.whitequark.org/u-boot
<ezequielg> seems it works.
sbach has quit [Quit: WeeChat 3.0]
sbach has joined #u-boot
petre has joined #u-boot
mrnuke has quit [Remote host closed the connection]
petre has quit [Quit: Client closed]
Gravis has quit [Ping timeout: 264 seconds]
georgem has quit [Quit: Connection closed for inactivity]
Gravis has joined #u-boot
Gravis has joined #u-boot
Gravis has quit [Changing host]
LokeshV has joined #u-boot
stefanro has joined #u-boot
stefanro1 has joined #u-boot
stefanro has quit [Quit: Client closed]
agust has joined #u-boot
alpernebbi has joined #u-boot
sszy has joined #u-boot
Gravis has quit [Ping timeout: 264 seconds]
Gravis has joined #u-boot
Gravis has joined #u-boot
Gravis has quit [Changing host]
Gravis has quit [Ping timeout: 264 seconds]
Gravis has joined #u-boot
Gravis has joined #u-boot
Gravis has quit [Changing host]
cbmuser has joined #u-boot
tnovotny has joined #u-boot
cbmuser has quit [Quit: WeeChat 1.6]
cbmuser has joined #u-boot
LokeshV is now known as LokeshVutla
georgem has joined #u-boot
ad__ has joined #u-boot
milkylainen has joined #u-boot
<milkylainen> marex: tnx.
gsz has joined #u-boot
tnovotny has quit [Read error: Connection reset by peer]
tnovotny_ has joined #u-boot
<milkylainen> I've been having some serious issues trying to get a UEFI x86 payload to build && boot.
<milkylainen> I start with efi-x86_payload32_defconfig or payload64. Add CONFIG_DISTRO_DEFAULTS=y
<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> load mmc 0:1 $kernel_addr_r efi/boot/bootaa64.efi; bootefi $kernel_addr_r
<apalos> efidebug boot add -b ABE0 'kernel' mmc 0:2 boot/EFI/BOOT/Image && efidebug boot order ABE0 && bootefi bootmgr
<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
<milkylainen> xypron_: Mkay.
<milkylainen> payload32 or payload64 defconfig?
<xypron_> milkylaine: 64bit
<xypron_> milkylainen
<milkylainen> xypron_: ok.
<apalos> xypron_: https://source.denx.de/u-boot/custodians/u-boot-efi/-/commit/fd22139cee34750500a5f4cf9f312818226a38e4 if it's not too much of a hassle you can add my reviewed-by in that
<apalos> also can we get the coverity fixes I sent 2 days ago merged before the stable release? They are actual fixes
<milkylainen> payload32 defconfig payload.efi just returns on the shell prompt for me. No output, nothing.
<milkylainen> Trying 64-bit defconfig again.
<milkylainen> This time it just hangs.
<milkylainen> I'll get back to this later. Tnx for the help so far.
<xypron_> milkylainen: https://github.com/xypron/efi_analyzer will tell you for your Shell.efi which bitness is has.
<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?
<xypron_> qemu-x86_64_defconfig
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
tnovotny_ has quit [Quit: Leaving]
redbrain_ has joined #u-boot
redbrain_ has quit [Client Quit]
redbrain has joined #u-boot
Gravis has quit [Ping timeout: 248 seconds]
Gravis has joined #u-boot
Gravis has joined #u-boot
Gravis has quit [Changing host]
Gravis has quit [Ping timeout: 248 seconds]
Gravis has joined #u-boot
Gravis has joined #u-boot
Gravis has quit [Changing host]
vagrantc has joined #u-boot
redbrain has quit [Ping timeout: 248 seconds]
Gravis has quit [Ping timeout: 248 seconds]
Gravis has joined #u-boot
Gravis has joined #u-boot
Gravis has quit [Changing host]
Gravis has quit [Ping timeout: 252 seconds]
sigmaris_ has joined #u-boot
sigmaris_ is now known as sigmaris
sbach has quit [Ping timeout: 264 seconds]
blmaier has quit [Ping timeout: 264 seconds]
sbach has joined #u-boot
alpernebbi has quit [Quit: alpernebbi]
LokeshVutla has quit [Quit: Leaving]
gsz has quit [Quit: leaving]
agust has quit [Quit: Leaving.]