Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Configuration Tips?
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
eddieparker
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2004
Posts: 147

PostPosted: Fri Mar 06, 2009 1:52 am    Post subject: Kernel Configuration Tips? Reply with quote

Hey!

As much as I love Gentoo and Linux in general, the one part that always mortifies me/infuriates me is configuring my kernel. I get it done, but there's always blood sweat and tears, and I'm just wondering if anyone has some better solutions than what I do.

Basically I'm curious if:

- Anyone knows of a tool that will build you a default/basic .config to start from (ideally as minimal as possible but still functional... too much to hope for? :) )
- Perhaps something that polls lspci and builds it automatically?

Also, while I'm on the topic, something that's not totally unrelated, I often get packages that say "You must make sure CONFIG_* is (set)|(not set)". Is there an easy way to find those settings inside of makeconfig? Ideally I'd like to read the help that usually accompanies a kernel setting to understand what it is I'm enabling/disabling.

Thanks in advance!
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Fri Mar 06, 2009 4:07 am    Post subject: Reply with quote

Well, our beloved forummember pappy_mcfae is doing things like this :)

his thread on this -> https://forums.gentoo.org/viewtopic-t-707499.html
his space with some more info -> http://62.3.120.141/~pappy/
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Fri Mar 06, 2009 7:33 am    Post subject: Reply with quote

Beloved? Shucks, I'm speechless. :)

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
nick_already_taken
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jan 2005
Posts: 137

PostPosted: Fri Mar 06, 2009 2:02 pm    Post subject: Re: Kernel Configuration Tips? Reply with quote

eddieparker,

I don't know a tool like that, but think you don't need that if you have once configured a proper running kernel.

After I had received my new motherboard/cpu I was unsure which kernel options and modules were needed. So I booted a recent gentoo livecd. To determine what modules had been loaded by the livecd, I ran "lsmod".

After that I ran "make menuconfig". To search for the relevant options to set in the kernel config press "/" and enter the module names.

Whenever you update your kernel copy the .config file to the new kernel directory and after that run "make oldconfig". Now you are shown the kernel options that have been added between the to kernel versions. I usually accept the defaults which are shown in big letters. In the dialog you can open a quick help, if I remember things right. That's it.

As I have written this from memory I am not 100% sure if everything is perfectly correct.

Regards,




eddieparker wrote:
Hey!

As much as I love Gentoo and Linux in general, the one part that always mortifies me/infuriates me is configuring my kernel. I get it done, but there's always blood sweat and tears, and I'm just wondering if anyone has some better solutions than what I do.

Basically I'm curious if:

- Anyone knows of a tool that will build you a default/basic .config to start from (ideally as minimal as possible but still functional... too much to hope for? :) )
- Perhaps something that polls lspci and builds it automatically?

Also, while I'm on the topic, something that's not totally unrelated, I often get packages that say "You must make sure CONFIG_* is (set)|(not set)". Is there an easy way to find those settings inside of makeconfig? Ideally I'd like to read the help that usually accompanies a kernel setting to understand what it is I'm enabling/disabling.

Thanks in advance!
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