Dear Future Me,
I guess you came here googling for “FreeBSD PXE UEFI” trying to find out how to netboot your x86 dev box. Or arm64 box. Who knows what you’re hacking on in the future. To do that you need follow these simple steps:
- Put loader.efi to tftpboot dir
- Configure dhcpd along these lines:
host amd64 { hardware ethernet b8:ae:ed:77:88:99; filename "loader.efi"; option root-path "/src/FreeBSD/tftproot/amd64"; fixed-address 192.168.10.102; option routers 192.168.10.1; }
- Make sure root-path is in /etc/exports.
- If you use MINIMAL-derived config add your NIC driver to /boot/loader.conf:
if_re_load="YES"
That’s pretty much it.
Take care
Hello, when using loader.efi, it failed to boot into FreeBSD and then the computer reboot after loader.efi loaded, but it do can boot into FreeBSD when using pxeboot. screenshot
do you have any idea what caused the failure when using efi loader?
No idea – it just worked for me 🙁 Try asking in current@ mailing list.
I think if_re_load=”YES” force to load RealTek network interface module during boot. If the machine is install with other NIC, it may need other option.