Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2019 17:48:44 -0600
From:      Rebecca Cran <bcran@freebsd.org>
To:        Niclas Zeising <zeising+freebsd@daemonic.se>, Dimitry Andric <dim@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all <svn-src-all@freebsd.org>, src-committers <src-committers@freebsd.org>
Subject:   Re: svn commit: r351831 - in head: . stand/efi/boot1 stand/efi/gptboot tools/build/mk
Message-ID:  <e1938149-0b2e-eb67-3414-d1bedf3d1ed6@freebsd.org>
In-Reply-To: <b9066733-5706-da08-438c-da5e43ec9b85@daemonic.se>
References:  <201909042055.x84KtnH6078288@repo.freebsd.org> <597F1636-E881-4ECF-A341-1C2F658CFB4F@FreeBSD.org> <b9066733-5706-da08-438c-da5e43ec9b85@daemonic.se>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--5Vxwo1TQFsHoubwzfMgtwxUaff663Eyw4
Content-Type: multipart/mixed; boundary="ySXdl4I37JncSD6nP3Vj0p2iJFz3u2dGM";
 protected-headers="v1"
From: Rebecca Cran <bcran@freebsd.org>
To: Niclas Zeising <zeising+freebsd@daemonic.se>,
 Dimitry Andric <dim@FreeBSD.org>
Cc: svn-src-head@freebsd.org, svn-src-all <svn-src-all@freebsd.org>,
 src-committers <src-committers@freebsd.org>
Message-ID: <e1938149-0b2e-eb67-3414-d1bedf3d1ed6@freebsd.org>
Subject: Re: svn commit: r351831 - in head: . stand/efi/boot1
 stand/efi/gptboot tools/build/mk
References: <201909042055.x84KtnH6078288@repo.freebsd.org>
 <597F1636-E881-4ECF-A341-1C2F658CFB4F@FreeBSD.org>
 <b9066733-5706-da08-438c-da5e43ec9b85@daemonic.se>
In-Reply-To: <b9066733-5706-da08-438c-da5e43ec9b85@daemonic.se>

--ySXdl4I37JncSD6nP3Vj0p2iJFz3u2dGM
Content-Type: text/plain; charset=windows-1252
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 2019-09-05 02:41, Niclas Zeising wrote:

> mount -t msdosfs /dev/ada0p1 /mnt # (if that's the ESP, check with gpar=
t
> list)
> cp /boot/loader.efi /mnt/EFI/FreeBSD/loader.efi
> umount /mnt
>=20
> This works if proper EFI boot variables have been set up.=A0 This can b=
e
> done with, it's only needed the first time, or if they are somehow
> overwritten.
>=20
> efibootmgr --create --activate --label FreeBSD --loader
> /dev/ada0p1:/EFI/FreeBSD/loader.efi
>=20
> Once again, check that /dev/ada0p1 is the ESP.
> You can check your efi boot variables with efibootmgr -v

Or, if you prefer not to rely on EFI boot variables (for example, Linux
GRUB EFI updates seem to reset them, deleting the FreeBSD entries), you
can also copy loader.efi into /mnt/EFI/BOOT/BOOTx64.efi (replace
BOOTx64.efi with BOOTarm.efi for ARM, and BOOTaa64.efi for AARCH64).

EFI\BOOT\BOOTx64.efi is the default place where UEFI system firmware
looks to run a bootloader from, given no EFI boot variables. I think
it's only supposed to be for removable media, but I've not come across
any that differentiate between fixed and removable.

--=20
Rebecca Cran


--ySXdl4I37JncSD6nP3Vj0p2iJFz3u2dGM--

--5Vxwo1TQFsHoubwzfMgtwxUaff663Eyw4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEH7l9m2RN073jRiviDQIrUxG+ECAFAl1xnuwACgkQDQIrUxG+
ECDuyA//YSm+1dAATLysXxOEGmI9Nvcc+j5LfT79JljvCBlY9RfYHAP9Y919HOwx
KpiOJSEkeCFn18U4MRcF8liifaJP+rzDjDrQbwfYPJoM15uVIp3cFYCJiRMsD3NX
aASWYnvFQmTOpqKcLqKKZsEgB519wilOqk1b9uVwwIRSm5PZQJ7UcJ5UKqMPoWnE
Bkzg0LjSs15Ou75ilveEGn/Bcp9ahwzVEdzwveWvzRqKzzuZC8Lb2lYfm35Kz7/s
opOoBIrtoGeVBBCyxqZghhqdo9rhwd8E89jqKUlP4rbnsK2ZZr7UwBxvz4Xb7Wwb
cuqhEY2AMTVBA8d6n3wI4aMztEG772AuFZQYAhgN2XzWT5lzJMx9jIR/IqwPv3Xp
T5XCsLrFwWV4Ziwn7xaS7pUXbnm/LAz3uX2on61dc+LHCcro1XQfY64VXyjr7B6j
AelGwkSPcO/kExBFcGpyc07cKjyJ6RFKjI8gg0ILBUH82diepcckEq8nDnlRRkFr
S7UCsEyzlN95MK71yD6yVsJ8PNbqaicOD7SwkyQm/babvDRPMhOcnlnjQnr70YV9
qCU4/V75WNjh0v5fy9zi6WxASxPTwo+gu+0EMjlAdyI0mbNiDBGFl1MuBNFbpbXJ
nprhL10igPBRcHzTKYse3MPOKZWbp4P3y4RhsBd4pc0r8VB/Oh8=
=cbbJ
-----END PGP SIGNATURE-----

--5Vxwo1TQFsHoubwzfMgtwxUaff663Eyw4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e1938149-0b2e-eb67-3414-d1bedf3d1ed6>