What all are the drivers those get compiled with the kernel?
There are numerous drivers present in the 'drivers' directory of Linux kernel. The kernel source for any Android mobile device [e.g. https://android.googlesource.com/kernel/msm/+/android-msm-2.6.35] is, too, not an exception. Definitely all the drivers are not relevant for the chipset which the mobile device is built on. It leads me to believe that *not* all the drivers which are present in the kernel source for a mobile device are built and shipped on commercial phones. Given the kernel source, how can one figure out what all are the drivers those get compiled for that particular mobile device? -- Thanks & Regards, Dipanjan
On Mon, Sep 11, 2017 at 07:42:42PM -0700, Dipanjan Das wrote:
There are numerous drivers present in the 'drivers' directory of Linux kernel. The kernel source for any Android mobile device [e.g. https://android.googlesource.com/kernel/msm/+/android-msm-2.6.35] is, too, not an exception. Definitely all the drivers are not relevant for the chipset which the mobile device is built on.
It leads me to believe that *not* all the drivers which are present in the kernel source for a mobile device are built and shipped on commercial phones. Given the kernel source, how can one figure out what all are the drivers those get compiled for that particular mobile device?
One way you could go about this; If you have a shell on the device you could run `lsmod` to list modules. Then, from within a kernel source tree you can search for files matching the module name find . -name 'FOO*' Good luck, Tobin.
participants (2)
-
Dipanjan Das -
Tobin C. Harding