Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Kernel boots, but doesn't show the terminal
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
skythedragon
n00b
n00b


Joined: 08 Jan 2022
Posts: 3

PostPosted: Sat Jan 08, 2022 11:34 am    Post subject: [SOLVED] Kernel boots, but doesn't show the terminal Reply with quote

I've installed gentoo, but when I try to boot the kernel via grub, it gives
"Loading Linux 5.15.11-gentoo...", and gets stuck on there.

However, it still restarts after pressing ctrl+alt+delete, and after setting up ssh I can log in fine from there, so it definitely boots up, just doesn't show the terminal on screen.

My .config: https://pastebin.com/i1dVq3Vg
My dmesg output: https://pastebin.com/ZdMWwxNm

I compile the kernel as follows:
make makeconfig
make clean
make -j6 && make modules_install -j6
make install

I've also tried enabling the framebuffers, resulting in this config: https://pastebin.com/fZ01QmSy

This goes over to a blank screen after showing the Loading Linux, but my keyboard lights turn off, ctrl+alt+delete become unresponsive and ssh doesn't work anymore, so this does not work.

My hardware:
CPU: Intel I5-9600KF
GPU: NVIDIA GeForce GTX 1660

I'd prefer to use the proprietary NVIDIA drivers

What did I do wrong, and how can I fix it?
Thanks in advance.


Last edited by skythedragon on Sun Jan 09, 2022 9:48 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jan 08, 2022 11:55 am    Post subject: Reply with quote

skythedragon,

Welcome to Gentoo. Your
Code:
lspci -nnk
would be useful.

Turn off
Code:
CONFIG_FB_NVIDIA=y
as that's for last millennium nvidia cards and will interfere with your drm framebuffer console.

Enable
Code:
# CONFIG_FB_VESA is not set
# CONFIG_FB_EFI is not set
# CONFIG_FB_SIMPLE is not set
They are the only useful options now, one should start early in the boot sequence.

Code:
[    0.294588] nouveau 0000:01:00.0: vgaarb: deactivate vga console
nouveau started but its not very happy
Code:
[    0.363219] nouveau 0000:01:00.0: pmu: firmware unavailable
[    0.363301] nouveau 0000:01:00.0: gr: firmware unavailable
[    0.363305] nouveau 0000:01:00.0: sec2: firmware unavailable
...
[    0.369294] nouveau 0000:01:00.0: DRM: failed to create kernel channel, -22
the last line probably means that its not working.

If you make
Code:
CONFIG_DRM_NOUVEAU=y
a module and install linux-firmware, then the driver can load firmware after root is mounted.
Use the search option in make menuconfig to find and make the changes.
_________________
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
skythedragon
n00b
n00b


Joined: 08 Jan 2022
Posts: 3

PostPosted: Sat Jan 08, 2022 12:11 pm    Post subject: Reply with quote

Thank you!
Will try.
Any good way to find these in menuconfig?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jan 08, 2022 12:16 pm    Post subject: Reply with quote

skythedragon,

Use the search ... press /, enter a fragment of the symbol name. The CONFIG_ is not required and its not case sensitive.
Look at the list.
Press the single digit to the left of the symbol you want to change to jump there.
_________________
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
skythedragon
n00b
n00b


Joined: 08 Jan 2022
Posts: 3

PostPosted: Sun Jan 09, 2022 9:47 am    Post subject: Reply with quote

Worked, thanks!

My lspci:
Code:

00:00.0 Host bridge [0600]: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers [8086:3ec2] (rev 0a)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. PRIME H310M-D [1043:8694]
   Kernel driver in use: skl_uncore
00:01.0 PCI bridge [0604]: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 0a)
   Kernel driver in use: pcieport
00:14.0 USB controller [0c03]: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller [8086:a36d] (rev 10)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
   Kernel driver in use: xhci_hcd
00:14.2 RAM memory [0500]: Intel Corporation Cannon Lake PCH Shared SRAM [8086:a36f] (rev 10)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
00:16.0 Communication controller [0780]: Intel Corporation Cannon Lake PCH HECI Controller [8086:a360] (rev 10)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
00:17.0 SATA controller [0106]: Intel Corporation Cannon Lake PCH SATA AHCI Controller [8086:a352] (rev 10)
   DeviceName: Onboard - SATA
   Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
   Kernel driver in use: ahci
00:1b.0 PCI bridge [0604]: Intel Corporation Cannon Lake PCH PCI Express Root Port #17 [8086:a340] (rev f0)
   Kernel driver in use: pcieport
