On Sat, Jun 27, 2020 at 8:04 PM Yasuhiro KIMURA <yasu at utahime.org> wrote:> > On UEFI booted 11.4-RELEASE system `efivar -l` fails as following. > > root at rolling-vm-freebsd3[160]# uname -a > FreeBSD rolling-vm-freebsd3.home.utahime.org 11.4-RELEASE FreeBSD 11.4-RELEASE #0 r362094: Fri Jun 12 18:27:15 UTC 2020 root at releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > root at rolling-vm-freebsd3[161]# efivar -l > efivar: Error listing names: No such file or directory > root at rolling-vm-freebsd3[162]# > > It also happens with latest (20200625) 11-STABLE snapshot, but not > with either 12.1-RELEASE or 13-CURRENT. >Hi, This should be an easy fix. :-) EFI Runtime Services on FreeBSD ("EFIRT") wasn't necessarily globally stable until right around 12.0. For 11.x, you'll need to `kldload efirt` or add `options EFIRT` to your kernel config before efivar/efibootmgr become usable. Thanks, Kyle Evans
From: Kyle Evans <kevans at freebsd.org> Subject: Re: `efivar -l` fails on UEFI booted 11.4-RELEASE Date: Sat, 27 Jun 2020 21:21:10 -0500> This should be an easy fix. :-) EFI Runtime Services on FreeBSD > ("EFIRT") wasn't necessarily globally stable until right around 12.0. > For 11.x, you'll need to `kldload efirt` or add `options EFIRT` to > your kernel config before efivar/efibootmgr become usable.Thank you for reply. After loading efirt.ko `efivar -l` succesfully lists UEFI environment variables. --- Yasuhiro KIMURA
On 28 Jun 2020, at 04:21, Kyle Evans <kevans at FreeBSD.org> wrote:> > On Sat, Jun 27, 2020 at 8:04 PM Yasuhiro KIMURA <yasu at utahime.org> wrote: >> >> On UEFI booted 11.4-RELEASE system `efivar -l` fails as following. >> >> root at rolling-vm-freebsd3[160]# uname -a >> FreeBSD rolling-vm-freebsd3.home.utahime.org 11.4-RELEASE FreeBSD 11.4-RELEASE #0 r362094: Fri Jun 12 18:27:15 UTC 2020 root at releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >> root at rolling-vm-freebsd3[161]# efivar -l >> efivar: Error listing names: No such file or directoryPerhaps the efivar utility could suggest loading the module in this case? -Dimitry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 223 bytes Desc: Message signed with OpenPGP URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20200628/d72ebb81/attachment.sig>