Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What's in my kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Grapes
n00b
n00b


Joined: 21 Jan 2003
Posts: 43

PostPosted: Sun Feb 02, 2003 9:24 pm    Post subject: What's in my kernel Reply with quote

This might sound like a stupid quesiton, but is there a command to tell exactly what I put in my kernel. I have my normal kernel, but with no sound. I couldn't get it working. I saved this conifg. Next i played with my externel hard drive and compiled a new kernel for it. Then i played with sound and got that working, but i did it by working with my first config that didn't support my usb hard drive. now i can't seem to get my usb and sound to work. I know i should have saved my usb hard drive kernel as well, but i didn't. So is there are way to tell what i compiled in with the kernel so i can dupicated it? Thanks for any help.
Back to top
View user's profile Send private message
Dessimat0r
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2003
Posts: 102

PostPosted: Sun Feb 02, 2003 9:55 pm    Post subject: Reply with quote

There should be a .config file in the source directory of the kernel.

There is a control applet in KDE that will show you what is in this, or simply copy it to the directory of the new kernel source to duplicate the configuration.
Back to top
View user's profile Send private message
PT_LAmb
Guru
Guru


Joined: 22 Apr 2002
Posts: 332
Location: Lisboa (Lisbon), Portugal

PostPosted: Tue Feb 04, 2003 12:35 am    Post subject: Reply with quote

... after copying, and running e.g. make menuconfig select Load an Alternate Configuration File and insert .config. The configuration file will be loaded.

Good luck,
Ricardo Cordeiro :)
_________________
SETI@Home - http://setiathome.ssl.berkeley.edu/
Back to top
View user's profile Send private message
Grapes
n00b
n00b


Joined: 21 Jan 2003
Posts: 43

PostPosted: Wed Feb 05, 2003 2:02 am    Post subject: Reply with quote

yeah, but i changed that .config file so many times. It's not the one i wanted.
Back to top
View user's profile Send private message
scocou
Apprentice
Apprentice


Joined: 16 Aug 2002
Posts: 184
Location: Pacific NW, Canada

PostPosted: Wed Feb 05, 2003 7:18 am    Post subject: Reply with quote

Quote:
is there a command to tell exactly what I put in my kernel
You don't say what kernel version you use but if it's 2.4.20 or newer there's a built in config saved in the kernel, if you chose to include that option. CONFIG_PROC_CONFIG=m/y/n is found in the file systems section, and is verbosely referred to as
Code:
<M> Kernel configuration visible in /proc/config
It is also available as a module, perhaps you compiled one instead of building it in. Undeniably a great feature when needed, if included ;) If any of this is true in your case then...
Quote:
You can then recreate the .config file by cat /proc/config > /usr/src/linux/.config
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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