Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
drimades
n00b
n00b


Joined: 12 Feb 2007
Posts: 11

PostPosted: Sat Oct 20, 2012 7:24 am    Post subject: Kernel configuration Reply with quote

I'm trying to correctly configure a linux kernel by scratch and keep it as small as possible. I'm starting with make allnoconfig and then from that configuration file I follow some indication given in this forum. I run lspci -k to find the actual drivers in use and use this info to configure my new kernel. What other command can I use to find the kernel drivers in use by other physical devices in my laptop (other than PCI)?
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Sat Oct 20, 2012 8:18 am    Post subject: Reply with quote

lsusb might help. (There is a lot of stuff to configure besides
pci and usb devices, though. Expect to need the www to figure
everything out.)
_________________
TIA
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Sat Oct 20, 2012 8:37 am    Post subject: Re: Kernel configuration Reply with quote

drimades wrote:
I'm trying to correctly configure a linux kernel by scratch and keep it as small as possible. I'm starting with make allnoconfig and then from that configuration file I follow some indication given in this forum. I run lspci -k to find the actual drivers in use and use this info to configure my new kernel. What other command can I use to find the kernel drivers in use by other physical devices in my laptop (other than PCI)?

As far as drivers are concerned you also could have done the exact opposite :
1/ Select *everything* in your config
2/ Boot
3/ Plug all the plug & play devices you will use
4/ Read your syslog.
If you read lines looking like [driver name] comment, then it means that the kernel found some hardware to be driven by [driver name] => You should select it.
You can then remove all the others, if they do not appear in your syslog => Your system don't need.
Do not worry, if some driver conflicts with another one, (things like this can happen with for example the smbus, sensors...) syslog will tell you.

(BTW, you should select a rather detailed level of log in your kernel... (4 I think ? Not so sure !)
_________________


Last edited by aCOSwt on Sat Oct 20, 2012 8:41 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Sat Oct 20, 2012 11:45 am    Post subject: Reply with quote

drimades,

You may find that kernel-seeds.org can help.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
drimades
n00b
n00b


Joined: 12 Feb 2007
Posts: 11

PostPosted: Mon Oct 22, 2012 9:15 am    Post subject: Reply with quote

This is my lsusb output:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 13d3:5130 IMC Networks

How can I get useful info from it?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Mon Oct 22, 2012 5:00 pm    Post subject: Reply with quote

drimades,

Put
Code:
1d6b:0002 +usb
into google.
That doesn't work too well for that device.

Code:
lsusb -vvv | less
may help too.

Google tells that 13d3:5130 is a UVC webcam, so you want UVC support in your kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum