|
FreeBSD Installation and Upgrading Installing and upgrading FreeBSD. |
|
Thread Tools | Display Modes |
|
||||
Disclaimer: I have zero experience with zfs and I haven't installed FreeBSD in a while.
However, I do know that to boot in UEFI mode you will need a FAT-formatted EFI system partition (type "0xEF" in the old MBR nomenclature) with FreeBSD's EFI loader placed at $ESP/EFI/BOOT/BOOTX64.EFI — any UEFI firmware should boot that loader automatically if it is found at that location.
__________________
Destruam et ædificabo |
|
||||
Holy crap, that sounds tedious. But, of course, many thanks for the pointer.
I wonder if the "EFI system partition (ESP)" could be a FAT formatted USB thumbdrive with some minimum set of files to get UEFI up then it redirects booting to continue from the otherwise independent ZFS-based system? If there are any FreeBSD wizards or warriors out there who could help sort out this process, it seems like the recipe would be a nicety for other users. My system would certainly be in better shape. Without UEFI, the display is hideous; with it, the display looks pretty slick. Last edited by hanzer; 20th October 2017 at 12:30 AM. Reason: smilulator |
|
||||
I last installed FreeBSD over a year ago but UEFI was handled automagically, albeit without ZFS; did the installer attempt to create an EFI system partition itself?
Quote:
Whether the FreeBSD .efi loader will find your ZFS root on another drive is another question entirely and one that you are in a much better position to answer than I
__________________
Destruam et ædificabo Last edited by Head_on_a_Stick; 20th October 2017 at 05:42 AM. Reason: typos |
|
||||
I've got to backup some data before experimenting, probably this weekend. Research suggests that it might be possible but I am still fuzzy on many of the details. For the record, and those who wish to follow, here are a few relevant data points:
https://wiki.freebsd.org/UEFI https://lists.freebsd.org/pipermail/...st/048141.html https://svnweb.freebsd.org/base?view...evision=294999 https://www.freebsd.org/news/status/...FI-Boot/Loader |
|
||||
Solved
This worked! The system is a typical root on a two-disk ZFS mirror (ada0, ada1) installed from FreeBSD-11.1-RELEASE-amd64-memstick.img. After that, a USB flash drive (da0) is configured to load UEFI like this:
Code:
gpart destroy -F da0 gpart create -s gpt da0 gpart add -s 800K -t efi da0 gpart add -t freebsd-ufs da0 gpart show da0 => 40 31260592 da0 GPT (15G) 40 1600 1 efi (800K) 1640 31258992 2 freebsd-ufs (15G) newfs_msdos da0p1 newfs -t da0p2 mount -t msdosfs /dev/da0p1 /mnt mkdir -p /mnt/efi/boot cp /boot/boot1.efi /mnt/efi/boot/BOOTx64.efi mkdir -p /mnt/boot cat > /mnt/boot/loader.rc << EOF unload set currdev=zfs:zroot/ROOT/default: load boot/kernel/kernel load boot/kernel/zfs.ko autoboot EOF Edit: I forgot to mention that the machine's BIOS was configured to boot from the flash drive (da0) in UEFI mode for this to work. Last edited by hanzer; 20th October 2017 at 11:00 PM. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boot i386, install amd64 | beiroot | OpenBSD Installation and Upgrading | 4 | 10th May 2017 12:10 AM |
Can't boot after successful install of 5.9 amd64 on a macbook 4.1 | fvgit | OpenBSD Installation and Upgrading | 12 | 5th February 2017 11:39 PM |
openbsd don't boot of AMD64 | philo_neo71 | OpenBSD Installation and Upgrading | 3 | 19th October 2015 09:42 AM |
FreeBSD 7 EOL and UEFI | shep | News | 0 | 8th March 2013 01:51 AM |
Allow i386 and amd64 to boot from extended DOS partitions | lvlamb | OpenBSD General | 4 | 16th July 2008 03:24 PM |