Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bare bones EFI boot setup
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
venquessa
n00b
n00b


Joined: 07 Mar 2015
Posts: 17

PostPosted: Tue May 08, 2018 12:47 pm    Post subject: Bare bones EFI boot setup Reply with quote

So I have long been holding out with MBR but a new system with Windows 10 installed kind of forces my hand to boot Linux from GPT/EFI.

I have found rEFInd and managed to get as far as it's boot screen booting windows.

I tried creating the refind_linux.cfg with PARTUUIDs and kernel parameters, but the boot screen doesn't list these.

I have also found a dozen different guides, but they tend to list about 6 different ways to do things with very few details or explanation or are guides based on one approach with every bell and whistle turned on.

I want to do the minimum I need to do to get Windows 10 and Gentoo Linux boot options. I can add to it / improve it and add bells and whistles later.

My options are to continue with the rEFInd approach and find out what I am missing, or move to letting Linux manage the /boot folder and EFI bootloader. The later slightly worries me that I could inadvertantly break the Windows 10 install as well in the meantime.

So, does anyone have a link to a basic, no frills EFI setup for Gentoo guide?

Mod edit: Corrected an apparent typo in the title. If this isn't what you intended, ping me and I'll put it back. — JRG
Back to top
View user's profile Send private message
Hieronymus Bosch
n00b
n00b


Joined: 29 Jan 2015
Posts: 67
Location: 31°45′33.14″N 106°29′24.63″W

PostPosted: Tue May 08, 2018 3:27 pm    Post subject: Reply with quote

Well I used the following link the last time for my Gentoo - Windows 10 laptop, I installed rEFInd on Windows.

https://wiki.gentoo.org/wiki/UEFI_Dual_boot_with_Windows_7/8

Something very important, some Windows updates could remove the rEFInd so if that happens you must reinstall rEFInd again. An example of which Windows update to be careful is the Fall Creators update.
_________________
Details fueled any investigation ...
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7458
Location: Goose Creek SC

PostPosted: Tue May 08, 2018 4:53 pm    Post subject: Reply with quote

Does your computer have a linux kernel installed anywhere? rEFInd can't find what is not there.
rEFInd by default will show icons for files ending in .efi or starting with vmlinuz or bzImage. If you have linux kernels on your system are they so named?
Concur with Hieronymus Bosch recommending https://wiki.gentoo.org/wiki/UEFI_Dual_boot_with_Windows_7/8 .

BTW you can have a bullet proof rEFInd:
Visit https://www.rodsbooks.com/refind/getting.html ,download the item "A USB flash drive image file", dd it to a flash drive (if you use one of the tiny flash drives you can install it on your laptop and leave it in.), select UEFI mode or UEFI and Legacy mode and the rEFInd usb as first boot option in the UEFI firmware. Any problems with booting the OS of your choice will not be due to rEFInd.
2nd BTW, don't forget to disable secure boot.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Tue May 08, 2018 5:03 pm    Post subject: Reply with quote

Yea, I followed that guide, although I started with another guide. It's a bit confusing.

The Gentoo Handbook branches now for systemd. systemd then led me to EFI booting, so I'm having to follow three guides!

I have linux kernels, I put them into a folder called Gentoo in the /boot partition.

I think I might be missing the EFI Stub settings for the kernel though.

Note, this is not my first Gentoo rodeo. I've been a from source builder for about 12 years now, Gentoo for 10 of those. It is however my first GPT/UEFI system and my first systemd system.

I'll do the EFI Stub options and see if that helps.
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
venquessa
n00b
n00b


Joined: 07 Mar 2015
Posts: 17

PostPosted: Tue May 08, 2018 6:22 pm    Post subject: Reply with quote

Okay that helped. I can see the kernels in the refind menu, the kernel doesn't begin to start, it just hangs with the EFI message.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7458
Location: Goose Creek SC

PostPosted: Tue May 08, 2018 7:24 pm    Post subject: Reply with quote

