Installing FreeBSD 10.0 on an UEFI PC
Stéphane Dupille
stephane at dupille.org
Mon Aug 18 13:26:55 UTC 2014
Hello,
I'm trying to install FreeBSD 10.0 on a PC, but unfortunately it has a
UEFI bios.
Here is a complete dmesg output :
https://cloud.dupille.org/public.php?service=files&t=7d5e80a821451f56bfba500e3e954cde
First, I tried to install using a GPT partition, but the BIOS, even in
Legacy mode, is unable to find the bootcode into the GPT partition.
Here is the BIOS setup:
Launch CSM Enabled
Boot option filter Legacy only
Launch PXE OpROM policy Legacy only
Launch storage OpROM policy Legacy only
Other PCI device ROM priority Legacy OpROM
Network stack Disabled
The install script into a GPT partition is here :
https://cloud.dupille.org/public.php?service=files&t=e56cbf708be34311adf097b1e64eb823
I've read somewhere that the Bios is too dumb, and when it finds a GPT
partition, it assumes that the only option to boot is from a UEFI
script, and refuses to launch bootcode.
Then, I tried to install FreeBSD using a MBR partition. But for several
reasons, I want to install it on ZFS. So I followed instructions found
here :
https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition
The install script I'm using is :
https://cloud.dupille.org/public.php?service=files&t=e2b2ee0e6ea2882fd6392008970e565c
disk=ada
disknum=1
device=${disk}${disknum}
# Now we crate partitions
gpart create -s mbr $device
gpart add -t freebsd $device
gpart create -s BSD ${device}s1
gpart set -a active -i 1 ${device}
gpart add -t freebsd-zfs ${device}s1
# bootcode
zpool create -O mountpoint=none -o altroot=/mnt zroot
/dev/${device}s1a
zpool set bootfs=zroot zroot
gpart bootcode -b /boot/boot0 $device
dd if=/boot/zfsboot of=/tmp/zfsboot1 count=1
zpool export zroot
gpart bootcode -b /tmp/zfsboot1 /dev/${device}s1
dd if=/boot/zfsboot of=/dev/${device}s1a skip=1 seek=1024
But when I boot, All I get is :
F1 FreeBSD
F5 drive 1
F6 PXE
Boot: F1
And then, nothing happens.
What could I do now ?
I still have the option to install it on a UFS partition (it boots
fairly well on the USB memstick), but I'd rather have ZFS.
Regards,
More information about the freebsd-stable
mailing list