tags:

views:

470

answers:

4

I have a piece of usb hardware, for which I know the driver. However, the vendor id and product id do not match the VID, PID pair registered in the driver. Is there a way in linux to force a driver to be associated with a known device, that do not involve kernel module recompilation to add a PID / VID pair ?

+4  A: 

Find the module in the sysfs tree. In this case it was in

/sys/bus/usb-serial/drivers/cp2101

In this directory, there is a new_id file entry that can be used to dynamically add VID PID pair like this :

echo VID PID >new_id

Here is a LWN entry about this feature

shodanex
A: 

You don't need actually recompile the whole kernel, recompiling only relevant kernel module with updated match table will be enough, in case that this answer, does not work on your kernel.

Ilya
A: 

Is it possible to do it on Windows as well ?

j.j.
A: 

Is there a way to have it load the ustom driver every time its plugged in?

pvinis