I have a system that fails to boot using loader.efi(8) but works OK with boot1.efi(8) when installed as BOOTX64.EFI.
My UEFI boot variables are set as follows:
When I installed the system, I copied boot1.efi to /EFI/BOOT/BOOTX64.EFI on my EFI System Partition and the system booted fine using x64 default boot entry (UEFI OS).
As boot1.efi(8) is deprecated in favour of loader.efi(8), I decided to copy the latter to /EFI/FreeBSD/loader.efi and create another boot entry pointing to it. As can be seen above, the device identifier in the Boot0000 entry is identical to the working Boot0001 one, and the path to the EFI binary is correct.
When I set the "FreeBSD" entry to default in UEFI setup and try to boot the system, the display stays off indefinately and judging by the pattern of flashing of the hard disk LED, it's stuck in a reboot loop. I can still get back into the UEFI setup and change the "UEFI OS" entry back to default, then things work again.
The system is built around a Gigabyte B450M DS3H motherboard. It's in native UEFI mode with no CSM enabled. The system has had no problems booting other OS's that provide a EFI boot loader in an OS-specific path, including VMware ESXi and Fedora.
Has anyone else observed this behaviour before and found a root cause?
My UEFI boot variables are set as follows:
Code:
Boot to FW : false
BootCurrent: 0001
Timeout : 1 seconds
BootOrder : 0001, 0000
+Boot0001* UEFI OS HD(1,GPT,016b678b-d7bf-11ee-bd5e-b42e99e0664b,0x800,0x40000)/File(\EFI\BOOT\BOOTX64.EFI)
nda0p1:/EFI/BOOT/BOOTX64.EFI /boot/efi//EFI/BOOT/BOOTX64.EFI
Boot0000 FreeBSD HD(1,GPT,016b678b-d7bf-11ee-bd5e-b42e99e0664b,0x800,0x40000)/File(\EFI\FREEBSD\LOADER.EFI)
nda0p1:/EFI/FREEBSD/LOADER.EFI /boot/efi//EFI/FREEBSD/LOADER.EFI
Unreferenced Variables:
When I installed the system, I copied boot1.efi to /EFI/BOOT/BOOTX64.EFI on my EFI System Partition and the system booted fine using x64 default boot entry (UEFI OS).
As boot1.efi(8) is deprecated in favour of loader.efi(8), I decided to copy the latter to /EFI/FreeBSD/loader.efi and create another boot entry pointing to it. As can be seen above, the device identifier in the Boot0000 entry is identical to the working Boot0001 one, and the path to the EFI binary is correct.
When I set the "FreeBSD" entry to default in UEFI setup and try to boot the system, the display stays off indefinately and judging by the pattern of flashing of the hard disk LED, it's stuck in a reboot loop. I can still get back into the UEFI setup and change the "UEFI OS" entry back to default, then things work again.
The system is built around a Gigabyte B450M DS3H motherboard. It's in native UEFI mode with no CSM enabled. The system has had no problems booting other OS's that provide a EFI boot loader in an OS-specific path, including VMware ESXi and Fedora.
Has anyone else observed this behaviour before and found a root cause?