Hi.
Ever since FreeBSD first started supporting native UEFI boot, I always used to use /boot/boot1.efi as the first boot loader by copying it to [ESP]/EFI/BOOT/BOOTX64.EFI. This has always worked just fine.
But I've just noticed the following in uefi(8):
If loader.efi is now the correct binary to use for booting, this has me wondering what the purpose is of boot1.efi or gptboot.efi, or any of the other UEFI binaries:
(loader.efi and loader_lua.efi are hardlinks of the same file)
Can anyone shed any light on this?
EDIT: boot1.efi(8) sheds light on this. boot1.efi is deprecated and should be replaced by loader.efi. Still curious what gptboot.efi is for.
Ever since FreeBSD first started supporting native UEFI boot, I always used to use /boot/boot1.efi as the first boot loader by copying it to [ESP]/EFI/BOOT/BOOTX64.EFI. This has always worked just fine.
But I've just noticed the following in uefi(8):
Code:
The UEFI boot process proceeds as follows:
1. UEFI firmware runs at power up and searches for an OS loader
in the EFI system partition. The path to the loader may be
set by an EFI environment variable. If not set, an
architecture-specific default is used.
Architecture Default Path
amd64 /EFI/BOOT/BOOTX64.EFI
arm /EFI/BOOT/BOOTARM.EFI
arm64 /EFI/BOOT/BOOTAA64.EFI
The default UEFI boot configuration for FreeBSD installs
loader.efi in the default path.
If loader.efi is now the correct binary to use for booting, this has me wondering what the purpose is of boot1.efi or gptboot.efi, or any of the other UEFI binaries:
Code:
# ls -l /boot/*.efi
-r-xr-xr-x 1 root wheel 114176 30 Jun 19:02 /boot/boot1.efi
-r-xr-xr-x 1 root wheel 109568 30 Jun 19:02 /boot/gptboot.efi
-r-xr-xr-x 1 root wheel 805376 30 Jun 19:02 /boot/loader_4th.efi
-r-xr-xr-x 2 root wheel 892928 30 Jun 19:02 /boot/loader_lua.efi
-r-xr-xr-x 1 root wheel 747520 30 Jun 19:02 /boot/loader_simp.efi
-r-xr-xr-x 2 root wheel 892928 30 Jun 19:02 /boot/loader.efi
(loader.efi and loader_lua.efi are hardlinks of the same file)
Can anyone shed any light on this?
EDIT: boot1.efi(8) sheds light on this. boot1.efi is deprecated and should be replaced by loader.efi. Still curious what gptboot.efi is for.
Last edited: