View previous topic :: View next topic |
Author |
Message |
Grapes n00b
Joined: 21 Jan 2003 Posts: 43
|
Posted: Sun Feb 02, 2003 9:24 pm Post subject: What's in my kernel |
|
|
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 |
|
|
Dessimat0r Tux's lil' helper
Joined: 06 Jan 2003 Posts: 102
|
Posted: Sun Feb 02, 2003 9:55 pm Post subject: |
|
|
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 |
|
|
PT_LAmb Guru
Joined: 22 Apr 2002 Posts: 332 Location: Lisboa (Lisbon), Portugal
|
Posted: Tue Feb 04, 2003 12:35 am Post subject: |
|
|
... 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 |
|
|
Grapes n00b
Joined: 21 Jan 2003 Posts: 43
|
Posted: Wed Feb 05, 2003 2:02 am Post subject: |
|
|
yeah, but i changed that .config file so many times. It's not the one i wanted. |
|
Back to top |
|
|
scocou Apprentice
Joined: 16 Aug 2002 Posts: 184 Location: Pacific NW, Canada
|
Posted: Wed Feb 05, 2003 7:18 am Post subject: |
|
|
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 |
|
|
|