pastebin the output of lspci -k, parted -l, and your kernel config please
_________________
Defund the FCC.
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Wed May 09, 2018 8:22 am    Post subject: Reply with quote

DONAHUE wrote:
pastebin the output of lspci -k, parted -l, and your kernel config please


I will do when I get home.

There is a chance I messed up something in the kernel config, I have been working with zcat /proc/config.gz kernels for quite a few years. Considered starting with that config from my previous system but thought I'd try a fresh config.
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
venquessa
n00b
n00b


Joined: 07 Mar 2015
Posts: 17

PostPosted: Wed May 09, 2018 5:40 pm    Post subject: Reply with quote

Code:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex                                                                                                                                                                               
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1451                                                                                                                                                                                                                 
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge                                                                                                                                                                     
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453                                                                                                                                                                                                             
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge                                                                                                                                                                     
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge                                                                                                                                                                     
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453                                                                                                                                                                                                             
00:03.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453                                                                                                                                                                                                             
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge                                                                                                                                                                     
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge                                                                                                                                                                     
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B                                                                                                                                                         
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge                                                                                                                                                                     
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B                                                                                                                                                         
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 59)                                                                                                                                                                                               
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)                                                                                                                                                                                                 
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0                                                                                                                                                       
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1                                                                                                                                                       
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2                                                                                                                                                       
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3                                                                                                                                                       
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4                                                                                                                                                       
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5                                                                                                                                                       
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric Device 18h Function 6                                                                                                                                                         
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7                                                                                                                                                       
01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43d0 (rev 01)                                                                                                                                                                                               
01:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43c8 (rev 01)                                                                                                                                                                                               
01:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c6 (rev 01)                                                                                                                                                                                                   
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)                                                                                                                                                                                                   
02:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)                                                                                                                                                                                                   
02:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)                                                                                                                                                                                                   
02:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)                                                                                                                                                                                                   
02:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
02:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
05:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
08:00.0 USB controller: ASMedia Technology Inc. Device 2142
09:00.0 VGA compatible controller: NVIDIA Corporation GP104 (rev a1)
09:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
0a:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961
0b:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 145a
0b:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1456
0b:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] USB 3.0 Host controller
0c:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 1455
0c:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
0c:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Device 1457



https://pastebin.com/84rDSKse

I'm going to go back through it myself, see if I can spot anything, but the fact it doesn't even initialise makes me think it's not config related.
Back to top
View user's profile Send private message
venquessa
n00b
n00b


Joined: 07 Mar 2015
Posts: 17

PostPosted: Wed May 09, 2018 6:11 pm    Post subject: Reply with quote

parted -l /dev/nve0n1
Code:

Model: Unknown (unknown)
Disk /dev/nvme0n1: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size    File system  Name                          Flags
 1      1049kB  524MB  523MB   ntfs         Basic data partition          hidden, diag
 2      524MB   629MB  105MB   fat32        EFI system partition          boot, esp
 3      629MB   646MB  16.8MB               Microsoft reserved partition  msftres
 4      646MB   126GB  125GB   ntfs         Basic data partition          msftdata
 5      126GB   128GB  2147MB  ntfs
 6      128GB   149GB  21.5GB
 7      149GB   256GB  107GB   ext4

Linux is 5 swap, 6 home, 7 /

Code:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex
        Subsystem: ASUSTeK Computer Inc. Family 17h (Models 00h-0fh) Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1451
        Subsystem: ASUSTeK Computer Inc. Device 8747
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
        Kernel driver in use: pcieport
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
        Kernel driver in use: pcieport
00:03.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
        Kernel driver in use: pcieport
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
        Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
        Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 59)
        Subsystem: ASUSTeK Computer Inc. FCH SMBus Controller
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
        Subsystem: ASUSTeK Computer Inc. FCH LPC Bridge
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric Device 18h Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7
01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43d0 (rev 01)
        Subsystem: ASMedia Technology Inc. Device 1142
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
01:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43c8 (rev 01)
        Subsystem: ASMedia Technology Inc. Device 1062
        Kernel driver in use: ahci
        Kernel modules: ahci
01:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c6 (rev 01)
        Kernel driver in use: pcieport
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
        Kernel driver in use: pcieport
02:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
        Kernel driver in use: pcieport
02:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
        Kernel driver in use: pcieport
02:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
        Kernel driver in use: pcieport
02:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
        Kernel driver in use: pcieport
02:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
        Kernel driver in use: pcieport
05:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
        Subsystem: ASUSTeK Computer Inc. I211 Gigabit Network Connection
        Kernel driver in use: igb
        Kernel modules: igb
08:00.0 USB controller: ASMedia Technology Inc. Device 2142
        Subsystem: ASUSTeK Computer Inc. Device 8756
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
09:00.0 VGA compatible controller: NVIDIA Corporation GP104 (rev a1)
        Subsystem: NVIDIA Corporation GP104
09:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
        Subsystem: NVIDIA Corporation GP104 High Definition Audio Controller
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
0a:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961
        Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961
        Kernel driver in use: nvme
        Kernel modules: nvme
0b:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 145a
        Subsystem: ASUSTeK Computer Inc. Device 8747
0b:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1456
        Subsystem: ASUSTeK Computer Inc. Device 8747
0b:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] USB 3.0 Host controller
        Subsystem: ASUSTeK Computer Inc. USB 3.0 Host controller
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
0c:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 1455
        Subsystem: ASUSTeK Computer Inc. Device 8747
0c:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
        Subsystem: ASUSTeK Computer Inc. FCH SATA Controller [AHCI mode]
        Kernel driver in use: ahci
        Kernel modules: ahci
0c:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Device 1457
        Subsystem: ASUSTeK Computer Inc. Device 8735
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Wed May 09, 2018 6:45 pm    Post subject: Reply with quote

So I have got grub.efi (Selectable from rEFInd menu) installed and it can't boot a kernel either.

I remade a kernel based on my working config from my older system, obviously different CPU etc, but both AMD. Swapped a few device drivers and added the EFI stuff.

I just get "Loading 4.9.76-gentoo..."

and nothing. NUMLOCK key is dead, no disk activity, at one point the motherboard BIOS code read FF, but I think this was an anomaly.

Something is either fundamentally broken with these kernels or the EFI hand over is not working from either grub or refind.

I'm assuming nothing major has changed when I was sleeping and I should still expect a shower of text down the screen and 16 penguins?
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
OldTango
Guru
Guru


Joined: 21 Feb 2004
Posts: 587

PostPosted: Wed May 09, 2018 11:51 pm    Post subject: Reply with quote

venquessa2 wrote:
So I have got grub.efi (Selectable from rEFInd menu) installed and it can't boot a kernel either.

I remade a kernel based on my working config from my older system, obviously different CPU etc, but both AMD. Swapped a few device drivers and added the EFI stuff.

I just get "Loading 4.9.76-gentoo..."

and nothing. NUMLOCK key is dead, no disk activity, at one point the motherboard BIOS code read FF, but I think this was an anomaly.

Something is either fundamentally broken with these kernels or the EFI hand over is not working from either grub or refind.

I'm assuming nothing major has changed when I was sleeping and I should still expect a shower of text down the screen and 16 penguins?


I could be mistaken here but it appears you are mixing to many boot methods. As far as I know (I could be wrong) the only time you need to compile your kernel with the efi stub settings is if you plan to build and install a self booting kernel. Other wise just follow the manuals for the boot loader you wish to use.

A self booting kernel doesn't need help form any additional boot loader. You would use efibootmgr to write a boot entry to the UEFI firmware, set the default boot entry and order. If everything is configured correctly when your system is booted it will find your kernels location and boot it automatically.

A self booting kernel has to be stored in the systems ESP with something like gentoox64.efi and you would use efibootmgr to tell your Firmware where it is. With windows 10 also installed the ESP would have to be large enough to store the Windows 10 boot information along with your kernel.

