Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with /sys/firmware/efi/efivars being empty [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 548
Location: Hawaii

PostPosted: Sat Jan 08, 2022 6:31 am    Post subject: problems with /sys/firmware/efi/efivars being empty [SOLVED] Reply with quote

New motherboard: CSM is off in bios. Windows installed and runs in UEFI mode just fine. Gentoo install still exists, with a known-good efi partition and everything. As a matter of fact, Windows is using this partition for its own boot loader. I went to add rEFInd to EFI boot list with efibootmgr using the latest min install cd on a usb boot drive. Found I could not remount my /sys/firmware/efi/efivars rw. /sys/firmware/efi/efivars exists outside the chroot, but is empty even after loading the efivars module. I guess this is due to the changes in 5.15. Any pointers appreciated.
_________________
MSI MAG B550 Tomahawk
Ryzen 3900x
32Gb Samsung B-die (16GB dual rank x2) DDR4 @ 3200MHz, cl14
Geforce RTX 2070S 8GB
Samsung m.2 NVME pcie-3.0
Etc....


Last edited by bammbamm808 on Sun Jan 09, 2022 2:02 am; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Jan 08, 2022 9:54 am    Post subject: Reply with quote

Plz try in livecd
Code:

umount efivarfs
mount -t efivarfs efivarfs /sys/firmware/efi/efivars

Do you see it populated?
_________________
:)
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sat Jan 08, 2022 2:45 pm    Post subject: Reply with quote

So is mine but I have no trouble booting:
Code:
MSI ~ # ls /sys/firmware
acpi  dmi  efi  memmap
MSI ~ # ls /sys/firmware/efi
config_table  esrt              fw_vendor  runtime-map  vars
efivars       fw_platform_size  runtime    systab
MSI ~ # ls /sys/firmware/efi/efivars
MSI ~ # ls /sys/firmware/efi/efivars -al
total 0
dr-xr-xr-x 2 root root 0 Jan  4 05:42 .
drwxr-xr-x 6 root root 0 Jan  4 05:42 ..
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sat Jan 08, 2022 4:20 pm    Post subject: Reply with quote

From my .config (everything selected *EFI*)

Code:
CONFIG_EFI=y
CONFIG_EFI_STUB=y
CONFIG_EFI_PARTITION=y
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
CONFIG_EFI_VARS=m
CONFIG_EFI_ESRT=y
CONFIG_EFI_RUNTIME_WRAPPERS=y
CONFIG_EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER=y
CONFIG_EFIVAR_FS=m


Note: EFI_VARS and EFIVAR_FS are selected as modules, but it will only use one, EFIVAR_FS is the preferred (newer) version, but I selected both anyway.

Code:
$ dir /sys/firmware/efi/
total 0
drwxr-xr-x 4 root root    0 Dec 30 00:36 .
drwxr-xr-x 6 root root    0 Dec 30 00:36 ..
-r--r--r-- 1 root root 4.0K Jan  8 06:24 config_table
drwxr-xr-x 2 root root    0 Dec 30 00:36 efivars
drwxr-xr-x 3 root root    0 Jan  8 06:24 esrt
-r--r--r-- 1 root root 4.0K Jan  8 06:24 fw_platform_size
-r--r--r-- 1 root root 4.0K Jan  8 06:24 fw_vendor
-r--r--r-- 1 root root 4.0K Jan  8 06:24 runtime
-r-------- 1 root root 4.0K Jan  8 06:24 systab


Both efivars and esrt have files under them.

Code:
$ dir /sys/firmware/efi/efivars/|head
total 0
drwxr-xr-x 2 root root    0 Dec 30 00:36 .
drwxr-xr-x 4 root root    0 Dec 30 00:36 ..
-rw-r--r-- 1 root root  132 Dec 30 00:36 AMD_PBS_SETUP-a339d746-f678-49b3-9fc7-54ce0f9df226
-rw-r--r-- 1 root root   12 Dec 30 00:36 AMD_RAID-fe26a894-d199-47d4-8afa-070e3d54ba86
-rw-r--r-- 1 root root   28 Dec 30 00:36 AMITCGPPIVAR-a8a2093b-fefa-43c1-8e62-ce526847265e
-rw-r--r-- 1 root root 1.1K Dec 30 00:36 AOD_SETUP-5ed15dc0-edef-4161-9151-6014c4cc630c
-rw-r--r-- 1 root root   14 Dec 30 00:36 AmdAcpiVar-79941ecd-ed36-49d0-8124-e4c31ac75cd4
-rw-r--r-- 1 root root 1.6K Dec 30 00:36 AmdSetup-3a997502-647a-4c82-998e-52ef9486a247
-rw-r--r-- 1 root root    8 Dec 30 00:36 AmiHardwareSignatureSetupUpdateCountVar-81c76078-bfde-4368-9790-570914c01a65
...

_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 548
Location: Hawaii

PostPosted: Sun Jan 09, 2022 2:03 am    Post subject: Reply with quote

Just so happens that when fiddling in my new motherboard's bios late one night, I inadverdantly flipped the NX bit off. Thanks for all who tried to help.
_________________
MSI MAG B550 Tomahawk
Ryzen 3900x
32Gb Samsung B-die (16GB dual rank x2) DDR4 @ 3200MHz, cl14
Geforce RTX 2070S 8GB
Samsung m.2 NVME pcie-3.0
Etc....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum