Re: What all are the drivers those get compiled with the kernel?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux