Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 03-10-2008, 03:01 PM   #1
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Rep: Reputation: 30
Apply the .config file from one kernel branch to another?

I am planning on compiling a new kernel for my Centos install, as the 2.6.18 branch doesnt offer me the features i require.

Is it possible to use the old .config file and apply it to a new vanilla kernel, then tailor it exactly to the machine im compiling for?

Reasons for the kernel compile include SATA errors that didnt exist when i had Fedora 8 and the 2.6.23 kernel, and no usb hdd support.

Thanks in advance.
Old 03-10-2008, 03:18 PM   #2
Registered: Mar 2008
Location: UK
Distribution: Slackware
Posts: 56

Rep: Reputation: 15
Put the .config file in the new tree and use 'make oldconfig'. This will use your existing .config parameters and set defaults for any new options. Then run make {menu,x}config as usual to config the new stuff. See kernel README for more details.
Old 03-10-2008, 03:19 PM   #3
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Not the best idea. FYI: neither the CentOS or the Fedora kernels are vanilla anyhow.

Better idea get the latest released vanilla kernel source from;

After extraction do in order;

make mrproper
make oldconfig (this will get you close to what you want)
make menuconfig (or xconfig or gconfig here, so you make your tweaks)
make modules_install
make install

It would be a good idea to know in advance what hardware you actually have when configuring the kernel. You may be able to run the Fedora 8 kernel to assist in creating the starting configuration point (make oldconfig).
Old 03-10-2008, 05:52 PM   #4
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Original Poster
Rep: Reputation: 30

I am aiming for the way you describe it, Lenard.

I just need a kernel that supports USB hard drives as i have a few that i need access too. At present the drives dont even show up in /dev, which is a problem i havent seen since Fedora 5, which was solved by a 2.6.20 kernel at the time.

Getting rid of the SATA probs as well would be nice. As the logs are being continually filled with i/o errors that are due to a buggy implementation of the JMicron driver that is fixed in all kernels i've tried beyond 2.6.22.

And Realtek Gigabit Lan support would be sweet as well.

So using the very latest vanilla is the way forward for me, i think.

The drivers i'll build in will be essentially sound, network, usb devices, and as much of the normal stuff that Centos comes with.

Thanks again.
Old 03-10-2008, 08:06 PM   #5
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Original Poster
Rep: Reputation: 30
Just a quick follow-on reply.

Building the vanilla kernel was successful, but it never booted due to a kernel panic. Which i spent an hour trying to debug, without avail.

It then occured to me i was going about this the wrong way. I looked to see what the last kernel version was in fedora core 6, and it was from the 2.6.22 branch. I installed it without any problems, and now have Realtek RTL6169 support, USB Device support, and some of the annoying SATA errors have disappeared.

Thanks everyone for your help.


centos, centos5, kernel

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
understanding kernel .config file (for kernel compilation) sudhirkumar Linux - General 2 09-07-2007 07:55 PM
Get the config file of 2.4.31 kernel Swift&Smart Slackware 1 03-13-2006 12:34 PM
can you apply 2.6.x kernel config to 2.4.x safely/somewhat safely? silex_88 Linux - Software 3 12-10-2005 12:38 AM
.config file for new kernel plan9 Slackware 2 06-04-2004 08:02 PM
I lost rmed my kernel config file. Anyway to create one from the kernel? severedhead Linux - Software 3 07-12-2002 08:54 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration