Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
list of kernel modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jumi99
n00b
n00b


Joined: 13 Mar 2013
Posts: 8

PostPosted: Tue Aug 27, 2013 3:48 pm    Post subject: list of kernel modules Reply with quote

Hi

I would like to speed up booting of my Gentoo by specifying the list of kernel
modules. I use genkernel and I like that it detects all the required modules at
startup. On the other hand it seems to be unnecessary to detect all required
kernel modules every time when there are no hardware changes on my system.

I have the following plan. After booting the system with genkernel use lsmod to
produce the list of modules and then to put them into /etc/conf.d/modules in a
proper format. Unfortunately I don't know how to turn off autodetection of
modules by genkernel at boot time afterwards. Please tell me how can I do that.

Also please tell me if my plan seems to be not good for some reason.

Great thanks for help
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Tue Aug 27, 2013 4:53 pm    Post subject: Reply with quote

The best way would be to build a static kernel without modules. All stuff included. This requires manual configuration. An other option would be to use a seed from kernel-seeds.org and enable the modules you need. This reduces the modules which are scanned dramatically.

Bye
schorsch
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Tue Aug 27, 2013 4:59 pm    Post subject: Reply with quote

I recommend you build a kernel using http://www.kernel-seeds.org/ for instructions and a kernel seed. You will not need an initramfs, which should take something like ~30 seconds off you boot up. At least I did when I switched several years ago with older hardware.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
TheLexx
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2005
Posts: 137
Location: Austin Tx

PostPosted: Sat Aug 31, 2013 1:11 am    Post subject: Reply with quote

If you want to cut down on the number of modules in your /lib/module directory, you might look into using "make localmodconfig" the next time you compile your kernel. It will change your ".config" file for kernel building. You might also look into "make localyesconfig" if you want to just build the modules directly into the kernel. Be sure to read up on those commands before making changes to your kernel. I also recommend backing up your current kernel .config file.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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