00:1c.0 PCI bridge [0604]: Intel Corporation Cannon Lake PCH PCI Express Root Port #1 [8086:a338] (rev f0)
   Kernel driver in use: pcieport
00:1c.4 PCI bridge [0604]: Intel Corporation Cannon Lake PCH PCI Express Root Port #5 [8086:a33c] (rev f0)
   Kernel driver in use: pcieport
00:1d.0 PCI bridge [0604]: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 [8086:a330] (rev f0)
   Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Z390 Chipset LPC/eSPI Controller [8086:a305] (rev 10)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
00:1f.3 Audio device [0403]: Intel Corporation Cannon Lake PCH cAVS [8086:a348] (rev 10)
   DeviceName: Onboard - Sound
   Subsystem: ASUSTeK Computer Inc. Device [1043:86c7]
   Kernel driver in use: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Cannon Lake PCH SMBus Controller [8086:a323] (rev 10)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
   Kernel driver in use: i801_smbus
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller [8086:a324] (rev 10)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116 [GeForce GTX 1660] [10de:2184] (rev a1)
   Subsystem: Gigabyte Technology Co., Ltd Device [1458:3fc8]
   Kernel driver in use: nouveau
01:00.1 Audio device [0403]: NVIDIA Corporation TU116 High Definition Audio Controller [10de:1aeb] (rev a1)
   Subsystem: Gigabyte Technology Co., Ltd Device [1458:3fc8]
   Kernel driver in use: snd_hda_intel
01:00.2 USB controller [0c03]: NVIDIA Corporation TU116 USB 3.1 Host Controller [10de:1aec] (rev a1)
   Subsystem: Gigabyte Technology Co., Ltd Device [1458:3fc8]
   Kernel driver in use: xhci_hcd
01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU116 USB Type-C UCSI Controller [10de:1aed] (rev a1)
   Subsystem: Gigabyte Technology Co., Ltd Device [1458:3fc8]
02:00.0 Non-Volatile memory controller [0108]: Phison Electronics Corporation E12 NVMe Controller [1987:5012] (rev 01)
   Subsystem: Phison Electronics Corporation E12 NVMe Controller [1987:5012]
   Kernel driver in use: nvme
04: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. PRIME B450M-A Motherboard [1043:8677]
   Kernel driver in use: r8169
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jan 09, 2022 3:20 pm    Post subject: Reply with quote

skythedragon,

Look at dmesg. What framebuffer in is use now?

I would expect to see two, possibly more, used sequentially, with nouveau being the last one.
_________________
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
Tripcolman
n00b
n00b


Joined: 10 Jan 2022
Posts: 9

PostPosted: Fri Jan 14, 2022 7:11 am    Post subject: Reply with quote

How do you guys search lspci output in menuconfig?
Let's say i want to find this device's configuration in menuconfig

Code:
01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU116 USB Type-C UCSI Controller [10de:1aed] (rev a1)
Subsystem: Gigabyte Technology Co., Ltd Device [1458:3fc8]

How should i search for it? I know about / functionality but this output doesn't even tell us which driver's in use,
and sometimes even if it does tell us driver's name, / can't find anything.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 1204
Location: Bavaria

PostPosted: Fri Jan 14, 2022 11:58 am    Post subject: Reply with quote

Tripcolman wrote:
How do you guys search lspci output in menuconfig?
[...]
How should i search for it? I know about / functionality but this output doesn't even tell us which driver's in use,
and sometimes even if it does tell us driver's name, / can't find anything.

If you read the second post of this thread you will see Neddy recommends:
Code:
lspci -nnk

... it is the "k" ... ;-)
Back to top
View user's profile Send private message
Tripcolman
n00b
n00b


Joined: 10 Jan 2022
Posts: 9

PostPosted: Fri Jan 14, 2022 12:38 pm    Post subject: Reply with quote

I don't think you understood the question correctly.
The question is after I get lspci -nnk output how should I search for these drivers in menuconfig.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 1204
Location: Bavaria

PostPosted: Fri Jan 14, 2022 12:52 pm    Post subject: Reply with quote

Tripcolman wrote:
I don't think you understood the question correctly.
The question is after I get lspci -nnk output how should I search for these drivers in menuconfig.

You type a / in the main menu of "make menuconfig". Then you type in the drivers name (without leading "CONFIG_"; its not needed).
Example: I searched for my network driver "ALX" and got this answer:
Code:
  Symbol: ALX [=y]                                                                                                                                                                                                                                                                                                                                                                    │ 
  │ Type  : tristate                                                                                                                                                                                                                                                                                                                                                                    │ 
  │ Defined at drivers/net/ethernet/atheros/Kconfig:73


If you get no answer, the reason is probably its hidden because some other options must be enabled before. Type "z" to toggle to show also invisible options. Do your search with / again. If you have found your needed option or module, go into the help and read:
Code:
Depends on: [...]

Enable these now and try again to enable your needed option.


P.S.: The are few options where the name of the option differs with the module name. In this case search in your .config directly.


Last edited by pietinger on Fri Jan 14, 2022 1:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1225
Location: switzerland

PostPosted: Fri Jan 14, 2022 1:00 pm    Post subject: Reply with quote

the method shown by NeddySeagoon and pietinger is the best, but if you prefer you can use this link to search in the kernel options https://www.kernelconfig.io/
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Tripcolman
n00b
n00b


Joined: 10 Jan 2022
Posts: 9

PostPosted: Fri Jan 14, 2022 1:02 pm    Post subject: Reply with quote

pietinger wrote:
Tripcolman wrote:
I don't think you understood the question correctly.
The question is after I get lspci -nnk output how should I search for these drivers in menuconfig.

You type a / in the main menu of "make menuconfig". Then you type in the drivers name (without leading "CONFIG_"; its not needed).
Example: I searched for my network driver "ALX" and got this answer:
Code:
  Symbol: ALX [=y]                                                                                                                                                                                                                                                                                                                                                                    │ 
  │ Type  : tristate                                                                                                                                                                                                                                                                                                                                                                    │ 
  │ Defined at drivers/net/ethernet/atheros/Kconfig:73


If you get no answer, the reason is probably its hidden because some other options must be enabled before. Type "z" to toggle to show also invisible options. Do your search with / again. If you have found your needed option or module, go into the help and read:
Code:
Depends on: [...]

Enable these now and try again to enable your needed option.


How did you know that "ALX" is your network driver's name?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 1204
Location: Bavaria

PostPosted: Fri Jan 14, 2022 1:07 pm    Post subject: Reply with quote

Tripcolman wrote:
How did you know that "ALX" is your network driver's name?

Because my "lspci -k" said:
Code:
05:00.0 Ethernet controller: Qualcomm Atheros Killer E2500 Gigabit Ethernet Controller (rev 10)
        Subsystem: Gigabyte Technology Co., Ltd Killer E2500 Gigabit Ethernet Controller
        Kernel driver in use: alx

(It is the last line).

If you want to do this with a NEW system, you should boot with gentoo minimal CD and do a "lspci -k" immediately. (After this do a "lsmod" and write down all used modules ;-) )
Back to top
View user's profile Send private message
Tripcolman
n00b
n00b


Joined: 10 Jan 2022
Posts: 9

PostPosted: Fri Jan 14, 2022 1:16 pm    Post subject: Reply with quote

pietinger wrote:
Tripcolman wrote:
How did you know that "ALX" is your network driver's name?

Because my "lspci -k" said:
Code:
05:00.0 Ethernet controller: Qualcomm Atheros Killer E2500 Gigabit Ethernet Controller (rev 10)
        Subsystem: Gigabyte Technology Co., Ltd Killer E2500 Gigabit Ethernet Controller
        Kernel driver in use: alx

(It is the last line).

If you want to do this with a NEW system, you should boot with gentoo minimal CD and do a "lspci -k" immediately. (After this do a "lsmod" and write down all used modules ;-) )


I understand, but not every output says Kernel driver in use: 'x' or Kernel modules: 'x'
Code:
00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
   Subsystem: Dell 8 Series/C220 Series Chipset Family MEI Controller [1028:05be]


This output doesnt say anything about driver or module name.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 1204
Location: Bavaria

PostPosted: Fri Jan 14, 2022 1:23 pm    Post subject: Reply with quote

Tripcolman wrote:
This output doesnt say anything about driver or module name.

Yes, because there is no module loaded. If you dont know what it is, I recommend to google: "linux kernel mei". You will find articles telling you it is the "Intel Management Engine Interface" ... I have also an intel mainboard ... and I dont want/need it ... and therefore I have not enabled these sh*t ... probably you dont need it too ... ;-)
Back to top
View user's profile Send private message
Tripcolman
n00b
n00b


Joined: 10 Jan 2022
Posts: 9

PostPosted: Fri Jan 14, 2022 1:28 pm    Post subject: Reply with quote

Thank you very much for your help, I hope I didn't bother you too much.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 1204
Location: Bavaria

