Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Kernel drivers and modules list
Date: Sun, 17 May 2020 21:34:39
Message-Id: 226b97bd-7ab7-4772-c2c3-09a46d76dddd@gmail.com
In Reply to: [gentoo-user] Kernel drivers and modules list by Raphael MD
1 Raphael MD wrote:
2 > Hello everyone,
3 >
4 > I’ve booted my system with a gentoo live cd, just to figure out my
5 > system drivers and modules to configure the kernel, because it’s
6 > difficult to realize what drive my intel Ethernet card uses and many
7 > others.
8 >
9 > Are there  some command to extract that list to configure the kernel?
10 >
11 > In fact, are there some manual to help to configure the kernel in the
12 > best way?
13 >
14 >  Usually I configure my Zen processor, put my schedule, and set
15 > preemptive kernel to low latency and put out every other drive.
16 >
17 > Thanks!
18 >
19 > --
20 > M.S. Raphael Mejias Dias
21 > ​Nuclear Engineer | Reactors
22 >
23 > Secure e-mail: raphael.mejias.dias@××××××××××.com
24 > <mailto:raphael.mejias.dias@××××××××××.com>
25 > PGP Key for raphaxx@×××××.com <mailto:raphaxx@×××××.com>:
26 > https://pgp.mit.edu/pks/lookup?op=get&search=0x87BC5A746072F951
27
28
29 Generally a person installs from some sort of Linux bootable device, CD,
30 DVD, USB stick or something.  If everything works as it should, the
31 easiest way I know to get a list of drivers, lspci -k should work.  If
32 you want to narrow down to the drivers themselves, you can do it like this:
33
34
35 root@fireball / # lspci -k | grep driver
36         Kernel driver in use: pcieport
37         Kernel driver in use: pcieport
38         Kernel driver in use: pcieport
39         Kernel driver in use: ahci
40         Kernel driver in use: ohci-pci
41         Kernel driver in use: ehci-pci
42         Kernel driver in use: ohci-pci
43         Kernel driver in use: ehci-pci
44         Kernel driver in use: piix4_smbus
45         Kernel driver in use: snd_hda_intel
46         Kernel driver in use: ohci-pci
47         Kernel driver in use: pcieport
48         Kernel driver in use: ohci-pci
49         Kernel driver in use: ehci-pci
50         Kernel driver in use: k10temp
51         Kernel driver in use: fam15h_power
52         Kernel driver in use: nvidia
53         Kernel driver in use: snd_hda_intel
54         Kernel driver in use: xhci_hcd
55         Kernel driver in use: r8169
56         Kernel driver in use: dmfe
57         Kernel driver in use: ahci
58 root@fireball / #
59
60
61 At that point, you can use those names to search for the driver and
62 enable them.  That's the way I've done it in the past and it gives you a
63 very high chance of a working kernel for all hardware.  If you want to
64 see what each driver drives, just leave off the grep part.
65
66 Hope that helps.
67
68 Dale
69
70 :-)  :-)