如何找到一个usb设备的具体驱动

如何找到一个usb设备的具体驱动

9/6/2009 9:22:43 PM
1.在ubuntu中插入了一个pc camera,通过lsusb可以找到具体的设备类型:
Bus 001 Device 002: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam
2.udevadm info --export-db > udev.txt
在udev.txt文件中找到301b:
P: /devices/pci0000:00/0000:00:07.2/usb1/1-1
N: bus/usb/001/002
S: char/189:1
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:07.2/usb1/1-1
E: MAJOR=189
E: MINOR=1
E: DEVTYPE=usb_device
E: DRIVER=usb
E: DEVICE=/proc/bus/usb/001/002
E: PRODUCT=ac8/301b/100
E: TYPE=255/0/0
E: BUSNUM=001
E: DEVNUM=002
E: DEVNAME=/dev/bus/usb/001/002
E: DEVLINKS=/dev/char/189:1
3.可以知道具体的设备为:/dev/bus/usb/001/002
E: DEVNAME=/dev/bus/usb/001/002
E: DEVLINKS=/dev/char/189:1
4.udevadm info -a --name=/dev/bus/usb/001/002
可以知道所有有关此设备的属性
looking at device '/devices/pci0000:00/0000:00:07.2/usb1/1-1':
KERNEL=="1-1"
SUBSYSTEM=="usb"
DRIVER=="usb"
ATTR{configuration}==""
ATTR{bNumInterfaces}==" 1"
ATTR{bConfigurationValue}=="1"
ATTR{bmAttributes}=="80"
ATTR{bMaxPower}=="160mA"
ATTR{urbnum}=="183"
ATTR{idVendor}=="0ac8"
ATTR{idProduct}=="301b"
ATTR{bcdDevice}=="0100"
ATTR{bDeviceClass}=="ff"
ATTR{bDeviceSubClass}=="00"
ATTR{bDeviceProtocol}=="00"
ATTR{bNumConfigurations}=="1"
ATTR{bMaxPacketSize0}=="8"
ATTR{speed}=="12"
ATTR{busnum}=="1"
ATTR{devnum}=="2"
ATTR{version}==" 1.10"
ATTR{maxchild}=="0"
ATTR{quirks}=="0x0"
ATTR{authorized}=="1"
ATTR{manufacturer}=="Vimicro Corp."
ATTR{product}=="PC Camera"
参考:
为设备创建惯用的符号链接
Ubuntu下创新笔记本外置pcmcia声卡自动切换

你可能感兴趣的:(驱动)