LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 12-24-2003, 01:36 PM   #1
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Automatic kernel configuration tool?


Hi!

I just lived through the configuration of the 2.6 kernel (it's currently compiling on a machine behind my back). There were like 500 different questions and I was quite fed up towards the end.

Then it crossed my mind: most of the questions are already known to the system! (What CPU, which chipset, what NIC etc). I'd say that half of those questions can be answered by probing the system!

Question 1: Does any tool for that exist already? I thought that you could run the tool and it would probe your hardware and spit out a .config file that only needs some tuning by me.

Question 2: If (false==Q1), how do I set up a project to make that tool? I want to do it in co-operation with others, since I don't know much about probing hardware.

Question 3: Anyone want's to give a helping hand? (Sometime after the holidays.)

Regards
Martin
 
Old 12-24-2003, 02:35 PM   #2
andrew001
Member
 
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
On 2.4.x systems there was a 'make oldconfig' option. This loaded up the current kernel configuration, and then prompted you for any new features.

Also 'make menuconfig' uses an ncurses based menu system to make the configuration process a lot easier.

~Andrew
 
Old 12-24-2003, 11:17 PM   #3
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
umm, if you have compiled your kernel before, you will find a ".config" file under the src tree. you'll have to do a "ls -a" to see it.
so, basically you need to set things only the first time, and load it everytime later. i normally save my config file in my home dir (along with all my kernel src trees), and i only have to "load stored config file", and "make".
i personally use menuconfig instead of Xconfig, as it is definitely faster for me while im enabling/disabling options.

also, about the tool - well, you wouldnt be able to install linux or any OS, if it werent able to probe and set the various requirements in the first place. im not sure, but i think that "first" .config which was used during "first"-install can be found under /boot (try ls -a). and well, just load that up when ur compiling your new kernel, and check/uncheck whatever u think is required/not required.

Last edited by h/w; 12-24-2003 at 11:21 PM.
 
Old 12-25-2003, 02:21 AM   #4
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Original Poster
Rep: Reputation: 30
Hi!

Thanks for the replies. I compiled the 2.6 kernel and I didn't think that it would be possible to use a 2.4 .config file. That's why I used 'make xconfig'. The default settings for everything (fresh for kernel.org) were for P4 and a lot of other settings that my Pentium classic wouldn't have cared much for.

Do you (h/w) say that a .config file is generated during install? I have to look into that.

Regards
Martin
 
Old 12-26-2003, 03:47 PM   #5
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
the keyword being 'im not sure, but...'
yeah, check /boot and see if there is a .config after u first install a system.
and theres normally enough changes between kernel upgrades (like, 2.4 -> 2.6) for you to warrant a look at all the options.
 
Old 12-26-2003, 04:45 PM   #6
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
or just do "find / -iname '.config' 2>/dev/null"
 
Old 12-26-2003, 06:53 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
The .config file is created during the config stage regarless of whether you use a gui or menus or prompts. After the config is done you can copy the .config fiel from the source dir to a safe location. Most people put it in /boot and give it the name of their kernel - ie:
/boot/kernel-2.6-xyz

If you use your 2.4 config file it should use those values and AFAIK the defaults for anything new. When you copy the .config file to your source tree do it just after "make mrproper" or it will be deleted.
 
  


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
Interested in automatic kernel configuration? APB_4 Linux - Software 10 07-01-2005 01:42 PM
kernel configuration tool fatihyasin Linux - Software 2 02-05-2005 09:46 AM
Which LVS graphical configuration tool is available for Linux kernel 2.6.7? puzzledapple Linux - Networking 1 08-09-2004 08:48 PM
Automatic Re-configuration of X nethook Linux - Software 0 05-18-2004 09:18 AM
X configuration problem - OR - Where did the configuration tool go??? t3kn0lu5t Debian 3 09-25-2003 08:19 PM


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