ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.)
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.