PostPosted: Fri Jan 14, 2022 1:31 pm    Post subject: Reply with quote

Tripcolman wrote:
Thank you very much for your help, I hope I didn't bother you too much.

My pleasure - you are welcome.

(It reminds me to my first steps configurating my kernel ... what is this mei ? ... never heard before ... ahh, it is this sh*t ... :-) )
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 1204
Location: Bavaria

PostPosted: Fri Jan 14, 2022 1:49 pm    Post subject: Reply with quote

May I add that all Intel Mainboards have at least two entries (modern maybe more) without a kernel driver in use. It is handled by the kernel itself. An example from my machine:
Code:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
        Subsystem: Gigabyte Technology Co., Ltd Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers
[...]
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
        Subsystem: Gigabyte Technology Co., Ltd Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model

So please dont worry. Its ok.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 19219

PostPosted: Fri Jan 14, 2022 7:01 pm    Post subject: Reply with quote

Tripcolman wrote:
I understand, but not every output says Kernel driver in use: 'x' or Kernel modules: 'x'
Code:
00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
   Subsystem: Dell 8 Series/C220 Series Chipset Family MEI Controller [1028:05be]


This output doesnt say anything about driver or module name.
You can also use a bootable install image which has a more generic setup and will try to automatically load the correct modules. When using new hardware, I'll save the output so I can refer to it later when I need to figure out which options to enable in the kernel config.

Also, you can do some guessing. I see Intel, Dell, C220 and MEI as identifiers that may narrow it down. I'd first guess that it was more generic (Intel) than specific (Dell). So I'd be looking for one or more of Intel, C220, MEI. Because Intel has a lot of results, I'd try C220 and MEI first.
Code:
$ zgrep -ic intel /proc/config.gz
65
$ zgrep -ic c220 /proc/config.gz
0
$ zgrep -ic mei /proc/config.gz
3
Not being familiar with it, 3 results looks like a more approachable place to check.

Examples (presuming I didn't have the answers):
Code:
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
        Subsystem: Gigabyte Technology Co., Ltd SBx00 Azalia (Intel HDA) [1458:a014]
        Kernel driver in use: snd_hda_intel
$ zgrep -ic hda /proc/config.gz
23
$ zgrep -i hda /proc/config.gz |grep -i intel
CONFIG_SND_HDA_INTEL=y
Sometimes looking through the config doesn't work well. For example, my Intel NIC. But, I know I can use the 'make menuconfig' to get to the NIC section, then go through each vendor's drivers. Descriptions often include model numbers or model families.

Sometimes its more iterative and guesswork:
Code:
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
        Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet [1458:e000]
        Kernel driver in use: r8169
$ zgrep -E "8111|8168|8411" /proc/config.gz
# CONFIG_I2C_AMD8111 is not set
$ zgrep -E "816.|841." /proc/config.gz
CONFIG_R8169=y
# CONFIG_KEYBOARD_TCA8418 is not set
I did try looking with leading rtl and rtk with no results. I2C isn't what I want, so I remove that from the search and use the . single character wildcard to hopefully catch a less specific driver. If I didn't know R8169 was the answer, I still like that it was a close match.
_________________
Magna Carta (1215) | Spectral evidence no longer permissible (c. 1792) | Cancel culture, deplatforming (c. 2016)
Back to top
View user's profile Send private message
Tripcolman
n00b
n00b


Joined: 10 Jan 2022
Posts: 9

PostPosted: Fri Jan 14, 2022 7:13 pm    Post subject: Reply with quote

Thanks for the response, I've learned a few more things. Pretty amazing community btw.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jan 14, 2022 8:14 pm    Post subject: Reply with quote

Tripcolman,

Heres a worked example.

Code:
00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
   Subsystem: Dell 8 Series/C220 Series Chipset Family MEI Controller [1028:05be]


The numbers at the end of the first line, [8086:8c3a] are the PCI Vendor and Device IDs.

Put (in this case) 8086:8c3a pci linux kernel into your favourite search engine and look for hits on catteee.net. There are others but catteee.net is consistently good
In this case, its this page.

The rest you know but there are a few wrinkles. The option will be hidden unless the depends on: boolean expression is true, so you may have to enable other things first.

When an option is hidden, the search fails. However the kernel has a show hidden options toggle. Press 'z'.
The search will work, you can go to the option to read the Depends on in the help but not select it until you fix the depends on.
You may need to do that recursively too.

In this case, ME Enabled Intel Chipsets is best left off. It provides remote access over the network, for corporate IT to manage your system.
Its been known to have security issues too.
_________________
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