RPi3 icon indicating copy to clipboard operation
RPi3 copied to clipboard

Unable to boot FreeBSD EFI

Open DAZ-NZ-Eng opened this issue 1 year ago • 2 comments

I have a FreeBSD image on an USB stick. I can setup a VM with UEFI mode enabled and attached the USB as a SATA physical disk to the VM and it boots up just fine. However, With pftf/RPi3B+ burnt to an SD card and attaching the USB with FreeBSD to the raspberry pi 3B+, I am unable to boot FreeBSD. Is there a recommend procedure to enable to boot? I am assuming my physical drive requires a hybrid MBR and GPT present. Do I have to create a hybrid 300MB MBR partition, then sudo mkfs.fat -F 16 -n EFI /dev/sdb1 and copy pftf/RPi3B+ firmware in to this partition. I assume if I'd add loader.efi as EFI/BOOT/bootaa64.efi to the EFI partition and create a freebsd-zfs partition and install to it FreeBSD would boot from that but it doesn't.

DAZ-NZ-Eng avatar Aug 06 '23 23:08 DAZ-NZ-Eng

For UEFI boot I think you just create a GPT with gpart, add an -t efi for partition 1; there goes the firmware and as you say EFI/BOOT/bootaa64.efi. Then add a -t freebsd-ufs partition and do the normal install there. For SD this definitively works. Depending on FreeBSD release and whether you use HDMI or serial you may have to set different options. On 2nd thought I am not sure if the SD cards were hybrids to start with; I have notes from older days here https://wiki.freebsd.org/BjoernZeeb/RPi

bzfbd avatar Aug 12 '23 21:08 bzfbd

I followed Bjorn's guide. I am using pftf V1.39, FreeBSD-13.2-RELEASE-arm64-aarch64-disc1.iso.

When FreeBSD OS initiates, I noted that: ue0: on muge0 raspberry pi . . . ue0: link state changed to down

When it reached this point of the boot, It consistently freezes at this line every time.

However, I have managed to boot as root when I select SAFE mode and SINGLE USER in FreeBSD initial boot option.

DAZ-NZ-Eng avatar Aug 13 '23 04:08 DAZ-NZ-Eng