LinuxQuestions.org
Review your favorite Linux distribution.
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 03-19-2013, 01:44 PM   #1
tobindax
LQ Newbie
 
Registered: Mar 2013
Posts: 19

Rep: Reputation: Disabled
What make menuconfig really needs


A way to detect all hardware, perhaps with an lspci/lsusb et al., or even lower level methods and then automatically remove the rest of the hardware from the .config, if one choses to do so.

Last edited by tobindax; 03-19-2013 at 01:56 PM.
 
Old 03-19-2013, 08:28 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
There is an excellent site to help you with PCI devices - http://kmuto.jp/debian/hcl/. Google will help you with USB devices, too.
 
Old 03-20-2013, 07:31 AM   #3
tobindax
LQ Newbie
 
Registered: Mar 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
You don't get it. I don't have a problem manually finding the devices. I'm talking about a system that automatically removes drivers for hardware not currently existing on a system when creating the .config of the linux kernel.

But nevermind, I made a feature report.
 
Old 03-20-2013, 11:48 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Have you had a look at the localmodconfig and localyesconfig options?
 
Old 03-20-2013, 07:47 PM   #5
tobindax
LQ Newbie
 
Registered: Mar 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Have you had a look at the localmodconfig and localyesconfig options?
Awesome! though I'm currently on windows, I'll see later. hehe.
 
Old 03-20-2013, 08:55 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,672
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
I wonder if there might be a bit of a catch-22 situation here: you need operational drivers to know what devices are out there; for the software to see them.

Usually, I boot up a Knoppix DVD on a strange system and notice what drivers it comes up with. What definitely would be nice would be some tool to automate the result of that discovery process, perhaps writing a text-file to a conveniently inserted thumb drive.
 
Old 03-20-2013, 09:07 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by sundialsvcs View Post
I wonder if there might be a bit of a catch-22 situation here: you need operational drivers to know what devices are out there; for the software to see them.
You don't need working drivers to see a device (otherwise we really would have a problem with all the people here with wireless problems), all you need is an up-to-date database for lspci/lsusb. But of course this only helps to determine which hardware is present, but not which driver is needed for that hardware, localmodconfig and and localyesconfig therefore are only looking which drivers are currently loaded and create a config file for those drivers.
 
Old 03-21-2013, 03:18 AM   #8
tobindax
LQ Newbie
 
Registered: Mar 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
You don't need working drivers to see a device (otherwise we really would have a problem with all the people here with wireless problems), all you need is an up-to-date database for lspci/lsusb. But of course this only helps to determine which hardware is present, but not which driver is needed for that hardware, localmodconfig and and localyesconfig therefore are only looking which drivers are currently loaded and create a config file for those drivers.
That's actually not very bad since it's excellent for situations like debian unstable or experimental:

e.g. I download 3.8.3 from experimental debian, it has EVERYTHING as a module (or built-in when they can't), so there a method like that would make a tiny .config compared to before.

Right now it's extremely gruesome because you have to go through around 40minutes+ in most systems to recompile a kernel for your processor, CFLAGS, or other minor different settings.

The alternative of going manually is also gruesome not so much because it's impossible but you can't really do it once. After 6 months it might need another trimming since the structure of the kernel itself might change (it has happened a lot especially after major 2.x releases).

Though of course I don't know if that method is quirky (e.g. creating problems with built-in features etc.), I haven't seen it in action.

Last edited by tobindax; 03-21-2013 at 03:24 AM.
 
Old 03-21-2013, 04:20 AM   #9
tobindax
LQ Newbie
 
Registered: Mar 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
Ok it works quite well!

I realize that even if not as dynamic as the first idea, the localmodconfig method (introduced somewhere in 2.6.x) might satisfy that need for most situations a kernel is already configured to be modular and one only needs to base a custom local kernel on that generic installation. e.g. when basing it on debian kernels that basically include everything they can as modules.
 
  


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
make menuconfig rekaye1005 SUSE / openSUSE 2 03-21-2006 10:51 PM
make: *** No rule to make target 'menuconfig' yussef Debian 10 12-22-2005 09:23 AM
make: *** No rule to make target `menuconfig' Ezzy Linux - Newbie 3 04-21-2005 09:21 AM
make xconfig/make menuconfig don't work acidblue Debian 2 07-27-2004 07:36 AM
make menuconfig liguorir Linux - Software 1 06-19-2003 11:53 AM

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

All times are GMT -5. The time now is 06:18 PM.

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