Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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.
Does it ever make sense to config a kernel using "make i386_defconfig" on a typical desktop PC?
What I noticed was that, using the 'defconfig' option, I ended up with a modules.dep file with only three entries. The default (previous) modules.dep had many, many entries (maybe 1000 or so?) Repeating the entire process starting with 'make mrproper' followed by 'make oldconfig' yields a very different result.
I have a hunch "make i386_defconfig" was where I went wrong.
i386_defconfig doesn't include that much. Normally you should look into the options and enable the support/functionalities you need. With i386_defconfig you may be missing drivers for some of your hardware, for example.
i386_defconfig doesn't include that much. Normally you should look into the options and enable the support/functionalities you need. With i386_defconfig you may be missing drivers for some of your hardware, for example.
Hi, thanks for that reply. Trouble is, how does one know which support one needs for a typical desktop PC? I dare say even an expert would struggle at this, even if he/she knew the system hardware in great detail. For my part, I was only successful after doing make oldconfig first. But that depends on there being an existing .config file to start from. So how does this chicken-and-egg cycle get started?
One good idea is to boot up one of those "all on one DVD" distros, e.g. Knoppix, and note what drivers it auto-detected and ran.
Note how it described the hardware, what drivers it selected and so on. This should be "a configuration that works." It might not be the one that you finally select but it is a good starting point for an unknown machine. (Attach whatever USB devices you have and note also how they are detected.)
It is much faster to do this auto-detection once, and to custom-build a kernel/module set that is "known good" for it, than to lumber through the detection process with every boot.
Just be sure to save a copy of the (hidden) .config file in a safe place, carefully labeled and dated (and un-hidden). Do this each time you change the system configuration. Keep careful records. Once you get the system configured the first time, getting it back to that known-good state should become a non-brainer; something that you have practiced and that can be done entirely by rote, following steps that you have actually written down and actually know how to get to in a crisis. (The git version-control system is quite a handy adjunct for this task, since it requires no server.)
Last edited by sundialsvcs; 01-09-2012 at 07:30 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.