Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Gigabyte X870E mobo UEFI issues

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
KevinC_63559
n00b
n00b
Posts: 21
Joined: Sat Jan 02, 2021 9:39 pm

Gigabyte X870E mobo UEFI issues

  • Quote

Post by KevinC_63559 » Mon Jan 20, 2025 10:26 pm

Has anybody here managed to get a Gigabyte X870E Aorus motherboard to boot Gentoo?

BIOS is not behaving as I expected and dynamically creates the boot order upon reset, ignoring any EFIBOOTMGR configurations defined.

So far I have not stumbled across the magic sauce required. Had a similar problem with an MSI X870E mobo (although this was just one of many issues on the MSI stuff).

I have a single VFAT partition on a NVME drive, mounted as /efi. Directory structure is /efi/EFI/BOOT per the standard default, but can't seem to get the BIOS to load any *.EFI files I have there. I've BOOT86.EFI per the standard, with that being a copy of my bzImage and it recognizes it as an OS, but no signs of loading. Tried with Grub, both with the default name and making that as BOOT86.EFI and it doesn't see anything.

Of course have things like GRUB_PLATFORMS="efi-64" in /etc/portage/make.conf.
Have GRUB_CFG=/efi/EFI/BOOT/grub.cfg and a kernel "make install" is in fact calling installkernel and created the grub.cfg as expected.
Ramdisk and vmLinux are being created on /boot, both wife and without USE="efistub" - basically all combinations I can think of.

Handbook recommends XFS for root. /boot is a separate EXT3 partition (last pass, was getting desperate), but root itself is XFS.

I've tried /, /usr, and /var all in one partition to remove the requirement to use an initramfs, still no luck.

Suggestions?
Top
sublogic
Guru
Guru
User avatar
Posts: 385
Joined: Mon Mar 21, 2022 3:02 am
Location: Pennsylvania, USA

Re: Gigabyte X870E mobo UEFI issues

  • Quote

Post by sublogic » Tue Jan 21, 2025 1:37 am

KevinC_63559 wrote:I have a single VFAT partition on a NVME drive, mounted as /efi. Directory structure is /efi/EFI/BOOT per the standard default, but can't seem to get the BIOS to load any *.EFI files I have there. I've BOOT86.EFI per the standard, with that being a copy of my bzImage and it recognizes it as an OS, but no signs of loading. Tried with Grub, both with the default name and making that as BOOT86.EFI and it doesn't see anything.
Shouldn't that be BOOTX64.EFI ?
Top
pietinger
Moderator
Moderator
Posts: 6613
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: Gigabyte X870E mobo UEFI issues

  • Quote

Post by pietinger » Tue Jan 21, 2025 2:15 am

sublogic wrote:Shouldn't that be BOOTX64.EFI ?
I would like to add this information: Many (all?) UEFIs check at system startup whether the file specified by a UEFI entry really exists; and if not, that entry is silently deleted.
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
KevinC_63559
n00b
n00b
Posts: 21
Joined: Sat Jan 02, 2021 9:39 pm

Re: Gigabyte X870E mobo UEFI issues

  • Quote

Post by KevinC_63559 » Tue Jan 21, 2025 4:11 am

sublogic wrote:Shouldn't that be BOOTX64.EFI ?
Tis what I get from typing from memory. You are correct and it is...
Top
KevinC_63559
n00b
n00b
Posts: 21
Joined: Sat Jan 02, 2021 9:39 pm

Re: Gigabyte X870E mobo UEFI issues

  • Quote

Post by KevinC_63559 » Tue Jan 21, 2025 4:20 am

pietinger wrote: I would like to add this information: Many (all?) UEFIs check at system startup whether the file specified by a UEFI entry really exists; and if not, that entry is silently deleted.
Apparently permanently. Really wishing I could just go back to CSM/Legacy mode and use LILO - that was SO easy, but CSM mode on this bleeding edge board doesn't work as expected either.

