LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-08-2012, 01:40 AM   #1
rafe_b
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
'make i386_defconfig'


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.
 
Old 01-08-2012, 01:05 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
Old 01-09-2012, 07:03 AM   #3
rafe_b
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mara View Post
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?
 
Old 01-09-2012, 07:24 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
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.
 
  


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 needed for make file problem : make: *** No rule to make target `flash', needed rameshsatyavaram Linux - Newbie 3 09-11-2008 02:13 AM
Belkin Wirless G RTL8185L make[1]: *** No rule to make target `Makefile'. Stop. SilverRock Linux - Wireless Networking 2 02-11-2007 07:25 AM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 05:58 AM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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