LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 11-21-2014, 09:07 AM   #1
angryfirelord
Member
 
Registered: Dec 2005
Distribution: Fedora, CentOS
Posts: 515

Rep: Reputation: 66
Has anyone tested UEFI with FreeBSD 10.1?


I'm having some problems installing FreeBSD under UEFI. The image itself is able to boot ok under UEFI and I'm able to install it, but after rebooting there's no entry to boot from. Linux has a tool called efibootmgr, but that doesn't seem to exist under FreeBSD.

I've stuck with the default partition layout, which is a small efi partition followed by a / and swap partition. The installer doesn't set a mount for it by default. I've tried adding a mount point (such as /boot or /boot/efi), but it doesn't work either.

My suspicion is that the efi parition isn't being formatted correctly (the FreeBSD wiki does say that some EFI boards won't recognize a FAT32 partition formatted by FreeBSD) or that the EFI partition isn't being registered correctly. Unfortunately, there isn't a lot of information out there, so I can only guess at this point. If anyone else has installed FreeBSD via UEFI, what did you have to do to get it to work?
 
Old 11-22-2014, 03:03 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You may want to look into the Grub-pcbsd port to use UEFI. You'll need to draft your grub.cfg using the package notes. If you need to boot, try using the DVD to load the system.

You may also need to try boot0cfg to automatically detect and install the FreeBSD boot loader as well.

Last edited by ReaperX7; 11-22-2014 at 03:04 AM.
 
Old 11-26-2014, 09:59 PM   #3
angryfirelord
Member
 
Registered: Dec 2005
Distribution: Fedora, CentOS
Posts: 515

Original Poster
Rep: Reputation: 66
Thanks. I'll look into PC-BSD's installer and see how it works.

boot0cfg appears to be for MBR partitions.
 
Old 12-21-2014, 02:46 PM   #4
mk2soldier
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Rep: Reputation: Disabled
I'm also very interested in this possibility. Has the situation changed in this regard?
 
Old 12-22-2014, 03:40 AM   #5
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by angryfirelord View Post
boot0cfg appears to be for MBR partitions.
Yes.

boot0config is usually used for installing the interactive boot manager or restoring the MBR. It is not exactly the bootloader, just one stage of the boot process. boot0 is actually the MBR code.

In a nutshell boot process is boot0 -> boot1 -> BTX server -> [boot2 -> loader] -> kernel -> init

You can use gpart to do the same on GPT disks.
Code:
% man gpart
 
Old 12-25-2014, 05:29 AM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You should have a boot, uefi, swap, and root partition setup at least with a GPT layout.

The layout should be (or close enough to this):

Code:
/dev/ada0a1 - /boot - UFS2
/dev/ada0a2 - /boot/efi - EFI
/dev/ada0a3 - swap - swap
/dev/ada0a4 - /(root) - ZFS or UFS2
Also... The UEFI disk should be used for UEFI installs, not the normal disk.

Last edited by ReaperX7; 12-25-2014 at 05:31 AM.
 
Old 04-05-2015, 05:31 PM   #7
angryfirelord
Member
 
Registered: Dec 2005
Distribution: Fedora, CentOS
Posts: 515

Original Poster
Rep: Reputation: 66
Just as a followup to this, I was able to boot a EFI-enabled install in VirtualBox, but not on real hardware or in VMWare Player. If anyone else wants to try it in VBox (with a VM named FreeBSD), this is what I did to prepare it.
Code:
VBoxManage modifyvm FreeBSD --firmware efi
VBoxManage setextradata FreeBSD VBoxInternal2/EfiGopMode 1
I suspect the problem is that the EFI implementation in various motherboards is different. There is a bug filed that says it doesn't work on ASRock boards.

https://bugs.freebsd.org/bugzilla/sh....cgi?id=195719

Last edited by angryfirelord; 04-05-2015 at 05:32 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM ssenuta Linux - Hardware 0 08-27-2012 09:11 PM
How thoroughly is slackware stable tested? drokmed Slackware 28 01-22-2009 10:48 PM
Workable linux I tested jody001 General 24 05-08-2005 09:43 AM
the new ati drivers anybody tested ? deepdark SUSE / openSUSE 17 01-26-2005 05:44 PM
Has anyone tested Exeem ??? UsualTuxpect Linux - Software 3 01-22-2005 02:16 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 06:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration