How to generate a .config file based on the current or initial installtion/kernel
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to generate a .config file based on the current or initial installtion/kernel
If lsmod is to see all the modules that are loaded at the instance, and during menuconfig, we can choose which to be compiled into the kernel(y) or as modules(m).
.config files is only created when make menuconfig or similar is run and saved.
If there is TOTALLY NO existing .config file from the initial installation, how do i generate a .config file based on the current or initial installation?
This will be a BIG help if possible.
Best to be done in commands, not through GUI
thanks in advance.
There is often a config-<version>.gz file saved in /boot that matches an installed pre-configured and compiled kernel. Also check if /proc/config.gz exists.
This psuedo file is generated by the kernel if the kernel option to generate it was enabled in a 2.6 kernel. Running "make oldconfig" will use this file to create a new .config file based on the current options and prompt you for any new options in a newer kernel source. This is a good baseline to use before running "make xconfig" where you can tweak it as desired.
If you don't have a /proc/config.gz file, then the kernel wasn't compiled with that option. It is something that I think you would need to recompile the kernel to enable. Also make sure that you have a 2.6 kernel and not a 2.4 kernel.
On my kernel, I think these options are:
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
Sir,
While you all are at the README , I have been going through the documentation for the last few days and am lost in the maze of files! There are a number of xxxxxx.config files - may I use xxxxxx686.config to start with?(The source rpm was downloaded from the fedora update site)
There are a number of patches also - I sincerely hope that I do not need them!
I have installed the sources properly with the last command being mrproper in the README (I hope!). I seem to have all the tools with Fedora7 and kernel-2.6.23.8 installed, I have dared to run 'make menuconfig' and the shell had a lot to tell, when I fled without saving. It was using the configuration from /boot and had to report a lot of things (config options) that were not available with the 2.6.23.12 kernel sources. May I Ignore those options and continue further and save the .config .
With regards,
P.S.
I seemed to have all the necessary 'system requirements' as detailed in 'linux_sources/Documentation/Changes' but was not sure - the great utility script in 'linux_sources/scripts/ver_linux' has now made me confident that I have everything required. The inclusion of a reference to this script in the 'Software Requirements' section of the "README" would be a great help to beginners like me.
Last edited by shahak; 01-25-2008 at 10:17 AM.
Reason: addition
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.