View previous topic :: View next topic |
Author |
Message |
bammbamm808 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/18329766673e8917a04b1b6.jpg)
Joined: 08 Dec 2002 Posts: 548 Location: Hawaii
|
Posted: Sat Jan 08, 2022 6:31 am Post subject: problems with /sys/firmware/efi/efivars being empty [SOLVED] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
alamahant Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 23 Mar 2019 Posts: 3950
|
Posted: Sat Jan 08, 2022 9:54 am Post subject: |
|
|
Plz try in livecd
Code: |
umount efivarfs
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
|
Do you see it populated? _________________
![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Tony0945 Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Sat Jan 08, 2022 2:45 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Anon-E-moose Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/3064969284ad468b81342a.jpg)
Joined: 23 May 2008 Posts: 6222 Location: Dallas area
|
Posted: Sat Jan 08, 2022 4:20 pm Post subject: |
|
|
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
... |
_________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bammbamm808 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/18329766673e8917a04b1b6.jpg)
Joined: 08 Dec 2002 Posts: 548 Location: Hawaii
|
Posted: Sun Jan 09, 2022 2:03 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|