PDA

View Full Version : How to detect drivers compiled into the kenel?



cbrands
01-02-2005, 10:47 AM
I know I can get the drivers loaded as modules with lsmod and modinfo. But how do I know which drivers are compiled into the kernel?

ghaze
01-02-2005, 06:23 PM
On my system
ls /lib/modules/

cbrands
01-02-2005, 09:09 PM
ghaze I thank you for your reply. I think however that you made a mistake in your advice. ls /lib/modules will list all drivers compiled as modules which may or may not be loaded for a particular system. What I needed was a list of the drivers that were compiled directly in the kernel.

Fortunally I just stumbled on the solution

cat /boot/config-$VERSION | less
will list the configuration file used to compile the kernel. I think this will only work on debian and derivatives such as Knoppix. Then again who cares about other systems :lol:

Charles