List of drivers

Hi,

The defconfig of Robert Nelsons kernel includes a lot of drivers --
partly included into the kernel -- to support a wide range of
hardware devices.

Since I want to strip down the kernel config to limit its size to what
is currently needed to support the hardware I am using, I am looking
for a method to identify each module (those included into the kernel
and therefore get not listed by lsmod), which is really used.

How can I figure out all drivers actually in use by the kernel
to support the hardware on which the kernel currently runs?

Thank you very much in advance for any help!
Best regards,
mcc

lsmod

Sorry, I missed the part where you already mentioned lsmod. The best way to find out which peripheral drivers are used in the kernel, and are not modules would be by examining the device tree for enabled peripherals, coupled with a bit of trial and error :wink:

Cheers,
Jack.

Considering some important modules are built-in, thus lsmod wouldn't show them..

Just build, test, minimize config, rebuild, retest, till it still
works and is small..

Regards,

Robert Nelson <robertcnelson@gmail.com> [13-09-19 14:20]:

> Hi,
>
> The defconfig of Robert Nelsons kernel includes a lot of drivers --
> partly included into the kernel -- to support a wide range of
> hardware devices.
>
> Since I want to strip down the kernel config to limit its size to what
> is currently needed to support the hardware I am using, I am looking
> for a method to identify each module (those included into the kernel
> and therefore get not listed by lsmod), which is really used.
>
> How can I figure out all drivers actually in use by the kernel
> to support the hardware on which the kernel currently runs?
>
> Thank you very much in advance for any help!
> Best regards,
> mcc

Considering some important modules are built-in, thus lsmod wouldn't show them..

Just build, test, minimize config, rebuild, retest, till it still
works and is small..

Regards,

Hi Robert,

this is the most basic approach ("trial and error") -- I was in search
of something more advanced...

By the way: I sthere any chance to harm the hardware to leave anything
uninitialized in the electronic wild because the driver is missing ?

Best regards,
mcc