Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help with getting Gentoo to boot
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
Andy3153
n00b
n00b


Joined: 22 Sep 2022
Posts: 3

PostPosted: Thu Sep 22, 2022 11:21 am    Post subject: Need help with getting Gentoo to boot Reply with quote

Hello! So, I am very new to Gentoo, but I am not new to Linux in general. I've been trying to get it to work by following the AMD64 handbook, and adding in my tweaks as well, but it doesn't seem to get past the bootloader..?

I do have a pretty unique partition setup, one could say. I have a LVM on LUKS with Btrfs LVs, but I've had this setup working before on other systems, like Arch.

At first I tried to use systemd-boot, even though I went through a systemd-free install, because I consider it to be the best UEFI bootloader on Linux, as long as you don't dual-boot, and because I generally consider it better and easier to configure and understand. After trying to boot it, I get greeted with a message saying `EFI stub: loaded initrd from command line option`, and nothing else happening, no matter how much I wait, or if I blindly enter my LUKS password into the void. I tried different things afterwards, like putting the kernel command line in its field in the menuconfig utility, to compile it with the kernel.

What's annoying is that I don't get any message to tell me what might be wrong.

After seeing that did not work, I thought that maybe the bootloader was bad, so I tried GRUB after all, but GRUB did get stuck as well, after its messages of loading the kernel and initramfs.

My kernel is sys-kernel/zen-sources, I am using Dracut to create an initramfs, I configured the fstab, I don't know what I could do.

I did try the boot flags suggested here as well, but, to no luck.

Here's some of my config files, what I thought could be useful:

Fstab:
Code:

/etc/fstab
--------------------

UUID=F930-F92F                              /boot vfat  noauto,noatime 1 2
UUID="c94032e3-2721-4413-b9ef-a50f4267f4e5" /     btrfs defaults       0 0
UUID="84af40c8-caed-4260-8b5f-66b08c3f851d" /home btrfs defaults       0 0


systemd-boot configs:
Code:

/boot/loader/loader.conf
--------------------

default gentoo-zen.conf
console-mode max
editor no


Code:

/boot/loader/entries/gentoo-zen.conf
--------------------

title Gentoo
linux /vmlinuz-5.18.16-zen1
initrd /initramfs-5.18.16-zen1.img
options root=UUID=c94032e3-2721-4413-b9ef-a50f4267f4e5 rd.luks.uuid=b0d901a2-6834-421d-af57-aa817676d20a rd.lvm.vg=gentoo


GRUB config from when I tried using it:
Code:

/etc/default/grub
--------------------

GRUB_DISTRIBUTOR="Gentoo"
GRUB_CMDLINE_LINUX="root=UUID=c94032e3-2721-4413-b9ef-a50f4267f4e5 rd.luks.uuid=b0d901a2-6834-421d-af57-aa817676d20a rd.lvm.vg=gentoo"


Dracut config
Code:

/etc/dracut.conf
--------------------

hostonly="yes"
dracutmodules+=" dm base fs-lib rootfs-block crypt udev-rules lvm btrfs "


And, just, lsblk and blkid, from inside the chroot:

Code:

$ lsblk

sda                 8:0    0 931,5G  0 disk 
├─sda1              8:1    0 831,5G  0 part 
├─sda2              8:2    0   512M  0 part  /boot
└─sda3              8:3    0  99,5G  0 part 
  └─gentoo-crypt  254:0    0  99,5G  0 crypt
    ├─gentoo-root 254:1    0    25G  0 lvm   /
    └─gentoo-home 254:2    0    25G  0 lvm   /home

$ blkid

