LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   .config file for 2.6 kernel (https://www.linuxquestions.org/questions/linux-distributions-5/config-file-for-2-6-kernel-371607/)

sajjadc 10-10-2005 02:12 PM

.config file for 2.6 kernel
 
i need .config file for 2.6 kernal , plz send me in my mail id
csajjad@gmail.com

rjlee 10-10-2005 02:50 PM

sajjadc,

The .config file holds the configuration information used when compiling your kernel. The contents of this file depend heavily on the hardware you are using; there is no such thing as a “generic” .config file that you can be sent by email and make use of.

If you are running a 2.6 series kernel, you can normally get the .config file for your current kernel configuration using this command
Code:

cat /proc/config.gz | gunzip > ~/.config
(this will create the file in your home directory).[/code]

You can also generate this file by installing the kernel source, then running:
Code:

cd dir
to change to the kernel directory (replace dir with wherever you put the source code), then one of the following:
Code:

make menuconfig #interactive menu
make configure # questions and answers
make xconfig # graphical configuration; you will need X running

Make sure that you read the documentation carefully before compiling your kernel, as you can easily end up making something that won't boot your computer. This isn't a disaster as you can still boot off your old kernel, however.

Hope that helps,

— Robert J. Lee

sajjadc 10-11-2005 06:46 PM

i need .config file bcoz im now working in 2.4 kernel

rjlee 10-12-2005 03:45 PM

If you have followed the instructions for installing the kernel source and configuring your kernel, you will have a .config file; it's what the configuration stage produces. And you only need one if you are compiling your own kernel.

I can't generate one for you without knowing a lot of technical information about your computer, which I don't.

sajjadc 10-13-2005 12:59 PM

dear friend
i need 2.6 . config file for installing thru it, ineed a stable - error free configaration
so plz send me the file

phil.d.g 10-13-2005 02:29 PM

The contents of the .config file depends on your own hardware, if I were to send you my .config file it most likely wouldn't work on your system

When you run `make menuconfig` in the top level dir of the kernel source you will need to set options to match your hardware and circumstances then when you save and exit, your .config file will be produced

which rjlee has already told you

rjlee 10-13-2005 02:42 PM

Quote:

Originally posted by sajjadc
dear friend
i need 2.6 . config file for installing thru it, ineed a stable - error free configaration
so plz send me the file

Any configuration produced through make menuconfig should be both stable and error-free, provided that you use a stable version of the kernel.

That doesn't mean it will work on your computer. Linux supports many different types of hardware; if you configure it to work on a MIPS system using a SCSI bus then it likely won't work on an Intel system with USB disks, for example.

What you are asking for is a generic .config file. This does not exist.

fireedo 10-14-2005 08:46 AM

You can try this config file for kernel 2.6.13 from http://ftp.slackware.cz/slackware/sl.../config-2.6.13

maybe that can help you.... :)

sajjadc 10-14-2005 12:48 PM

thanx fireedo


All times are GMT -5. The time now is 09:29 PM.