LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-29-2010, 08:04 AM   #1
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Rep: Reputation: 18
kernel compilation with menu oldconfig?


Why it asking me for options to be selected while I run:
Code:
make oldconfig
. I am in verse to compile latest reased kernel 2.6.34-rc5 on Ubuntu 9.10?

what i did is Just pressed "Enter" key ( i think it will dsiable everything?Not sure) and created a .config file.

Last edited by linuxunix; 04-29-2010 at 08:05 AM.
 
Old 04-29-2010, 08:12 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
The point behind make oldconfig is that it takes any existing configuration options, but there are invariably new options not covered by the old kernel and it is asking you what to do with those. There are default answers (in capital letters) that will be applied if you just press Enter. Not all of the new options will be disabled by default, so you do need to pay attention to those defaults.
 
Old 04-29-2010, 08:28 AM   #3
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Original Poster
Rep: Reputation: 18
Can't I use make menuconfig and enable all the options with a single shot.
What if I select all the options, will it again throw error during make install after make modules_install
 
Old 04-29-2010, 12:22 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
As far as I know, there is no way to use make menuconfig to enable all options at a go. However, the .config file is just text, so you could probably use a simple text editor with Search/Replace to do it. However, I have absolutely no idea why you would want to configure a kernel this way. The amount of stuff that would be added that would be useless for any individual machine would be staggering. Some of the stock kernels in distros probably have most modules made, but certainly not all of them.
 
Old 04-29-2010, 12:40 PM   #5
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
From kernel "make help":

Code:
allyesconfig    - New config where all options are accepted with yes

But, I have the same opinion of Hangdog42: why, when building your own kernel, compile everything in it? It will make a huge kernel with lots of things you won't make any use.
 
Old 04-29-2010, 01:08 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,777

Rep: Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115
Whenever you want to use a new kernel, I suggest you do it that way:
1. Launch Linux with a usable kernel
2. Install the sources of the new kernel in /usr/src
3. Go to the new kernel source tree. In your case :
Code:
cd /usr/src/linux-2.6.34-rc5
4. Put the .config associated to the running kernel in the new tree:
Code:
zcat /proc/config.gz > .config
5. run:
Code:
make oldconfig
4. In the process, read the help for each option before answering it as needed. This takes some time, but what would be the point in upgrading your kernel if not to use some new feature or driver it includes?
5. Make the kernel image, the modules, install the modules, update your boot loader configuration file accordingly and run it.

To know more about available make options, just type "cd /usr/src/linux-2.6.34-rc5" then "make help".

Last edited by Didier Spaier; 04-29-2010 at 01:11 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recompiling the kernel with make oldconfig Woodsman Slackware 9 12-24-2007 05:10 PM
change kernel configurations when use "make oldconfig" Gijet Red Hat 4 10-09-2006 08:23 PM
When recompile one kernel, it's necessary rename config for oldconfig??? xcore_on Linux - Newbie 1 05-20-2006 05:10 AM
proper kernel config - using an oldconfig Godsmacker777 Linux - General 7 06-05-2005 01:11 AM
How do I make a change to a current kernel? Would 'make oldconfig' work... jtp51 Slackware 11 11-02-2004 12:02 AM


All times are GMT -5. The time now is 06:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration