You are not logged in.

#1 2008-09-18 20:21:35

simion314
Member
Registered: 2008-07-29
Posts: 34

[Solved] kernel configuration

Hi. I want to compile a custom kernel for my laptop. I want to build in kernel my required modules and not compile the modules i do not need(to speed up compilation times ).
I want to ask what method did you used(the one who made this) to generate a .config file that is tuned for your computer.(I tried to build into the kernel the modules listed by lsmod and remove the other modules but not all modules listed by lsmod are in the .config,  ) I realy do not want to compile unneeded drivers as modules because on my machine it takes a lot of time , more then 2 hours to build a kernel
Thx for you reading ths

Last edited by simion314 (2008-09-19 05:51:45)

Offline

#2 2008-09-18 20:31:52

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: [Solved] kernel configuration

A really good one is to use the one from abs, copy it to your home folder, and edit the config file, then makepkg.Do you know what I am saying?


Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#3 2008-09-18 22:24:11

Acecero
Member
Registered: 2008-06-21
Posts: 1,373

Re: [Solved] kernel configuration

If your going to compile a custom kernel in Arch, it's recommend you follow through with it in ABS, not that you couldn't but it's nice to keep the system clean through building packages.

Check out the wiki article(if you haven't): http://wiki.archlinux.org/index.php/Cus … n_with_ABS

Offline

#4 2008-09-18 23:33:48

somedrew
Member
From: Canada
Registered: 2007-05-14
Posts: 140

Re: [Solved] kernel configuration

Linux kernel in a nutshell offers some great tips and scripts on configuring the kernel for your hardware http://www.kroah.com/lkn/ .
Hwdetect, lspci, and some hunting around /sys can also help. Issues about not finding config options for lsmod output may be just due to naming; modinfo and modprobe -l can help with, that but you may need to go down to the individual Makefiles to get the exact config option (easier to just google methinks).

cheers,

EDIT:
Here's a nice script that I just came across. I haven't used it but it's seems like a great way to automagically trim your unused modules from your config: http://lkml.org/lkml/2008/9/18/203

Last edited by somedrew (2008-09-19 00:06:19)

Offline

#5 2008-09-19 05:51:05

simion314
Member
Registered: 2008-07-29
Posts: 34

Re: [Solved] kernel configuration

somedrew wrote:

Linux kernel in a nutshell offers some great tips and scripts on configuring the kernel for your hardware http://www.kroah.com/lkn/ .
Hwdetect, lspci, and some hunting around /sys can also help. Issues about not finding config options for lsmod output may be just due to naming; modinfo and modprobe -l can help with, that but you may need to go down to the individual Makefiles to get the exact config option (easier to just google methinks).

cheers,

EDIT:
Here's a nice script that I just came across. I haven't used it but it's seems like a great way to automagically trim your unused modules from your config: http://lkml.org/lkml/2008/9/18/203

Thx, this is a greath book.

Offline

#6 2008-09-19 19:44:25

btartsa
Member
Registered: 2004-07-26
Posts: 222

Re: [Solved] kernel configuration

Agreed, great book! What would kick *maximum ass* though would be a kernel config wiki, so all the new options could be updated as the kernel evolves.

Offline

Board footer

Powered by FluxBB