/dev/sda2: UUID="F930-F92F" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="Gentoo ESP" PARTUUID="2a5bf857-1ee7-47f0-a347-8faef025357d"
/dev/mapper/gentoo-root: UUID="c94032e3-2721-4413-b9ef-a50f4267f4e5" UUID_SUB="9b23df33-613b-4085-87d1-51c51d67e7c6" BLOCK_SIZE="4096" TYPE="btrfs"
/dev/mapper/gentoo-home: UUID="84af40c8-caed-4260-8b5f-66b08c3f851d" UUID_SUB="7ee744ab-717d-4327-bdf2-2d9e367f5d3e" BLOCK_SIZE="4096" TYPE="btrfs"
/dev/mapper/gentoo-crypt: UUID="uaQBuB-eH5Z-ZbuI-6kpp-iWU1-QFeo-2PIbNF" TYPE="LVM2_member"
/dev/sda3: UUID="b0d901a2-6834-421d-af57-aa817676d20a" TYPE="crypto_LUKS" PARTUUID="27888ecf-b1b9-4b22-8322-c4690c6f9e62


Should I send my kernel configuration, generated by menuconfig as well? Or anything else?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54420
Location: 56N 3W

PostPosted: Thu Sep 22, 2022 1:33 pm    Post subject: Reply with quote

Andy3153,

Welcome to Gentoo.

That you don't get any console output from the kernel points to a missing or broken console driver.
The PC Boot Process may be relevant, especially the Console drivers paragraph.

To poke at your kernel configuration, we will need the .config file on a pastebin and the output of
Code:
lspci -nnk


Tell us the steps you take to build and install your kernel.

sda3 is the partition holding your LUKS container.
When that is unlocked, LVM can start and expose the two logical volumes.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Andy3153
n00b
n00b


Joined: 22 Sep 2022
Posts: 3

PostPosted: Thu Sep 22, 2022 2:14 pm    Post subject: Reply with quote

NeddySeagoon wrote:

To poke at your kernel configuration, we will need the .config file on a pastebin and the output of
Code:
lspci -nnk



Here's the .config file. It is the first time I manually compile my own kernel, so I might've made some mistakes. I considered trying to go through menuconfig once again and start fresh.

Code:

$ lspci -nnk

0000:00:00.0 Host bridge [0600]: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers [8086:9a36] (rev 05)
        DeviceName: Onboard - Other
        Subsystem: ASUSTeK Computer Inc. 11th Gen Core Processor Host Bridge/DRAM Registers [1043:16f2]
lspci: Unable to load libkmod resources: error -2
0000:00:01.0 PCI bridge [0604]: Intel Corporation 11th Gen Core Processor PCIe Controller #1 [8086:9a01] (rev 05)
        Subsystem: ASUSTeK Computer Inc. 11th Gen Core Processor PCIe Controller [1043:16f2]
        Kernel driver in use: pcieport
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-H GT1 [UHD Graphics] [8086:9a60] (rev 01)
        DeviceName: Onboard - Video
        Subsystem: ASUSTeK Computer Inc. TigerLake-H GT1 [UHD Graphics] [1043:16f2]
        Kernel driver in use: i915
0000:00:04.0 Signal processing controller [1180]: Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant [8086:9a03] (rev 05)
        DeviceName: Onboard - Other
        Subsystem: ASUSTeK Computer Inc. TigerLake-LP Dynamic Tuning Processor Participant [1043:16f2]
        Kernel driver in use: proc_thermal
0000:00:06.0 System peripheral [0880]: Intel Corporation RST VMD Managed Controller [8086:09ab]
        DeviceName: Onboard - Other
0000:00:07.0 PCI bridge [0604]: Intel Corporation Tiger Lake-H Thunderbolt 4 PCI Express Root Port #0 [8086:9a2b] (rev 05)
        Subsystem: ASUSTeK Computer Inc. Tiger Lake-H Thunderbolt 4 PCI Express Root Port [1043:16f2]
        Kernel driver in use: pcieport
0000:00:08.0 System peripheral [0880]: Intel Corporation GNA Scoring Accelerator module [8086:9a11] (rev 05)
        DeviceName: Onboard - Other
        Subsystem: ASUSTeK Computer Inc. GNA Scoring Accelerator module [1043:16f2]
0000:00:0a.0 Signal processing controller [1180]: Intel Corporation Tigerlake Telemetry Aggregator Driver [8086:9a0d] (rev 01)
        DeviceName: Onboard - Other
        Kernel driver in use: intel_vsec
0000:00:0d.0 USB controller [0c03]: Intel Corporation Tiger Lake-H Thunderbolt 4 USB Controller [8086:9a17] (rev 05)
        DeviceName: Onboard - Other
        Kernel driver in use: xhci_hcd
0000:00:0d.2 USB controller [0c03]: Intel Corporation Tiger Lake-H Thunderbolt 4 NHI #0 [8086:9a1f] (rev 05)
        DeviceName: Onboard - Other
        Subsystem: Device [2222:1111]
        Kernel driver in use: thunderbolt
0000:00:0e.0 RAID bus controller [0104]: Intel Corporation Volume Management Device NVMe RAID Controller [8086:9a0b]
        DeviceName: Onboard - Other
        Subsystem: Intel Corporation Volume Management Device NVMe RAID Controller [8086:0000]
        Kernel driver in use: vmd
0000:00:14.0 USB controller [0c03]: Intel Corporation Tiger Lake-H USB 3.2 Gen 2x1 xHCI Host Controller [8086:43ed] (rev 11)
        DeviceName: Onboard - Other
        Subsystem: ASUSTeK Computer Inc. Tiger Lake-H USB 3.2 Gen 2x1 xHCI Host Controller [1043:201f]
        Kernel driver in use: xhci_hcd
0000:00:14.2 RAM memory [0500]: Intel Corporation Tiger Lake-H Shared SRAM [8086:43ef] (rev 11)
        DeviceName: Onboard - Other
0000:00:14.3 Network controller [0280]: Intel Corporation Tiger Lake PCH CNVi WiFi [8086:43f0] (rev 11)
        DeviceName: Onboard - Ethernet
        Subsystem: Intel Corporation Wi-Fi 6 AX201 160MHz [8086:0074]
        Kernel driver in use: iwlwifi
0000:00:15.0 Serial bus controller [0c80]: Intel Corporation Tiger Lake-H Serial IO I2C Controller #0 [8086:43e8] (rev 11)
        DeviceName: Onboard - Other
        Subsystem: ASUSTeK Computer Inc. Tiger Lake-H Serial IO I2C Controller [1043:16f2]
        Kernel driver in use: intel-lpss
0000:00:16.0 Communication controller [0780]: Intel Corporation Tiger Lake-H Management Engine Interface [8086:43e0] (rev 11)
        DeviceName: Onboard - Other
        Subsystem: ASUSTeK Computer Inc. Tiger Lake-H Management Engine Interface [1043:16f2]
        Kernel driver in use: mei_me
0000:00:1d.0 PCI bridge [0604]: Intel Corporation Device [8086:43b6] (rev 11)
        Subsystem: ASUSTeK Computer Inc. Device [1043:16f2]
        Kernel driver in use: pcieport
0000:00:1f.0 ISA bridge [0601]: Intel Corporation Tiger Lake-H LPC/eSPI Controller [8086:438b] (rev 11)
        DeviceName: Onboard - Other
        Subsystem: ASUSTeK Computer Inc. Tiger Lake-H LPC/eSPI Controller [1043:16f2]
0000:00:1f.3 Audio device [0403]: Intel Corporation Tiger Lake-H HD Audio Controller [8086:43c8] (rev 11)
        DeviceName: Onboard - Sound
        Subsystem: ASUSTeK Computer Inc. Tiger Lake-H HD Audio Controller [1043:16f2]
        Kernel driver in use: snd_hda_intel
0000:00:1f.4 SMBus [0c05]: Intel Corporation Tiger Lake-H SMBus Controller [8086:43a3] (rev 11)
        DeviceName: Onboard - Other
        Subsystem: ASUSTeK Computer Inc. Tiger Lake-H SMBus Controller [1043:16f2]
        Kernel driver in use: i801_smbus
