Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] New AMD hardware. Still can't boot (but making progress).
Date: Fri, 28 Apr 2017 20:16:51
Message-Id: 880166B6-65D1-4427-8D7A-50D8504790B5@antarean.org
In Reply to: Re: [gentoo-user] New AMD hardware. Still can't boot (but making progress). by Alan Mackenzie
1 On April 28, 2017 9:51:07 PM GMT+02:00, Alan Mackenzie <acm@×××.de> wrote:
2 >Hello, Mick and the whole World.
3 >
4 >On Tue, Apr 25, 2017 at 00:00:07 +0100, Mick wrote:
5 >
6 >> Have a look here in case it helps:
7 >
8 >> https://wiki.archlinux.org/index.php/GRUB#RAID
9 >
10 >In the end, I went with grub2, and it has taken a lot of effort to get
11 >not very far. Grub's documentation is suboptimal.
12 >
13 >The state I've managed to get to is that grub appears to have loaded my
14 >kernel (it no longer gives an error message about it not being loaded),
15 >but then hangs without the kernel outputting even a single message. At
16 >this point, only the reset-button will do anything - Ctrl-Alt-Del does
17 >nothing.
18 >
19 >Just for reference's sake, my boot setup is EFI on GPT. I have two
20 >NVMe
21 >SSDs, which will be working together in several mdadm RAID pairs. grub
22 >can read my SSDs, reporting correctly their partitioning and being able
23 >to cat the grub configuration file.
24 >
25 >So, why, after apparently loading the kernel, does grub fail to start
26 >it?
27 >Any ideas, anybody?
28 >
29 >Here are the relevant bits of my grub.cfg:
30 >
31 >#########################################################################
32 >
33 ># Example configuration for GRUB
34 ># Much of this example configuration was taken from the GRUB manual.
35 >
36 ># Menu timeout
37 >timeout=5
38 >
39 ># Default menu entry
40 >default=0
41 >
42 ># If we have a font available, start graphical output.
43 >if loadfont unifont; then
44 > echo "Loading unifont"
45 > # Output resolution for GRUB (eg. 1024x768 or 'auto').
46 > gfxmode=auto
47 >
48 > # Output resolution for Linux (VESAFB only).
49 > # 'keep' means use the same resolution as GRUB.
50 > # For other framebuffer drivers, pass a resolution using the video=
51 >kernel param.
52 > gfxpayload=keep
53 >
54 > # Load all video drivers.
55 > insmod all_video
56 >
57 > # Switch to graphical output.
58 > terminal_output gfxterm
59 >fi
60 >
61 ># Load modules necessary to find any boot files (/boot).
62 >
63 ># Partition table(s).
64 >#insmod part_msdos
65 >insmod part_gpt
66 >
67 ># Necessary for the root partition
68 >insmod mdraid1x
69 >insmod mdraid09
70 >
71 ># Necessary for kernel messages to show
72 >insmod efi_gop
73 >insmod efi_uga
74 >insmod font
75 >if loadfont ${prefix}/fonts/unicode.pf2
76 >then
77 > insmod gfxterm
78 > set gfxmode=auto
79 > set gfxpayload=keep
80 > terminal_output gfxterm
81 >fi
82 >
83 >menuentry "Gentoo Linux 4.9.16-1" {
84 > # Filesystem for /boot
85 > #insmod btrfs
86 > insmod fat
87 > insmod exfat
88 > insmod ext2
89 > #insmod xfs
90 > #insmod zfs
91 >
92 > # Search all block devices for a matching UUID (for /boot)
93 > #search --set=root --fs-uuid 33d4013a-ec25-4462-a540-8078aeb8ed17
94 > #search --set=root (md/127)
95 > #root=(md/127)
96 > set root=(hd1,gpt2) # i.e. /boot
97 > echo "Just set root"
98 >
99 > # Load a linux kernel, passing the root filesystem and init process as
100 >parameters
101 > echo "Loading kernel..."
102 > echo "grub_platform = " $grub_platform
103 > gfxpayload=text # For debugging.
104 > linux /vmlinuz-4.9.16-gentoo root=/dev/md127 #rootfstype=btrfs
105 >init=/usr/lib/systemd/systemd
106 > echo "just loaded kernel"
107 > boot
108 >
109 > #echo "Loading initramfs..."
110 > #initrd /initramfs-4.7.2.img
111 >}
112 >
113 >#########################################################################
114 >
115 >> --
116 >> Regards,
117 >> Mick
118
119 Have you tried connecting using ssh after boot?
120 Also, do you have the EFI console support in your kernel?
121
122 Not near my desktop to check which ones exactly.
123
124 --
125 Joost
126 --
127 Sent from my Android device with K-9 Mail. Please excuse my brevity.

Replies