In cases where you are dual booting and not using any additional boot loader like GRUB or refind, your UEFI firmware should have a menu option to choose what to boot. I access mine with the F11 key during a boot up or reboot.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7458
Location: Goose Creek SC

PostPosted: Thu May 10, 2018 12:11 am    Post subject: Reply with quote

Nothing obvious.
Is Secure Boot disabled or shimmed?
refind_linux.cfg does not ring a bell, typo for refind_linux.conf?
Is "Loading 4.9.76-gentoo..." what is referenced as "it just hangs with the EFI message."? Apparently rEFInd and grub are trying to transfer control to an unloadable kernel.
kernel suggestions/thoughts:
enter the chroot, energe --sync, and emerge gentoo-sources, 4.9.76 is a couple of stable kernels behind, testing is at 4.16.8, if 4.9.95 does not appear in rEFInd after it is created that would be very revealing
edit kernel config to:
Quote:
Processor type and features --->
[*] Built-in kernel command line
(root=PARTUUID=6fbfd708-2de4-4eb3-bd21-8d8355869b40 ro rootfs=ext4) Built-in kernel command string
[*] Built-in command line overrides boot loader arguments

Device Drivers --->
Graphics support --->
<*> /dev/agpgart (AGP Support) --->
--- /dev/agpgart (AGP Support)
<*> AMD Opteron/Athlon64 on-CPU GART support
< > Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
-*- VGA Arbitration
(16) Maximum number of GPUs
[ ] Laptop Hybrid Graphics - GPU switching support
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
[ ] DRM DP AUX Interface
[ ] Insert extra checks and debug info into the DRM range managers (NEW)
< > kselftests for DRM range manager (struct drm_mm)
[*] Enable legacy fbdev support for your modesetting driver
(100) Overallocation of the fbdev buffer
[ ] Allow to specify an EDID data set instead of probing for it
I2C encoder or helper chips --->

< > ATI Radeon
< > AMD GPU
ACP (Audio CoProcessor) Configuration ----
AMD Library routines ----
<*> Nouveau (NVIDIA) cards
(5) Maximum debug level (NEW)
(3) Default debug level (NEW)
[ ] Enable additional MMU debugging (NEW)
[*] Support for backlight control (NEW)
< > Intel 8xx/9xx/G3x/G4x/HD Graphics
< > Virtual GEM provider
< > DRM driver for VMware Virtual GPU
< > Intel GMA5/600 KMS Framebuffer
< > DisplayLink
< > AST server chips
< > Kernel modesetting driver for MGA G200 server engines
< > Cirrus driver for QEMU emulated device
< > QXL virtual GPU
< > DRM Support for bochs dispi vga interface (qemu stdvga)
Display Panels ----
Display Interface Bridges --->
< > DRM Support for Hisilicon Hibmc
< > Support for simple displays ----
[ ] Enable legacy drivers (DANGEROUS) ----
Frame buffer Devices --->
-*- Support for frame buffer devices --->
[ ] Framebuffer foreign endianness support ----
[*] Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
[ ] Asiliant (Chips) 69000 display support
[ ] IMS Twin Turbo display support
< > VGA 16-color graphics support
< > Userspace VESA VGA graphics support
[ ] VESA VGA graphics support
[*] EFI-based Framebuffer Support
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > OpenCores VGA/LCD core 2.0 framebuffer support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Intel740 support
< > Intel LE80578 (Vermilion) support
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident/CyberXXX/CyberBlade support
< > ARK 2000PV support
< > Permedia3 support
< > Fujitsu carmine frame buffer support
< > SMSC UFX6000/7000 USB Framebuffer support
< > Displaylink USB Framebuffer support
< > Framebuffer support for IBM GXT4000P/4500P/6000P/6500P adaptors
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
< > E-Ink Broadsheet/Epson S1D13521 controller support
< > AUO-K190X EPD controller support
[ ] Simple framebuffer support
< > Silicon Motion SM712 framebuffer support -*- Backlight & LCD device support --->
--- Backlight & LCD device support
<*> Lowlevel LCD controls
< > Platform LCD controls
-*- Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Generic PWM based Backlight Driver
< > Apple Backlight Driver
< > Qualcomm PM8941 WLED Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED
< > Backlight Driver for ADP8870 using WLED
< > Backlight Driver for LM3630A
< > Backlight Driver for LM3639
< > Backlight driver for TI LP855X
< > Sanyo LV5207LP Backlight
< > Rohm BD6107 Backlight
< > Backlight driver for the Arctic Sands ARCxCnnnn family
Console display driver support --->
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(1024) Scrollback Buffer Size (in KB)
[ ] Persistent Scrollback History for each console by default
(80) Initial number of console screen columns
(25) Initial number of console screen rows
-*- Framebuffer Console support
-*- Map the console to the primary display device
[ ] Framebuffer Console Rotation
[*] Bootup logo --->
--- Bootup logo
[ ] Standard black and white Linux logo
[ ] Standard 16-color Linux logo
[*] Standard 224-color Linux logo
mount the boot partition make and make modules_install and make install and reboot to the installed system.

If still failing please pastebin the kernel config again without stripping the comments the remarks and unset items, plain wgetpaste -t and
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7458
Location: Goose Creek SC

PostPosted: Thu May 10, 2018 12:19 am    Post subject: Reply with quote

@ OldTango
The situation is more complex.
"A self booting kernel doesn't need help from any additional boot loader." Literally true, but the EFI stub kernel needs something to pass control to it.
rEFInd is not a boot loader, it is only a boot manager - a program that presents boot loader choices and transfers control to the chosen one.
UEFI software also functions as a boot manager, though less elegantly.
EFI stub kernel is only a boot loader.
Grub is a hybrid of boot manager and boot loader.
"A self booting kernel has to be stored in the systems ESP" Not really. Has to be on a file system the UEFI can read at a location specified in a UEFI entry or has to be on a
file system readable and findable by some other boot manager/hybrid that the UEFI can find, read, and pass control to.
Since 2012 I have built EFI stub kernels wih make && make modules_install && make install left them at /boot (no copying to the ESP, no renaming) and used rEFInd to select which /boot/vmlinuz-version to boot. UEFI is preprogrammed to pass control to rEFInd which waits to pass control to the user's choice or to the preprogrammed timeout default EFI stub kernel.
I have also played with UEFI to rEFInd to Grub to EFI stub and UEFI to Grub to EFI stub.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
OldTango
Guru
Guru


Joined: 21 Feb 2004
Posts: 587

PostPosted: Thu May 10, 2018 3:19 am    Post subject: Reply with quote

DONAHUE wrote:
@ OldTango
The situation is more complex.
You are absolutely correct on all points, but it's that complexity and the never ending documentation out there, some excellent, some down right difficult and confusing to understand, that make it more difficult than it really needs to be for new comers. Along with the fact that not all EFI firmware are created equally.

He was asking about "Bare bones EFI boot setup". So really all he needs to follow is the EFI stub Kernel Docs and adjust them to fit his device setup, use efibootmgr to tell his firmware where his Kernel is located and he should be in business.

However from what I can tell he has the "EFI stub Kernel" stuff, built into his kernel yet he is using GRUB to boot it with. This seems incorrect to me. Again, I have never tried or experimented with this type of setup. I don't know what kind of results this would produce.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7458
Location: Goose Creek SC

PostPosted: Thu May 10, 2018 4:35 am    Post subject: Reply with quote

@OldTango
I believe he threw grub in the mix out of frustration. BTW, UEFI to rEFInd to grub to EFI stub does work. It definitely lacks elegance but it works. When he added grub, it actually proved that rEFInd was able to find, load, and pass control to a linux based hybrid boot manager/loader. rEFInd had previously proved the ability to find, load, and pass control to the windows10 boot manager. That leaves secure boot or kernel configuration preventing kernel loading.
As I read it, he wanted UEFI to rEFInd to EFI stub, IMHO the most elegant and lowest maintenance solution to linux UEFI booting.
Your favorite, UEFI to EFI stub is higher maintenance but has the substantial advantage of showing the user more of the mechanics.
I avoid grub except when trying to help solve grub problems or for play.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Thu May 10, 2018 7:05 am    Post subject: Reply with quote

Same thing with 4.9.95 :(

So yes, recapping.

UEFI boot to Windows 10 direct - WORKS
UEFI boot to rEFInd - WORKS
rEFInd to Grub - WORKS
rEFInd to Windows - 10 WORKS
rEFInd finds all kernels in /boot - with or without a refind_linux.conf
Gentoo Minimal Install ISO on USB - WORKS (although MBR I believe?)

So UEFI works, rEFInd works, Grub works, the system can run kernels, so that only leaves the kernel.

I watched one of the kernel/grub developers lecture on UEFI last night as if I understood correctly when control has passed to Grub the UEFI boot services should "unload" and we are in full control of grub. So when I get home from work I will try a non-EFI stub kernel loaded with grub. It will at least rule out that option.

I might get deperate and copy the minimal insstall kernel and initrd to the ESP /boot. If that fails then the problem is with the handover from EFI land to kernel land is broken (although it's not a stubbed kernel it "should" load via grub?). If it works my kernel is broken.

My new PC is in limbo as a result of this, I can't swap it in place of my old one and swap monitors and keyboards over so I'm stuck sharing monitors and dicking about with selecting source on the main monitor. A last ditch option would be to make a USB boot key for gentoo and see if that works.

Oh and secure boot is off. I'm 99% sure of that, unless Windows 10 turned it back on somehow but I think I checked that too. It's a self-build.

Out of interest it is a bit bleeding edge:
Ryzen 2700X - ASUS Crosshair VII X470 - Samsung MVNE M_2.2 SSD.

The X470 chipset is only a matter of months old, BIOS version os 17/04/2018 though. While I hope not there is a potential of a bug in the EUFI code upsetting the kernel. Fingers crossed it isn't.
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Thu May 10, 2018 7:08 am    Post subject: Reply with quote

Also, appologies for switching accounts, I believe some of my browsers are logged into different accounts. They are both me! LOL
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7458
Location: Goose Creek SC

PostPosted: Thu May 10, 2018 11:30 am    Post subject: Reply with quote

Do I have a vague memory that ryzen needs a 4.15 or newer kernel? google of "Ryzen 2700X linux support" suggests you want kernel 4.16.6 or newer. Wondering about gcc and the rest of the toolchain. You may want to change to ACCEPT_KEYWORDS="amd64 ~amd64" in make.conf and rebuild world to the bleeding edge.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Thu May 10, 2018 12:22 pm    Post subject: Reply with quote

DONAHUE wrote:
Do I have a vague memory that ryzen needs a 4.15 or newer kernel? google of "Ryzen 2700X linux support" suggests you want kernel 4.16.6 or newer. Wondering about gcc and the rest of the toolchain. You may want to change to ACCEPT_KEYWORDS="amd64 ~amd64" in make.conf and rebuild world to the bleeding edge.


Hmmm. Surely then the gentoo-minimal wouldn't boot either.

I did a bit of googling about linux and ryzen, but it seemed it was only support for CPU specific optimizations were slow to emerge.

I've tried the kernel CPU type as generic and AMD neither works.

So I think I have different issues :(
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
OldTango
Guru
Guru


Joined: 21 Feb 2004
Posts: 587

PostPosted: Thu May 10, 2018 4:49 pm    Post subject: Reply with quote

venquessa2 wrote:
Same thing with 4.9.95 :(

Out of interest it is a bit bleeding edge:
Ryzen 2700X - ASUS Crosshair VII X470 - Samsung MVNE M_2.2 SSD.

The X470 chipset is only a matter of months old, BIOS version os 17/04/2018 though. While I hope not there is a potential of a bug in the EUFI code upsetting the kernel. Fingers crossed it isn't.
I am leaning to a kernel config problem as well, that or your kernel isn't where the boot loaders are looking for or expecting to find it.

However based on one of your other posts
venquessa2 wrote:
I just get "Loading 4.9.76-gentoo..."
Makes me think your kernel is loading but you aren't seeing it. I would enable
Code:

[ ] Simple framebuffer support
Recompile your kernel and make sure you copy it to the proper location. Reboot and see what happens. You may receive a kernel panic due to your second generation Ryzen CPU and the x470 chip set but you should be able to see some kind of boot process.

You will probably have to move to a 4.16.x kernel to get the best support possible for your hardware. According to this Gentoo Ryzen. Some have been using a 4.9.x kernel but many are >=4.11.x. I can boot my 1950x Threadripper cpu on a x399 chip set with a 4.12.12 and a 4.16.5 kernel. Both kernels panic, which I expected and I would have been totally surprised if they hadn't.
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 431
Location: Hawaii

PostPosted: Thu May 10, 2018 5:43 pm    Post subject: Reply with quote

Sorry for.not rereading the entire thread, but have you tried using only FB_EFI?
_________________
Asus z97-a
Intel i7 4790k
16Gb Mushkin DDR3
Geforce GTX 970
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 12356

PostPosted: Fri May 11, 2018 1:45 am    Post subject: Reply with quote

venquessa2 wrote:
Also, appologies for switching accounts, I believe some of my browsers are logged into different accounts. They are both me! LOL
You should not use two accounts. Doing so makes life harder for everyone.
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Fri May 11, 2018 6:57 am    Post subject: Reply with quote

OldTango wrote:
Makes me think your kernel is loading but you aren't seeing it. I would enable
Code:

[ ] Simple framebuffer support
Recompile your kernel and make sure you copy it to the proper location. Reboot and see what happens. You may receive a kernel panic due to your second generation Ryzen CPU and the x470 chip set but you should be able to see some kind of boot process.


I was considering this also. I watched the HD access light a few times and it definitely blinks multiple times after the system appears to freeze.

I checked the gentoo minimal CDs dmesg and it loads vesafb, which I believe is enabled in my config. However it is booting MBR style (I believe) from USB, so EUFI might not provide the same environment when it hands over to the kernel.

I will try that option when I next get a chance.

The other thing the UEFI lecture told me is there should be a way to enable a dmesg dump to disk for when you get no display output, so I'll check if there are any debug options under the EFI stub stuff.

Recapping without quoting directly, I can try:

Simple Frame buffer device enable
A more recent kernel with Ryzen+ adaptions

If that fails I'll repastebin the full config.

I will also try booting via a USB key kernel, which, if it works, will at least allow me to continue setting up and using the install. (I never liked going beyond X11 startup in chroot and somethnig just don't work there properly).
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Fri May 11, 2018 7:02 am    Post subject: Reply with quote

Hu wrote:
venquessa2 wrote:
Also, appologies for switching accounts, I believe some of my browsers are logged into different accounts. They are both me! LOL
You should not use two accounts. Doing so makes life harder for everyone.


I know I'm working with the mods to merge them.
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
Goverp
Guru
Guru


Joined: 07 Mar 2007
Posts: 554

PostPosted: Fri May 11, 2018 10:44 am    Post subject: Reply with quote

bammbamm808 wrote:
Sorry for.not rereading the entire thread, but have you tried using only FB_EFI?

I've been using a new laptop with AMD A9-9420 processor and Windows 10 as a pre-installed virus. FB_EFI was useless. To quote the kernel documentation:
Quote:
This is a generic EFI platform driver for Intel based Apple computers.
efifb is only for EFI booted Intel Macs.

_________________
Greybeard
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
Goto page 1, 2  Next
Page 1 of 2

 
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