Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

problems with /sys/firmware/efi/efivars being empty [SOLVED]

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
bammbamm808
Guru
Guru
User avatar
Posts: 558
Joined: Sun Dec 08, 2002 7:09 am
Location: Hawaii

problems with /sys/firmware/efi/efivars being empty [SOLVED]

  • Quote

Post by bammbamm808 » Sat Jan 08, 2022 6:31 am

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.
Last edited by bammbamm808 on Sun Jan 09, 2022 2:02 am, edited 1 time in total.
MSI MAG B550 Tomahawk
Ryzen 3900x
32Gb Samsung B-die (16GB dual rank x2) DDR4 @ 3200MHz, cl14
Geforce RTX 4070S 8GB
Samsung m.2 NVME pcie-3.0
Etc....
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Sat Jan 08, 2022 9:54 am

Plz try in livecd

Code: Select all

umount efivarfs
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
Do you see it populated?
:)
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Sat Jan 08, 2022 2:45 pm

So is mine but I have no trouble booting:

Code: Select all

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 ..
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sat Jan 08, 2022 4:20 pm

From my .config (everything selected *EFI*)

Code: Select all

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: Select all

$ 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: Select all

$ 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
...
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
bammbamm808
Guru
Guru
User avatar
Posts: 558
Joined: Sun Dec 08, 2002 7:09 am
Location: Hawaii

  • Quote

Post by bammbamm808 » Sun Jan 09, 2022 2:03 am

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 4070S 8GB
Samsung m.2 NVME pcie-3.0
Etc....
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic