Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Boot stops after "Loading inital ramdisk" message
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
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Sun Apr 30, 2017 9:30 pm    Post subject: [Solved] Boot stops after "Loading inital ramdisk" Reply with quote

I'm installing Gentoo on a new machine. This is not my first Gentoo install, but it is my first time using GPT, EFI, and an initramfs. It's also my first time using an M.2 drive (mine has the PCI-express interface).

I think I have everything set up correctly, and I can get into Grub (2), but choosing the Gentoo boot option gets to "Loading initial ramdisk" and then seemingly stops. The hard drive LED blinks occasionally for maybe 5 seconds after that, but nothing changes on the screen after that at all (I left it for 10 minutes once). I've tried the usual searching for other people with the same problem and haven't come up with much.

I think that means that the issue is with the initramfs, but that's just a mildly-educated guess.

I just have the one (M.2) hard drive for now. Here's the parted display:
Code:
(parted) print                                                           
Model: Unknown (unknown)
Disk /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  1074MB  1073MB  fat32           efi   boot, esp
 2      1074MB  35.4GB  34.4GB  linux-swap(v1)  swap
 3      35.4GB  512GB   477GB                   lvm   lvm


My fstab:
Code:

UUID=79444134-fb79-4c8c-a434-1bb655582f3a       /               ext4    auto    0 1
UUID=4C01-A734                                  /boot/efi       vfat    auto    0 2
UUID=0561e67b-bd30-4fb4-9dc1-12e8df863c79       /home           ext4    auto    0 2
UUID=5c8c7cc6-b2bb-4098-add2-33678b4592fe       /usr            ext4    auto    0 2
UUID=6c7bf34d-4030-45b2-9af6-385db3fbb378       /var            ext4    auto    0 2
UUID=9384bd97-9f67-4e1c-b7c1-3183c3378c65       /opt            ext4    auto    0 2
UUID=c6da24a0-c7a2-4c29-80ce-4f0a9e76e806       /usr/portage    ext4    auto    0 2
UUID=e367f104-2361-4df7-a7c1-a8c28bb6b705       /tmp            ext4    auto    0 2
UUID=a5b522b3-f153-4201-b9d5-e2b1ddbbe8e9       none            swap    noauto  0 0


blkid output:
Code:

/dev/nvme0n1: PTUUID="e414cb07-6d3f-4eeb-834f-486f74ace96f" PTTYPE="gpt"
/dev/nvme0n1p1: UUID="4C01-A734" TYPE="vfat" PARTLABEL="efi" PARTUUID="0ce135c5-1512-4dc5-9caf-a5fc50b4f5ec"
/dev/nvme0n1p2: UUID="a5b522b3-f153-4201-b9d5-e2b1ddbbe8e9" TYPE="swap" PARTLABEL="swap" PARTUUID="4b40bb87-c140-469e-b49f-28f221be51a9"
/dev/nvme0n1p3: UUID="YuCySJ-hULZ-SEVW-2MI9-2odD-tDvk-YPt56q" TYPE="LVM2_member" PARTLABEL="lvm" PARTUUID="cde777d5-9920-4f65-807a-874eb3a22408"
/dev/mapper/gentoo-root: UUID="79444134-fb79-4c8c-a434-1bb655582f3a" TYPE="ext4"
/dev/mapper/gentoo-home: UUID="0561e67b-bd30-4fb4-9dc1-12e8df863c79" TYPE="ext4"
/dev/mapper/gentoo-usr: UUID="5c8c7cc6-b2bb-4098-add2-33678b4592fe" TYPE="ext4"
/dev/mapper/gentoo-var: UUID="6c7bf34d-4030-45b2-9af6-385db3fbb378" TYPE="ext4"
/dev/mapper/gentoo-opt: UUID="9384bd97-9f67-4e1c-b7c1-3183c3378c65" TYPE="ext4"
/dev/mapper/gentoo-portage: UUID="c6da24a0-c7a2-4c29-80ce-4f0a9e76e806" TYPE="ext4"
/dev/mapper/gentoo-tmp: UUID="e367f104-2361-4df7-a7c1-a8c28bb6b705" TYPE="ext4"


I used genkernel to generate the initramfs, and added dolvm rootfstype=ext4 to the command line in /etc/default/grub as it suggested. I have also tried adding nomodeset (with no change).

I think I have my kernel configured correctly, but I'm also not sure I'm even getting to the point where that matters. I'm happy to provide any additional info; I'm just not sure what is useful and didn't want to post a giant wall of text to start.

What did I do wrong, or what should I look at next?


Last edited by IQgryn on Tue May 02, 2017 12:14 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Apr 30, 2017 9:57 pm    Post subject: Reply with quote

IQgryn,

The boot sequence goes
BIOS does things then loads grub
grub shows you the menu
grub loads the kernel
grub loads the initrd
Grub jumps to the kernel start address
The kernel prints the message "Decompressing Linux ..."
The initrd has not been used yet. That happens when the kernel mounts the initrd as its root filesystem.

That doesn't leave much. Kernel compression/decompression or no early console driver.

Put your kernel .config onto a pastebin and post your lspci output.
With an eye to the future, which Xorg video driver do you plan to use?
_________________
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
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Sun Apr 30, 2017 10:26 pm    Post subject: Reply with quote

Kernel config: https://pastebin.com/VXT8Zwjn

lspci output:
Code:

livecd ~ # lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1450
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1451
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1454
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1454
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] Device 1460
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1461
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1462
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1463
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1464
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1465
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1466
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1467
01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a804
03:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43bb (rev 02)
03:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43b7 (rev 02)
03:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b2 (rev 02)
04:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
04:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
04:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
04:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
04:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
04:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
09:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02)
0a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 11)
0b:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Polaris10] (rev c7)
0b:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aaf0
11:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 145a
11:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1456
11:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 145c
12:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 1455
12:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
12:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Device 1457


I'm planning to use the AMD open source drivers.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1747

PostPosted: Sun Apr 30, 2017 10:51 pm    Post subject: Reply with quote

Quote:
"Loading initial ramdisk" and then seemingly stops.
Does it stop after printing a bunch of dots or before that?
(Does it actually load initramfs or fails miserably when it tries?)
Add "debug" option to kernel's boot line, it will make init script drop you to shell during early boot (initramfs phase), so you can have a look around.
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Sun Apr 30, 2017 11:19 pm    Post subject: Reply with quote

Adding debug didn't change anything. So I guess I'm not even getting to the kernel.
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Sun Apr 30, 2017 11:50 pm    Post subject: Reply with quote

Sorry, I must have forgotten to hit post on the earlier reply. There are no dots -- the cursor just sits at the beginning of the next line and blinks.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon May 01, 2017 8:07 am    Post subject: Reply with quote

IQgryn,

That all looks good. About the only thing I would add by way of debug is to turn on
Code:
# CONFIG_FB_SIMPLE is not set
and rebuild the kernel.

Lets poke at things a bit more to see if we can narrow the problem.
In your grub.cfg file, find the initrd lines ... there will be several, and comment them out. It won't boot like this but seeing the kernel panic as it tries is progress.

The boot sequence will now skip the initrd loading. If you get any kernel output at all, that's progress.
_________________
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
DONAHUE
Watchman
Watchman


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

PostPosted: Mon May 01, 2017 12:38 pm    Post subject: Reply with quote

How is the nvme driver incorporated into your initramfs?
Presume you are using a Samsung 950 or 960?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Mon May 01, 2017 11:44 pm    Post subject: Reply with quote

DONAHUE wrote:
How is the nvme driver incorporated into your initramfs?
Presume you are using a Samsung 950 or 960?


Yeah, Samsung 960 Pro. I think I have the driver in the kernel (compiled in, not a module -- see my config linked above), and I thought that would be all I needed.
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Mon May 01, 2017 11:51 pm    Post subject: Reply with quote

NeddySeagoon wrote:
IQgryn,

That all looks good. About the only thing I would add by way of debug is to turn on
Code:
# CONFIG_FB_SIMPLE is not set
and rebuild the kernel.

Lets poke at things a bit more to see if we can narrow the problem.
In your grub.cfg file, find the initrd lines ... there will be several, and comment them out. It won't boot like this but seeing the kernel panic as it tries is progress.

The boot sequence will now skip the initrd loading. If you get any kernel output at all, that's progress.


Giving that a shot now, I'll let you know.
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Tue May 02, 2017 12:06 am    Post subject: Reply with quote

Progress!

I got some error messages about LVM, then realized that nothing had actually pulled LVM in on the system (and I forgot to do it myself). Installing that gets me a bit further, but things still stop on the boot screen (the one with the penguins across the top). The last line mentions switching from simplefb to amdgpufb, so I'm going to pull the AMD one out of the kernel for now and see if that gets me to a shell.
Back to top
View user's profile Send private message
IQgryn
l33t
l33t


Joined: 05 Sep 2005
Posts: 764
Location: WI, USA

PostPosted: Tue May 02, 2017 12:15 am    Post subject: Reply with quote

Success! I made it to a login prompt. It also works when I use the initramfs, so I'm actually in to the system. It's not accepting keyboard input yet, but I have something to work with.

Thank you for the help!
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