How to know which devices are supported

BeagleBoarders,

On an xM using the Angstrom demo image, I attached a USB/serial converter that uses an FT232 chip. The OS detected the device and added these files to /sys/bus/usb/drivers:

ftdi_sio (USB FTDI Serial Converters Driver)
usbserial (USB Serial Driver core)
usbserial_generic

Where did these files come from? Are there other USB driver files that will become available if I attach a device? How can I find out what drivers are available?

Jan

Jan,

FTDI usb serial driver at drivers/usb/serial/ftdi_sio.c registers The
"struct usb_driver ftdi_driver" by calling usb_register() api.

The sysfs entries /sys/bus/usb/drivers/* get created whenever driver
is loaded and thus usb_register() api is executed.

We can see all such "struct usb_driver" present in the kernel by
Executing "cat /sys/bus/usb/drivers" command.

Regards,
Ajay

Hi,
see in the drivers/usb folder. U can find different usb drivers supported by that particular kernel version from that u can choose.

Hello JAN,

Drivers in your kernel can be: 1) built in which gets loaded at the time
of boot only and 2) second is modules which only gets loaded when you
insert the device.
generally, usbserial, ftdi_sio and related drivers are not built-in.
they get loaded when you insert the device.
You can see list of all the modules which are currently being loaded in
the memory by lsmod(8) command.

And to know which device modules are currently there in your kernel, you
can see /lib/modules/`uname -r`/kernel/
This folder has all the .ko files for the modules that are compiled with
your kernel.

Now, to know which device uses which module, one way is to try to insert
your device in your PC and see what are the modules which get loaded and
while compiling your kernel remember to include those modules.
I hope i answered the same thing that you are asking .

to know which device modules are currently there in your kernel, you
can see /lib/modules/`uname -r`/kernel/
This folder has all the .ko files for the modules that are compiled with
your kernel.

Thank you.

Jan