0000:00:1f.5 Serial bus controller [0c80]: Intel Corporation Tiger Lake-H SPI Controller [8086:43a4] (rev 11)
        DeviceName: Onboard - Other
        Subsystem: ASUSTeK Computer Inc. Tiger Lake-H SPI Controller [1043:16f2]
        Kernel driver in use: intel-spi
0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1)
        Subsystem: ASUSTeK Computer Inc. GA106M [GeForce RTX 3060 Mobile / Max-Q] [1043:16f2]
        Kernel driver in use: nvidia
0000:01:00.1 Audio device [0403]: NVIDIA Corporation GA106 High Definition Audio Controller [10de:228e] (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device [1043:16f2]
        Kernel driver in use: snd_hda_intel
0000:2d:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
        Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:208f]
        Kernel driver in use: r8169
10000:e0:06.0 PCI bridge [0604]: Intel Corporation 11th Gen Core Processor PCIe Controller #0 [8086:9a0f] (rev 05)
        Kernel driver in use: pcieport
10000:e1:00.0 Non-Volatile memory controller [0108]: SK hynix Gold P31 SSD [1c5c:174a]
        Subsystem: SK hynix Gold P31 SSD [1c5c:174a]
        Kernel driver in use: nvme


NeddySeagoon wrote:

Tell us the steps you take to build and install your kernel.


After I'm done with menuconfig, I run:
Code:

$ make -j10 && make modules_install && make install && dracut --kver 5.18.16-zen1


NeddySeagoon wrote:

sda3 is the partition holding your LUKS container.
When that is unlocked, LVM can start and expose the two logical volumes.


Yes, I know that.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1713

PostPosted: Thu Sep 22, 2022 2:19 pm    Post subject: Reply with quote

Andy3153 wrote:

Here's the .config file. It is the first time I manually compile my own kernel, so I might've made some mistakes. I considered trying to go through menuconfig once again and start fresh.


Code:
# CONFIG_FB is not set


With this off and CONFIG_FB_EFI disabled, no output will be shown via a graphics card since EFI has removed basic text output.
Back to top
View user's profile Send private message
Andy3153
n00b
n00b


Joined: 22 Sep 2022
Posts: 3

PostPosted: Fri Sep 23, 2022 3:00 pm    Post subject: Reply with quote

Hello. Sorry for replying late.

grknight wrote:
With this off and CONFIG_FB_EFI disabled, no output will be shown via a graphics card since EFI has removed basic text output.


Yep, that was right! Thanks for the help. What's weird is that I am pretty sure I read the handbook correctly, and no one mentioned the need to enable the framebuffer. This way, I did not even know that was a step I needed to take. Did I miss it? If not, and there is no such section, shouldn't there be one? Am I the only one who got stuck on this? Or, is there a possibility that I toggled something that disabled framebuffer support? That'd be weird.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4396
Location: Bavaria

PostPosted: Fri Sep 23, 2022 4:29 pm    Post subject: Reply with quote

Andy3153 wrote:
[...] What's weird is that I am pretty sure I read the handbook correctly, and no one mentioned the need to enable the framebuffer. This way, I did not even know that was a step I needed to take. Did I miss it? If not, and there is no such section, shouldn't there be one? Am I the only one who got stuck on this? Or, is there a possibility that I toggled something that disabled framebuffer support? That'd be weird.

Sadly it is only in the "talk"-page of our handbook mentioned by @Goverp:
https://wiki.gentoo.org/wiki/Handbook_Talk:AMD64/Installation/Kernel

... :-(


Last edited by pietinger on Fri Sep 23, 2022 4:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54420
Location: 56N 3W

PostPosted: Fri Sep 23, 2022 4:29 pm    Post subject: Reply with quote

Andy3153,

The handbook is a protected Wiki page.
Contribute your feedback on the Talk page where the change needs to be made.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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