LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-25-2003, 04:29 AM   #1
Sammy2ooo
Member
 
Registered: Jan 2003
Location: nearby switzerland
Distribution: Suse 8.0 / Suse 9.0 / Slackware 9.1 / Debian Sarge testing / Gentoo 1.4.10
Posts: 165

Rep: Reputation: 30
Kernel compile options


is it possible to find out with which options the kernel has been compiled.
I am new to all this kernel stuff.

greets
 
Old 11-25-2003, 06:46 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Most current distributions store the config file for the installed kernels in /boot, so if you are running linux-2.4.20 chances are you have a file in /boot called config-2.4.20 or something to that effect.

To re-use that old configuration when you configure a new kernel, copy the config file to /usr/src/linux/.config, where /usr/src/linux is a symlink to the actual kernel source tree location. Then, in /usr/src/linux, run make oldconfig. You will be asked several questions. These are options that are new in the current version (the one you're configuring) and that were not available in the old version. The answers you give here aren't final - once you're done answering the questions you can do a regular make menuconfig or make xconfig to make sure everything looks OK and that you have all the options you want in there.

The 2.6-test series kernels provide a means of grabbing the configuration directly from /proc/config.gz, if that option was enabled during the configuration of the running kernel.

Håkan
 
Old 11-25-2003, 11:56 PM   #3
Sammy2ooo
Member
 
Registered: Jan 2003
Location: nearby switzerland
Distribution: Suse 8.0 / Suse 9.0 / Slackware 9.1 / Debian Sarge testing / Gentoo 1.4.10
Posts: 165

Original Poster
Rep: Reputation: 30
Thumbs up

Thx for your support,

does disabling hardware modules i don't need eg for some special soundcards which is not in my system enhance the performance?
 
Old 11-26-2003, 06:08 AM   #4
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
If they're included as modules (indicated by an 'M' in menuconfig) rather than built into the kernel (indicated by '*') then the only difference it will make is to the time it takes to "make modules" when you compile it all. It will make no difference at runtime. If they're build into the kernel then the kernel size will be smaller, and maybe it will run a bit faster too (although I can't say for certain about that).
 
Old 11-26-2003, 07:43 AM   #5
Sammy2ooo
Member
 
Registered: Jan 2003
Location: nearby switzerland
Distribution: Suse 8.0 / Suse 9.0 / Slackware 9.1 / Debian Sarge testing / Gentoo 1.4.10
Posts: 165

Original Poster
Rep: Reputation: 30
know i have compiled my "own" kernel and modules. I have copied bzImage to /boot and altered my /boot/grub/menu.lst acordingly and tried to reboot, it failes.
I have red a few things about initrd and System.map i have copied the new System.map to /boot. But didn't change anything else. I think i have forgotten something. How can i tell grub to use this new system.map in conjunction with my new kernel. Must i alter initrd???

Greets
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compile options keysoft Linux - Newbie 4 02-24-2005 12:01 AM
Dell 600m Kernel Compile Options giddyupman Slackware 0 10-21-2004 11:17 AM
emerge compile options MrJoshua Linux - Software 0 06-07-2004 03:58 PM
Default options for kernel compile... guddler Mandriva 2 03-19-2004 05:12 PM
Kernel 2.6.2 options question - LOCKED options ? tvojvodi Linux - General 0 02-17-2004 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration