[go: up one dir, main page]

Skip to content
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

Unable to boot FreeBSD EFI #43

Open
DAZ-NZ-Eng opened this issue Aug 6, 2023 · 2 comments
Open

Unable to boot FreeBSD EFI #43

DAZ-NZ-Eng opened this issue Aug 6, 2023 · 2 comments

Comments

@DAZ-NZ-Eng
Copy link
DAZ-NZ-Eng commented Aug 6, 2023

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.

@bzfbd
Copy link
bzfbd commented Aug 12, 2023

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

@DAZ-NZ-Eng
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants