Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Feb 2016 15:03:33 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Matthias Fechner <idefix@fechner.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Switch from legacy to UEFI boot??
Message-ID:  <alpine.BSF.2.20.1602041447560.1065@mail.fig.ol.no>
In-Reply-To: <56B353E5.9080605@fechner.net>
References:  <20160203213414.GB60231@rancor.immure.com> <alpine.BSF.2.20.1602040842580.1065@mail.fig.ol.no> <56B353E5.9080605@fechner.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 4 Feb 2016 14:36+0100, Matthias Fechner wrote:

> Am 04.02.2016 um 08:49 schrieb Trond Endrestøl:
> > If you already use the GPT partitioning scheme and can make some extra 
> > room on your harddrive, then you'll be able to create a small ESP of 
> > 800K, and populate that partition with /boot/boot1.efifat.
> > 
> > E.g.:
> > 
> > gpart create -t efi -s 800K -l esp0 ada0
> > gpart bootcode -p /boot/boot1.efifat -i <index-of-efi> ada0
> 
> is it true that currently the EFI loaded cannot boot a ZFS root?

As of r294999, stable/10's boot1.efi and loader.efi is able to boot 
ZFS. Both boot1.efi and loader.efi takes the bootfs property into 
consideration. Finally we can use the familiar loader menu, and not 
something I last saw when I used FreeBSD 4. If you use BE's, then the 
loader.efi boot menu lets you select which BE to boot from. It's a 
dream come true. I was able to scrap the 4 GiB UFS partition I 
previously used for storing /boot.

The laptop behind me is proof enough, although you can't see it and 
thus not verify my claims. It multiboots Windows 10 and FreeBSD 10, 
using rEFInd as the boot manager

rEFInd is told to load Windows' \EFI\BOOT\BOOTX64.EFI for Windows 10, 
and \FreeBSD\boot1.efi for FreeBSD 10. The EFI firmware loads the 
rEFInd boot loader by default, but I have also added EFI boot menu 
entries for Windows 10 and FreeBSD 10, should rEFInd decide to act up.

http://www.rodsbooks.com/refind/

Maybe you should wait until the next stable/10 snapshot is available, 
as the snapshot from 20150127 is one day or so behind r294999.

http://svnweb.freebsd.org/base?view=revision&revision=294999

You can use boot1.efi and loader.efi from the latest head snapshot if 
you can't wait, I did for one of my newest stable/10 VMs back home.

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-questions@freebsd.org  Thu Feb  4 14:50:47 2016
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id E355FA9A60D
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Thu,  4 Feb 2016 14:50:47 +0000 (UTC)
 (envelope-from brandon.wandersee@gmail.com)
Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com
 [209.85.213.182])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id BA52F1D74
 for <freebsd-questions@freebsd.org>; Thu,  4 Feb 2016 14:50:47 +0000 (UTC)
 (envelope-from brandon.wandersee@gmail.com)
Received: by mail-ig0-f182.google.com with SMTP id ik10so16575219igb.1
 for <freebsd-questions@freebsd.org>; Thu, 04 Feb 2016 06:50:47 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version:content-type
 :content-transfer-encoding;
 bh=+ttTgFx7jj+7zv9bLawZ63ze2PWCZSjOj9dk/sdPdlE=;
 b=hnlJi45PjVoEMK45lxqpuC2G+7HNhnDpfKc6+mckZWHIeUgwhyFmRsAd9mTFZtnIno
 7EO1YxkmKgmiHXib0njCEhm5onRYIk2LYFjLRQOv4iP6QF1uVZyPXaLyqVu6arHSRKaP
 a822dWP99zRY2CdHDusjoYPEdcZw66rT9C02+7JNdETV8InBSiiabaYHfISmrfKXJVkK
 S4hYv8zgHXf6aQgnf1Q/aUoBngmF6vVCtxS5vdBnlQ3knQcsRYb0N1WwYUDd9jy/7wC6
 Qq1s9GVrDwUOaME7RvRXMglVAAYivU1XH0hN9fG/sArNDg2MDlQRChPa6j4QrwkxChiN
 o3dA==
X-Gm-Message-State: AG10YOQRoMTZINIetNC9FM5YHE8G74Xqdhe3OmzTbyhCoU5YAFAlW+2mVKXBF1ehdbA8LA==
X-Received: by 10.50.142.9 with SMTP id rs9mr9902810igb.76.1454597446688;
 Thu, 04 Feb 2016 06:50:46 -0800 (PST)
Received: from WorkBox.Home.gmail.com (75-161-209-252.mpls.qwest.net.
 [75.161.209.252])
 by smtp.gmail.com with ESMTPSA id 63sm4943654ion.4.2016.02.04.06.50.45
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 04 Feb 2016 06:50:45 -0800 (PST)
References: <20160203213414.GB60231@rancor.immure.com>
 <alpine.BSF.2.20.1602040842580.1065@mail.fig.ol.no>
 <56B353E5.9080605@fechner.net>
 <alpine.BSF.2.20.1602041447560.1065@mail.fig.ol.no>
User-agent: mu4e 0.9.15; emacs 24.5.1
From: Brandon J. Wandersee <brandon.wandersee@gmail.com>
To: Trond =?utf-8?Q?Endrest=C3=B8l?= <Trond.Endrestol@fagskolen.gjovik.no>
Cc: Matthias Fechner <idefix@fechner.net>, freebsd-questions@freebsd.org
Subject: Re: Switch from legacy to UEFI boot??
In-reply-to: <alpine.BSF.2.20.1602041447560.1065@mail.fig.ol.no>
Date: Thu, 04 Feb 2016 08:50:44 -0600
Message-ID: <86k2mk7cmz.fsf@WorkBox.Home>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Feb 2016 14:50:48 -0000


Trond Endrestøl writes:

> On Thu, 4 Feb 2016 14:36+0100, Matthias Fechner wrote:
>>
>> is it true that currently the EFI loaded cannot boot a ZFS root?
>
> As of r294999, stable/10's boot1.efi and loader.efi is able to boot
> ZFS. Both boot1.efi and loader.efi takes the bootfs property into
> consideration... Maybe you should wait until the next stable/10
> snapshot is available...

The ZFS-compatible EFI loader is expected to be ready for 10.3-RELEASE,
which is scheduled for about six weeks from now.[1] It may be a bit more
or less time than that, depending on how things go, but the first beta
snapshot of 10.3 (which is cut from 10-STABLE) is set to be built
tomorrow. If you don't want to run a development branch, you won't have
much longer to wait. Though once that change happens, you'd have to back
up your data and reconfigure your boot scheme to make use of
ZFS-compatible UEFI booting.

[1]: https://www.freebsd.org/releases/10.3R/schedule.html

-- 
=================================================================
   		      :: Brandon Wandersee ::
                  :: brandon.wandersee@gmail.com ::
==================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1602041447560.1065>