LinuxQuestions.org
Help answer threads with 0 replies.
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 05-09-2009, 11:10 AM   #1
antiregulator
LQ Newbie
 
Registered: Apr 2009
Posts: 13

Rep: Reputation: 0
kernel compilation options...


hey there...

is there a way to see with what options has my kernel been compiled?

you know, a command like -uname or so...

i'm trying to dig kernel module stuff, and parameters like enabled modules or modversioning, i don't know if my kernel supports all that!

i understand that each of these features i just could test to see whether it's on or off, still i would really appreciate something more centralized.

thx in advance!

dave.
 
Old 05-09-2009, 11:14 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Would the config file in /boot help you?
 
Old 05-09-2009, 11:14 AM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
There is an option in the kernel configuration to embed the original config options into it so they can be extracted later on, but I don't know if distros are enabling that or not.

There should be a "config" file under /boot though, which will correspond to the various kernel images that are also living there. The config files are plain-text, and you can easily grep/search them to see what was enabled.
 
Old 05-09-2009, 12:05 PM   #4
synss
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian, Gentoo, Mac OS X
Posts: 137

Rep: Reputation: 22
The config of the current kernel may be in /proc/config.gz, use zgrep to retrieve the options.
 
Old 05-09-2009, 12:13 PM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
There's a vary similar thread on LQ where /proc/config is recommended as well. However, apparently this option (to create /proc/config.gz) is not enabled by default in many kernels so there isn't /proc/config(.gz) on many system (including mine)
 
Old 05-09-2009, 12:19 PM   #6
antiregulator
LQ Newbie
 
Registered: Apr 2009
Posts: 13

Original Poster
Rep: Reputation: 0
thx everyone!

got what i wanted!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is g++'s compilation options under linux? ArthurHuang Programming 1 10-28-2007 01:13 AM
compilation and debugging options in xemacs abhattacharya Linux - Software 0 07-14-2007 09:55 AM
Possible to view program's configure compilation options tisource Linux - General 0 11-16-2004 07:08 PM
Compilation options in config and Kernel panic beejayzed Linux - Newbie 0 01-30-2004 04:56 PM
Confused about kernel compilation options toolkit Linux - General 3 11-21-2002 09:34 PM

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

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

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