LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-01-2005, 05:32 PM   #1
grx
LQ Newbie
 
Registered: Feb 2005
Posts: 15

Rep: Reputation: 0
make config info


OK, my new laptop now has Slackware 10.1 installed, compiled my own 2.6.10 kernel, the nvidia drivers work perfectly, and I finally figured out how to get the wireless card turned on. My next issue is the sound, which worked fine with the default 2.4 kernel on install, so I know it should work ok. It seems to me that I probably did something wrong in the .config for the 2.6.10 kernel, so I guess I need to do it again. But this time, I'd like to slim it down a bit, and optimize the kernel as much as I can, so I have a few questions:

How do I determine just what should be compiled into the kernel?
What benefit does leaving something as a module have?
Can I leave out half the stuff that make menuconfig gives me, since I'll never use them? (ie, support for other CPU's, monitors, wireless cards, etc.)

Basically, is there a posting or a website that has a good tutorial for figuring out what your kernel should include? I do have enough linux experience to have done things up to this point, but I don't know what half the stuff in the .config file is. Anyone have any ideas for me?

Thanks for all the help you guys give us n00b's.

Last edited by grx; 03-01-2005 at 05:34 PM.
 
Old 03-01-2005, 06:09 PM   #2
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
as far as i know there's no central resource or website where you can find info on the config options. you just have to read carefully, choose wisely, and keep notes. and of course, recompile, recompile, recompile =)

as for sound, just make sure you include ALSA support, i usually do it as a module. leave OSS out. make sure /etc/rc.d/rc.alsa is executable, and run alsa_mixer and alsactl store. if those don't work, then more searching is required, and more details of the problem.

a couple useful tips as far as kernel compiling though:

you can check the config file directly, to see whether you included support for various things. either use emacs or another text editor to open the config file directly, or try something like this: cat .config | grep ALSA (be sure to man grep first, so you can pass it options like ignore-case, etc).

read the sticky threads at the top of this forum, they give some great advice.


finally, as far as including things as modules or built-in, i don't know. the advantage of a module is that you can load/unload it at will. so there are a bunch of things i built as modules that i don't actually use. be very careful though, because there are many things that you MUST build into the kernel itself, such as support for your / filesystem.


EDIT: oh and yes, you can leave out support for hardware you don't have
 
Old 03-01-2005, 07:27 PM   #3
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,290
Blog Entries: 5

Rep: Reputation: 53
For Slackware 10.1 I used the kernel from kernel org and it works great.A good guide is Default kernel guide
And Slackware uses udev so make sure you do this
And for the sound I enable alsa "*" into the kernel and my card as a module "m"
And as already stated enable whatever file system,chipset,hard drive cd etc into "*" the kernel
and save at least one working kernel,sometime it take a few times to get it right,but once you do then save
your /usr/src/linux/.config and now when a new kernel come out,you can run make oldconfig.
I just do make menuconfig until I don't get any error messages and then stop.Also once I have a good kernel I
don't think much is gained with every new release,if it isn't broke awl you know.good luck
 
Old 03-01-2005, 10:09 PM   #4
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
you can type 'make xconfig' in an xterm
then enable 'show all options' and 'show debug info' under options
you can read descriptions and get a little advice

if you leave something as a module, your kernel image will be smaller
also, some software looks specifically for certain modules and will not
work if it has been compiled into the kernel

as far as sound...
all you need in the kernel is:
Device Drivers>Sound>Sound card support=Y (built-in to kernel)

you can then d/l and install the most recent
version of ALSA manually for your kernel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot see Kernel Config Info, and my Swap File...Won't! fastvfr Debian 1 09-07-2004 03:37 AM
failure loading or saving config info for rhn-applet strimp099 Linux - General 0 05-24-2004 11:30 PM
how do i make a shortcut with info for Gnome Lleb_KCir Linux - General 1 03-22-2004 09:48 AM
I want change mail header info, which config file i should modify? exper Linux - Software 2 12-05-2003 06:46 AM
how do I find config info for simple 2 computer lan toastermaker Linux - Newbie 18 10-29-2003 03:27 PM


All times are GMT -5. The time now is 06:36 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration