View previous topic :: View next topic |
Author |
Message |
randomeme098 n00b

Joined: 05 Aug 2018 Posts: 14
|
Posted: Tue Aug 07, 2018 7:34 pm Post subject: Kernel modules and more memes I don't know about |
|
|
I am using x220 in which I'm installing gentoo on but I am worried that I will ruin the configuration because of kernel modules.
I have read both of these now several times:
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel
https://wiki.gentoo.org/wiki/Kernel_Modules
If I manually configure my kernel and do it decently I wont have to install firmware, right?
emerge --ask sys-kernel/linux-firmware
I am especially confused about this part in the handbook:
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel#Kernel_modules
Are commands like mkdir -p /etc/modules-load.d and nano -w /etc/modules-load.d/network.conf something I need to do?
I also wanna ask if I need to disable udev or anything like that, I am not planning to go with systemd so I imagine not but some packages seem to depend on udev so I was wondering if I need to configure some settings for that?
I am also planning to go with OpenRC if that matters at all in this specific topic. |
|
Back to top |
|
 |
audiodef Watchman


Joined: 06 Jul 2005 Posts: 6319 Location: /usr/lib64/lv2
|
Posted: Tue Aug 07, 2018 8:04 pm Post subject: |
|
|
If you're new to Gentoo and want to get your Lenovo up and running, use genkernel. You can keep reading and experimenting - genkernel won't stop you from recompiling your kernel manually if you want to.
I have a Y520, on which Gentoo works perfectly. _________________ Gentoo Studio: A Gentoo-based, professional digital audio workstation OS. |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 44195 Location: 56N 3W
|
Posted: Wed Aug 08, 2018 7:02 pm Post subject: |
|
|
randomeme098,
The firmware provided with linux-firmware is loaded into attached hardware when the kernel driver initialises.
Thus the firmware must be available at that time.
Exactly when a kernel driver initialises depends on several factors.
a) If its configured as built in, it happens before any root filesystem is mounted, so the firmware must be included in the kernel binary.
b) if its configured as a loadable module, its loaded from the root filesystem, so the firmware in /lib/firmware can be read.
BUT if you use an initrd, and the module is there, so must the firmware be to as the initrd is the first mounted root filesystem.
Its not quite that simple. You may find that without firmware loaded, you don't get a console.
Thus with the video driver as a loadable module your console is delayed and you miss error messages.
As audiodef says, you can use genkernel to delay learning about kernels.
genkernel is not perfect and often requires manual intervention to configure things to your taste. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
fredbear5150 Tux's lil' helper

Joined: 11 Oct 2003 Posts: 77
|
Posted: Mon Aug 13, 2018 11:47 am Post subject: |
|
|
As per my comment in your other thread, I have an X220 that runs lovely on Gentoo with a 4.14.52 kernel. If you want any of my configs, just let me know. |
|
Back to top |
|
 |
unheatedgarage n00b


Joined: 19 Sep 2016 Posts: 51
|
Posted: Mon Aug 13, 2018 12:13 pm Post subject: |
|
|
Chiming in with what's been said: Genkernel is really, really good. It will probably get you up-and-running.
The way I like to look at it is, if the Gentoo live disk/usb, (whatever your choice) works on my hardware, then Genkernel will most-likely work too!
However, like Neddy said, it's not perfect. I have an unlocked wifi card that I bought from Think Penguin--worked great with Ubuntu. It was the real "plug and play" deal--no mess, no fuss--worked every time.
When I switched to Gentoo, though...."uuuhhh, hrrmmmm, why isn't this working anymore???". Turns out, it's an Atheros9 something or other, and good-old Genkernel didn't include it (or detect it?).
Nevertheless. I've installed a whole bunch of Gentoos over the years on my old, crappy, random computers, and Genkernel (for the most part) works. every time. :)
Good luck. We're all counting on you! _________________ I'm not even mad; I'm impressed! |
|
Back to top |
|
 |
|
|
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
|
|