LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-15-2003, 01:49 PM   #1
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
Question Can I use the configure file from the last kernel on the new kernel?


I have been tweaking the configure file for the 2.4.21 kernel alot and have it close to perfect. I just downloaded the new 2.6 kernel and REALLY don't want to have to start completely over. Can I use the old configure file and just select/deselect the new features or does it not work that way?
 
Old 07-15-2003, 01:50 PM   #2
martinman
Member
 
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290

Rep: Reputation: 30
yes, in fact i do this quite a lot when i recompile.
 
Old 07-15-2003, 02:00 PM   #3
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Original Poster
Rep: Reputation: 46
Exactly which file do I copy?
 
Old 07-15-2003, 02:33 PM   #4
martinman
Member
 
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290

Rep: Reputation: 30
ok, say you're in /usr/src/whateverkernel/ and you wanna copy the config file from another kernel, just do this command, and it should even rename it for you:


cp ../[olderkernel]/configs/[configyouwantbasedonarchi] . && mv [nameof theconfigfileyouchoose] .config


the /olderkernel/ could be linux-2.4/ or wherever the source for the older kernel is. the configyouwant is based on system architecture. IE i686 i386 or athlon, etc. Know which one you want first.

keep in mind, that command should be run from the source tree of 2.6

Last edited by martinman; 07-15-2003 at 02:36 PM.
 
Old 07-15-2003, 03:09 PM   #5
quietguy47
Member
 
Registered: Mar 2003
Location: Everett
Distribution: Slackware
Posts: 805

Rep: Reputation: 35
If you use the command #make oldconfig, it imports your old config file automatically.
 
Old 07-15-2003, 03:11 PM   #6
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Original Poster
Rep: Reputation: 46
cool thanks!!!
 
Old 07-15-2003, 05:15 PM   #7
martinman
Member
 
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290

Rep: Reputation: 30
lol, seems like i ALWAYS do things the hard way. hell, i learned from it =)
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure kernel 2.6.12.5 damoncf Debian 1 08-25-2005 12:44 PM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 09:31 AM
kernel configure devit Slackware 4 03-10-2004 01:42 PM
How do I configure Kernel Lordendu Linux - Newbie 1 09-25-2003 09:18 AM
I lost rmed my kernel config file. Anyway to create one from the kernel? severedhead Linux - Software 3 07-12-2002 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:53 PM.

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