Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting "Could not boot: Error 0x7f048283 (https://ipxe.org/7f048283)" when booting fedora 35 vmlinuz/initrd #713

Closed
hradec opened this issue Aug 23, 2022 · 0 comments

Comments

@hradec
Copy link

hradec commented Aug 23, 2022

I'm building ipxe from the latest master branch to boot over the network using bios legacy and efi network boot. (I'm serving the ipxe bios/efi payloads to the network PXE boot rom via the standard DHCP/TFTP combo, using dnsmasq)
I'm adding a custom script to ipxe that shows a menu to select booting our linux distro over the network or to the local disk boot.

The script works fine when booting on a regular bios network boot, but when booting on a efi network boot, I get this Could not boot: Error 0x7f048283 (https://ipxe.org/7f048283) error message after ipxe loads the vmlinuz kernel and the initrd image from our tftp:

>>Start PXE over IPv4.
  Station IP address is 192.168.1.80

  Server IP address is 192.168.1.231
  NBP filename is payload.efi
  NBP filesize is 1017344 Bytes
 Downloading NBP file...

  NBP file downloaded successfully.
iPXE initialising devices...ok

iPXE 1.21.1+ (gc5af4) -- Open Source Network Boot Firmware -- https://ipxe.org
Features: DNS HTTP iSCSI TFTP SRP AoE EFI Menu
Configuring (net0 e2:c0:ed:fd:42:19).....

...

tftp://192.168.1.231/vmlinuz... ok 
tftp://192.168.1.231/initrd... ok 
Could not boot: Error 0x7f048283 (https://ipxe.org/7f048283)

I have tried building with DEBUG=efi_image, but that gives me the same error message twice, in different colors.

I'm currently able to boot the same vmlinuz/initrd on EFI network boot computers/VMs using GRUB2 instead of ipxe, so I don't think it's a problem with the vmlinuz kernel file.

To sum up:

  • vmlinuz boots fine from ipxe on bios network boot
  • ipxe can't boot vmlinuz on efi network boot, and spits the 0x7f048283 error
  • grub2 is able to boot vmlinuz on efi network boot just fine.

this is the custom script.ipxe I'm using when building booth bios and efi ipxe payloads:

#!ipxe

:retry_dhcp
dhcp || goto retry_dhcp

:start
menu iPXE boot menu
item --gap --
item Fedora.35  Fedora.35
item Local.Windows      Local.Windows
choose --timeout 10000 --default Local.Windows selected
set menu-timeout 0
goto ${selected}

:Fedora.35
kernel tftp://192.168.1.231/vmlinuz
initrd tftp://192.168.1.231/initrd
imgargs vmlinuz  quiet nb_provisionurl=tftp://192.168.1.231/netbootcd-ipxe-bootchain/boot/init.sh  nofstab waitusb norestore base console=tty0  console=ttyS0,115200n8
boot || sleep 600
goto start

:Local.Windows
goto exit_ipxe

:exit_ipxe

Is there something different that I have to do for the efi script maybe?

@NiKiZe NiKiZe converted this issue into discussion #714 Aug 23, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant