LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2012, 05:56 AM   #1
rasidrasid
Member
 
Registered: Jan 2012
Posts: 101

Rep: Reputation: Disabled
use 2.4 confg-file for 2.6 kernel compiling


Hello,

I want to compile a 2.6 kenel, but I have a 2.4 config-file. Is it possible to load a 2.6 kernel-source, do a make menuconfig, use that 2.4 config-file, make the desired changes, save and compile it?

Regards
 
Old 09-26-2012, 07:24 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
After making careful and explicitly-named backups of every config-file you've ever used ... as a matter of standard practice ... you should run the make menuconfig process of 2.6 (or whatever-it-is that you use) so that it has a chance to insert any newly-introduced option keys into it. Then review the settings again carefully. The kernel documentation is quite explicit about whatever has changed between the two versions, but they don't try to "maintain backward compatibility" between apples and oranges: the two kernels are different, maybe in key ways, and the decisions to be made are yours. The configuration scripts do, "run upgrades" once, but it's not a computer's job to be smart and they're terrible at being so.

---

Just to clarify, every time I reconfigure a kernel, I always follow these steps:
  1. Copy the (hidden) config-file to a clearly-named (with date and time), non-hidden file in a chosen subdirectory, say, of /root. Write-protect that file. Copy it to a thumb drive you can find later.
  2. Rename the file to an alternate name.
  3. make distclean
  4. Rename it back (since the preceding step would have destroyed the old name).
  5. make ... etc.
These steps, which are designed to be repeatable, also ensure that the entire kernel and all modules are cleanly rebuilt each time. I like procedures which I can repeat easily and without thinking about them, which minimize "surprises" of any sort. I don't like surprises ...

Last edited by sundialsvcs; 09-26-2012 at 07:31 AM.
 
Old 09-26-2012, 08:36 AM   #3
rasidrasid
Member
 
Registered: Jan 2012
Posts: 101

Original Poster
Rep: Reputation: Disabled
Ok, thank you.
 
  


Reply



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
Compiling object file for kernel module yannifan Programming 2 02-25-2007 12:55 AM
Error in Kernel.h file, while compiling the kernel Nishant Desai Linux - Kernel 0 11-13-2006 11:19 PM
compiling an old kernel using a new config file? slinky2004 Linux - General 5 10-06-2005 10:40 AM
kernel compiling problem: can I use 2.4 .config file with 2.6 ? Xavius Slackware 15 01-07-2005 02:51 PM
use of .config file while kernel compiling rvijay17 General 4 04-03-2003 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:55 AM.

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