LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2004, 10:05 PM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
What is the difference between 'make oldconfig' and 'make xconfig'


From http://newbiedoc.sourceforge.net/system/kernel-pkg.html

8.1. Using an existing configuration
When you installed your custom kernel, its configuration was copied to /boot/config-x.y.z. You may want to squirrel it away in another location (or several other locations) for safekeeping or later re-use.

Suppose that just last week you picked your way through the maze of options, and settled on a configuration that supports all the hardware and features you want. Today a new stable kernel is released and of course you want to upgrade right away. Is it necessary to start from scratch configuring the new kernel? Not at all.

Download and expand the new source tarball and make a new symlink. Then change directories to /usr/src/linux, copy your existing configuration there and do "make oldconfig":

bash:/usr/src/linux$ cp /boot/config-2.4.18.030320 .config
bash:/usr/src/linux$ make oldconfig


You'll be asked questions about new kernel options. It's generally safe to answer "no" to all the questions; make notes of the new options that interest you.

After you finish oldconfig you can run xconfig or menuconfig to review your selections, change your answers, or investigate the options you noted.


What is the difference if I just copy /boot/config-x.y.z. into /usr/src/linux/.config and do a make xconfig (skipping make oldconfig) ?

Thanks
 
Old 04-06-2004, 10:27 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Because the old config, will not match up. The new kernel will have options the old kernel won't also the settings will change sometimes, so what was value 2 in the old config maybe value 3 in the new, so if you don't make oldconfig, some of the values maybe inaccurate.

Also stuff moves about, say the networking card options could be under another section, and won't be parsed, so no network card for you.
 
1 members found this post helpful.
Old 04-07-2004, 03:49 AM   #3
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
Sometimes, especially if you're moving an entirely new minor version (2.4-2.6), it's better to read the config file and use it as a guideline to choosing your kernel options. No method is perfect, so being able to look at the options and decide if you want to make a change or not is sometimes a better choice than a simple config copy or letting a parser do the work for you. Takes a little more time, but kernel compiling isn't something you should rush through. It's also quite educational, especially if your distro makes a lot of modifications to the base kernel (custom patches and experimental stuff).
 
1 members found this post helpful.
  


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
Help with make oldconfig/menuconfig fiasco beebelo Ubuntu 3 11-09-2005 11:15 AM
make xconfig, xconfig with weird words pakkua80 Fedora - Installation 3 11-17-2004 06:19 AM
How do I make a change to a current kernel? Would 'make oldconfig' work... jtp51 Slackware 11 11-01-2004 11:02 PM
make oldconfig itzfritz Linux - General 4 10-26-2004 06:58 AM
make xconfig/make menuconfig don't work acidblue Debian 2 07-27-2004 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 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