You are not logged in.

#1 2010-04-19 18:25:54

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Compiling kernel, make menuconfig and the modules

I'm trying to compile a kernel, using this suggestion:
http://bbs.archlinux.org/viewtopic.php? … 01#p739701
I found
lspci -k
which lists all drivers and modules in use. Logically, I want to include those modules into the new kernel, so I try to find the corresponding names in
make menuconfig
Is there a way to search for a module name? Is there a table somewhere to find the relevant kernel parameters?
How can I be sure I included the right module?


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#2 2010-04-19 19:23:53

jurkan
Member
From: Germany
Registered: 2010-04-03
Posts: 23

Re: Compiling kernel, make menuconfig and the modules

http://kmuto.jp/debian/hcl/ <-- This is a link of the topic you linked above. Simply copy the output of lspci -n in the box and press the left button.

Then you will get a table, the second column from the right is the one with the driver names.

Sometimes it seems to be useful to speak german ;-)

See also this: http://zen-kernel.org/tutorials/creatin … figuration
(it should explain the same method but with some more details)

Offline

#3 2010-04-19 20:46:50

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: Compiling kernel, make menuconfig and the modules

Thanks, that is useful!
I speak german, why?


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#4 2010-04-19 21:03:25

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Compiling kernel, make menuconfig and the modules

You should use make localmodconfig - just make sure all modules that you want in the new kernel are loaded at the time that you run it.

Offline

#5 2010-04-20 01:51:43

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Compiling kernel, make menuconfig and the modules

SanskritFritz wrote:

I'm trying to compile a kernel, using this suggestion:
http://bbs.archlinux.org/viewtopic.php? … 01#p739701
I found
lspci -k
which lists all drivers and modules in use. Logically, I want to include those modules into the new kernel, so I try to find the corresponding names in
make menuconfig
Is there a way to search for a module name? Is there a table somewhere to find the relevant kernel parameters?
How can I be sure I included the right module?

in menuconfig, just type / to get a searchbox. it will list all modules and their locations that match your search (IIRC it's case sensitive so beware of that)

Offline

#6 2010-04-20 13:38:41

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: Compiling kernel, make menuconfig and the modules

Guys thanks,
make localmodconfig (awesome script!)
and the "/" search function was almost more than what I was looking for!


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#7 2010-04-21 00:22:55

ssri
Member
Registered: 2010-02-16
Posts: 216

Re: Compiling kernel, make menuconfig and the modules

Funny, 'make localmodconfig' worked fine for me whenever I compiled 2.6.32.x.  However, I always get an error after answering a few question prompts whenever trying to compile 2.6.33.x

Offline

#8 2010-04-26 16:18:27

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: Compiling kernel, make menuconfig and the modules

Mine is working fine, never used it before but except for whining that lsmod can't be found all went well (i've just edited the streamline-whatever.pl script to point to /bin/lsmod instead of /sbin/lsmod).

mine custom config had 600 modules, now 200 big_smile I don't know how much stock kernel had, 2K ?

Offline

#9 2010-05-02 22:34:22

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: Compiling kernel, make menuconfig and the modules

I have to say, I'm really impressed. 15 minutes compile time, blazing fast kernel, life is good smile
make localmodconfig is a godsent, really.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

Board footer

Powered by FluxBB