I've read some docs about linux kernel, and they all are referring the file /usr/src/linux/.config, what is this one for, and why I don't have such file. I have /usr/src/linux-2.4, and no .confg underneath.
uname -a 2.4.9-e.27smp #1 SMP Tue Aug 5 15:49:54 EDT 2003 i68
Thanks,
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click
here
.config contains the choices you made during the configuration before the Kernel build. If you have not configured/rebuild your own kernel there will be no .config
The best way, if you want to learn more about your kernel, would be to run make mrproper make xconfig You'll get a menu, in which you'll be able to browse all your kernel options, and to see which options are already ticked. It's graphical, organised and easier to read than a .config file, which you anyway don't have up to the time you compiled your kernel. You may also search on google for this file, you'll find many examples (seem to be real machine sfile, strange AFA security is concerned, but anyway...)
If you want to start making changes to the kernel you currently have -then just copy /boot/config-(kernel_version) to /usr/src/linux/.config and this would be your starting point for changes. Regards
Shall add up to what the rest have said. You can find a config file inside your /boot, do a `cp /boot/<config file> /usr/src/linux-2.4/.config'. This .config file will help you start off with, once you do a `make menuconfig'. Before you start configuring your kernel, read the doc /usr/src/linux-2.4/Documentation/Changes. Under Debian GNU/Linux, there is this wonderful `kernel-package'. It consists of a perl helper script `make-kpkg', it generates a .deb file of the kernel image for your portable pleasure!
I don't have /boot/config* file, and nor /usr/src/linux/.config. Does that mean the kernel never been rebuilt on the box? Is /boot/config-kernelversion identical with /usr/src/linux/.config?
Looking at the kernel name you've got there, it looks like you're using RedHat Advanced Server 2.1 (or another Enterprise RH product).
By default, this doesn't dump the .config to /boot (like Suse, and I thnk Debian do).
If you've installed the kernel-source package, you should also have a /usr/src/linux-2.4/configs/ directory which has a nubmer of '.config' files for various builds of the kernel.
Try copying one of these to /usr/src/linux-2.4/.config, and see how you go.
ur kernel config file is in /boot directrory either on seprate partiion or in the same / its name is not only config its name is some thing having ur kernel version e.g 2.4.22config