I reinstalled, and have GRUB popping up now. No idea what I did differently, but it gets past "loading Linux 6.6.67-gentoo" and hangs on "loading initial ramdisk". Out of desperation, I tried copy the *.img and kernel files up to /efi/EFI/Gentoo, but naturally that didn't do anything.

Thinking about reformatting root as EXT4 instead of XFS, just to eliminate another variable.
Top
KevinC_63559
n00b
n00b
Posts: 21
Joined: Sat Jan 02, 2021 9:39 pm

  • Quote

Post by KevinC_63559 » Tue Jan 21, 2025 4:33 am

XFS -> EXT4: same symptom

FWIW /boot is separate EXT3 filesystem - not that it should matter.

Still looking for suggestions please!
Top
pietinger
Moderator
Moderator
Posts: 6613
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: Gigabyte X870E mobo UEFI issues

  • Quote

Post by pietinger » Tue Jan 21, 2025 2:02 pm

KevinC_63559 wrote:[...] but it gets past "loading Linux 6.6.67-gentoo" and hangs on "loading initial ramdisk". [...]
We had this problem quite often ... and it was always some missing options in the (manually configured) kernel ->
https://wiki.gentoo.org/wiki/User:Pieti ... nd_Console
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
KevinC_63559
n00b
n00b
Posts: 21
Joined: Sat Jan 02, 2021 9:39 pm

Re: Gigabyte X870E mobo UEFI issues

  • Quote

Post by KevinC_63559 » Tue Jan 21, 2025 10:58 pm

pietinger wrote: We had this problem quite often ... and it was always some missing options in the (manually configured) kernel ->
https://wiki.gentoo.org/wiki/User:Pieti ... nd_Console
First and foremost: THANK YOU for putting that outstanding document together. I've been doing linux since Slackware 0.96 kernel (loaded via 4 1.44mb floppies) and Gentoo basically forever. Just the comment about using "/" with 'make menuconfig' is (since I somehow missed it) and lifeline. I just spent several hours going through your doc.

Rather hoping my lack of framebuffer settings was the problem...

OK - progress. Have to undo some things like installing grub.cfg in the /efi filetree. Manual copy from there to /boot/grub managed to get a system boot! That failed, but making progress.

Purged everything in /efi and /boot and reran 'grub-install' and 'make install'. Found it interesting that 'make install' created an initframfs (enabled in kernel because zfs_mod seems to want it and trying to keep builds clean). Good thing I did, my /usr mount point is /dev/vg/usr - an LVM device. Reinstalled dracut and ran a new 'make install'... and we are booted!

Now just fixing up a few things, like the kernel renaming my eth0 device. Been there, done that... no biggie.
Last edited by KevinC_63559 on Tue Jan 21, 2025 11:22 pm, edited 1 time in total.
Top
KevinC_63559
n00b
n00b
Posts: 21
Joined: Sat Jan 02, 2021 9:39 pm

Re: Gigabyte X870E mobo UEFI issues

  • Quote

Post by KevinC_63559 » Tue Jan 21, 2025 11:19 pm

KevinC_63559 wrote:[
Now just fixing up a few things, like the kernel renaming my eth0 device. Been there, done that... no biggie.
FWIW - this is now trivial. Edit /etc/default/grub and uncomment the line: GRUB_CMDLINE_LINUX="net.ifnames=0"
Top
pietinger
Moderator
Moderator
Posts: 6613
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: Gigabyte X870E mobo UEFI issues

  • Quote

Post by pietinger » Wed Jan 22, 2025 3:07 pm

KevinC_63559 wrote:[...] Reinstalled dracut and ran a new 'make install'... and we are booted!
Happy to hear that! :D
KevinC_63559 wrote:First and foremost: THANK YOU for putting that outstanding document together. [...]
You are very Welcome! :D
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Post Reply

10 posts • Page 1 of 1

Return to “Installing Gentoo”

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