Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can my machine be magically switching from UEFI to BIOS?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mauricev
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 202

PostPosted: Sun Jan 03, 2021 5:01 am    Post subject: How can my machine be magically switching from UEFI to BIOS? Reply with quote

Setup an UDOO Bolt to boot up with in default UEFI mode. Set up partitions as follows

Code:
Disklabel type: gpt
Disk identifier: 08291972-7D75-4AD4-AACB-6D5F87F6E9C7

Device           Start       End   Sectors   Size Type
/dev/nvme0n1p1    2048   1050623   1048576   512M EFI System
/dev/nvme0n1p2 1050624   7342079   6291456     3G Linux swap
/dev/nvme0n1p3 7342080 250067632 242725553 115.7G Solaris /usr & Apple ZFS


Grub was installed as follows in a chrooted environment

Code:
grub-install --efi-directory=/boot/efi


The executable grubx64.efi sits in /boot/efi.

But when I boot up and check dmesg for efi, I get
Code:
dmesg| grep efi
[    0.024473] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[    2.016564] tsc: Refined TSC clocksource calibration: 1996.245 MHz


Similarly, ls of /sys/firmware lists the following directories
Code:
acpi  memmap  qemu_fw_cfg


efi should be there, but it isn't. It appears as if the machine somehow decided to boot BIOS style and not UEFI.

However, if I remove grubx64.efi, the system just loops into the BIOS setup screen and can't boot confirming it's executing this file to boot, so how can it do this?
Back to top
View user's profile Send private message
mauricev
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 202

PostPosted: Sun Jan 03, 2021 6:18 am    Post subject: Reply with quote

My system was, in fact, booting with UEFI all along. I am using a custom kernel and I had the EFI related configuration disabled. Once I enabled it, EFI is now showing up in dmesg and in /sys/firmware.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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