#usb.txt -- example of test to see if usb webcam is set up ok
#try the following in the order shown... you should get similar results
#the following is pretty much what the guys expect to see if you ask
#a question on the linux-usb-users@lists.sourceforge.net mailing list.
[root@speedy lg]# /sbin/modprobe usb-uhci
[root@speedy lg]# /sbin/modprobe ov511
[root@speedy lg]# /sbin/lsmod
Module Size Used by
ov511 34424 0
videodev 4704 1 [ov511]
usb-uhci 22332 0 (unused)
sb 6448 2 (autoclean)
sb_lib 35572 0 (autoclean) [sb]
uart401 6736 2 (autoclean) [sb_lib]
sound 61228 0 (autoclean) [sb sb_lib uart401]
soundcore 4036 5 (autoclean) [sb_lib sound]
# extract from /var/log/messages as a result of doing above
Jul 7 09:12:24 speedy PAM_pwdb[909]: (su) session opened for user root by lg(uid=500)
Jul 7 09:12:40 speedy kernel: usb-uhci.c: $Revision: 1.232 $ time 21:54:46 Jun 16 2000
Jul 7 09:12:40 speedy kernel: usb-uhci.c: High bandwidth mode enabled
Jul 7 09:12:40 speedy kernel: usb-uhci.c: Intel USB controller: setting latency timer to 0
Jul 7 09:12:40 speedy kernel: usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 9
Jul 7 09:12:40 speedy kernel: usb-uhci.c: Detected 2 ports
Jul 7 09:12:40 speedy kernel: usb.c: new USB bus registered, assigned bus number 1
Jul 7 09:12:40 speedy kernel: usb.c: USB new device connect, assigned device number 1
Jul 7 09:12:40 speedy kernel: Product: USB UHCI Root Hub
Jul 7 09:12:40 speedy kernel: SerialNumber: d400
Jul 7 09:12:40 speedy kernel: hub.c: USB hub found
Jul 7 09:12:40 speedy kernel: hub.c: 2 ports detected
Jul 7 09:12:41 speedy kernel: usb.c: USB new device connect, assigned device number 2
Jul 7 09:12:41 speedy kernel: usb.c: This device is not recognized by any installed USB driver.
Jul 7 09:12:41 speedy kernel: Length = 18
Jul 7 09:12:41 speedy kernel: DescriptorType = 01
Jul 7 09:12:41 speedy kernel: USB version = 1.00
Jul 7 09:12:41 speedy kernel: Vendor:Product = 05a9:0511
Jul 7 09:12:41 speedy kernel: MaxPacketSize0 = 8
Jul 7 09:12:41 speedy kernel: NumConfigurations = 1
Jul 7 09:12:41 speedy kernel: Device version = 1.00
Jul 7 09:12:41 speedy kernel: Device Class:SubClass:Protocol = 00:00:00
Jul 7 09:12:41 speedy kernel: Per-interface classes
Jul 7 09:12:41 speedy kernel: Configuration:
Jul 7 09:12:41 speedy kernel: bLength = 9
Jul 7 09:12:41 speedy kernel: bDescriptorType = 02
Jul 7 09:12:41 speedy kernel: wTotalLength = 0089
Jul 7 09:12:41 speedy kernel: bNumInterfaces = 01
Jul 7 09:12:41 speedy kernel: bConfigurationValue = 01
Jul 7 09:12:41 speedy kernel: iConfiguration = 00
Jul 7 09:12:41 speedy kernel: bmAttributes = 80
Jul 7 09:12:41 speedy kernel: MaxPower = 500mA
Jul 7 09:12:41 speedy kernel:
Jul 7 09:12:41 speedy kernel: Interface: 0
Jul 7 09:12:41 speedy kernel: Alternate Setting: 0
Jul 7 09:12:41 speedy kernel: bLength = 9
Jul 7 09:12:41 speedy kernel: bDescriptorType = 04
Jul 7 09:12:41 speedy kernel: bInterfaceNumber = 00
Jul 7 09:12:41 speedy kernel: bAlternateSetting = 00
Jul 7 09:12:41 speedy kernel: bNumEndpoints = 01
Jul 7 09:12:41 speedy kernel: bInterface Class:SubClass:Protocol = ff:00:00
Jul 7 09:12:41 speedy kernel: iInterface = 00
Jul 7 09:12:41 speedy kernel: Endpoint:
Jul 7 09:12:41 speedy kernel: bLength = 7
Jul 7 09:12:41 speedy kernel: bDescriptorType = 05
Jul 7 09:12:41 speedy kernel: bEndpointAddress = 81 (in)
Jul 7 09:12:41 speedy kernel: bmAttributes = 01 (Isochronous)
Jul 7 09:12:41 speedy kernel: wMaxPacketSize = 03e0
Jul 7 09:12:41 speedy kernel: bInterval = 01
Jul 7 09:12:41 speedy kernel: Alternate Setting: 1
Jul 7 09:12:41 speedy kernel: bLength = 9
Jul 7 09:12:41 speedy kernel: bDescriptorType = 04
Jul 7 09:12:41 speedy kernel: bInterfaceNumber = 00
Jul 7 09:12:41 speedy kernel: bAlternateSetting = 01
Jul 7 09:12:41 speedy kernel: bNumEndpoints = 01
Jul 7 09:12:41 speedy kernel: bInterface Class:SubClass:Protocol = ff:00:00
Jul 7 09:12:41 speedy kernel: iInterface = 00
Jul 7 09:12:41 speedy kernel: Endpoint:
Jul 7 09:12:41 speedy kernel: bLength = 7
Jul 7 09:12:41 speedy kernel: bDescriptorType = 05
Jul 7 09:12:41 speedy kernel: bEndpointAddress = 81 (in)
Jul 7 09:12:41 speedy kernel: bmAttributes = 01 (Isochronous)
Jul 7 09:12:41 speedy kernel: wMaxPacketSize = 03e1
Jul 7 09:12:41 speedy kernel: bInterval = 01
Jul 7 09:12:41 speedy kernel: Alternate Setting: 2
Jul 7 09:12:41 speedy kernel: bLength = 9
Jul 7 09:12:41 speedy kernel: bDescriptorType = 04
Jul 7 09:12:41 speedy kernel: bInterfaceNumber = 00
Jul 7 09:12:41 speedy kernel: bAlternateSetting = 02
Jul 7 09:12:41 speedy kernel: bNumEndpoints = 01
Jul 7 09:12:41 speedy kernel: bInterface Class:SubClass:Protocol = ff:00:00
Jul 7 09:12:41 speedy kernel: iInterface = 00
Jul 7 09:12:41 speedy kernel: Endpoint:
Jul 7 09:12:41 speedy kernel: bLength = 7
Jul 7 09:12:41 speedy kernel: bDescriptorType = 05
Jul 7 09:12:41 speedy kernel: bEndpointAddress = 81 (in)
Jul 7 09:12:41 speedy kernel: bmAttributes = 01 (Isochronous)
Jul 7 09:12:41 speedy kernel: wMaxPacketSize = 0300
Jul 7 09:12:41 speedy kernel: bInterval = 01
Jul 7 09:12:41 speedy kernel: Alternate Setting: 3
Jul 7 09:12:41 speedy kernel: bLength = 9
Jul 7 09:12:41 speedy kernel: bDescriptorType = 04
Jul 7 09:12:41 speedy kernel: bInterfaceNumber = 00
Jul 7 09:12:41 speedy kernel: bAlternateSetting = 03
Jul 7 09:12:41 speedy kernel: bNumEndpoints = 01
Jul 7 09:12:41 speedy kernel: bInterface Class:SubClass:Protocol = ff:00:00
Jul 7 09:12:41 speedy kernel: iInterface = 00
Jul 7 09:12:41 speedy kernel: Endpoint:
Jul 7 09:12:41 speedy kernel: bLength = 7
Jul 7 09:12:41 speedy kernel: bDescriptorType = 05
Jul 7 09:12:41 speedy kernel: bEndpointAddress = 81 (in)
Jul 7 09:12:41 speedy kernel: bmAttributes = 01 (Isochronous)
Jul 7 09:12:41 speedy kernel: wMaxPacketSize = 0301
Jul 7 09:12:41 speedy kernel: bInterval = 01
Jul 7 09:12:41 speedy kernel: Alternate Setting: 4
Jul 7 09:12:41 speedy kernel: bLength = 9
Jul 7 09:12:41 speedy kernel: bDescriptorType = 04
Jul 7 09:12:41 speedy kernel: bInterfaceNumber = 00
Jul 7 09:12:41 speedy kernel: bAlternateSetting = 04
Jul 7 09:12:41 speedy kernel: bNumEndpoints = 01
Jul 7 09:12:41 speedy kernel: bInterface Class:SubClass:Protocol = ff:00:00
Jul 7 09:12:41 speedy kernel: iInterface = 00
Jul 7 09:12:41 speedy kernel: Endpoint:
Jul 7 09:12:41 speedy kernel: bLength = 7
Jul 7 09:12:41 speedy kernel: bDescriptorType = 05
Jul 7 09:12:41 speedy kernel: bEndpointAddress = 81 (in)
Jul 7 09:12:41 speedy kernel: bmAttributes = 01 (Isochronous)
Jul 7 09:12:41 speedy kernel: wMaxPacketSize = 0200
Jul 7 09:12:41 speedy kernel: bInterval = 01
Jul 7 09:12:41 speedy kernel: Alternate Setting: 5
Jul 7 09:12:41 speedy kernel: bLength = 9
Jul 7 09:12:41 speedy kernel: bDescriptorType = 04
Jul 7 09:12:41 speedy kernel: bInterfaceNumber = 00
Jul 7 09:12:41 speedy kernel: bAlternateSetting = 05
Jul 7 09:12:41 speedy kernel: bNumEndpoints = 01
Jul 7 09:12:41 speedy kernel: bInterface Class:SubClass:Protocol = ff:00:00
Jul 7 09:12:41 speedy kernel: iInterface = 00
Jul 7 09:12:41 speedy kernel: Endpoint:
Jul 7 09:12:41 speedy kernel: bLength = 7
Jul 7 09:12:41 speedy kernel: bDescriptorType = 05
Jul 7 09:12:41 speedy kernel: bEndpointAddress = 81 (in)
Jul 7 09:12:41 speedy kernel: bmAttributes = 01 (Isochronous)
Jul 7 09:12:41 speedy kernel: wMaxPacketSize = 0201
Jul 7 09:12:41 speedy kernel: bInterval = 01
Jul 7 09:12:41 speedy kernel: Alternate Setting: 6
Jul 7 09:12:41 speedy kernel: bLength = 9
Jul 7 09:12:41 speedy kernel: bDescriptorType = 04
Jul 7 09:12:41 speedy kernel: bInterfaceNumber = 00
Jul 7 09:12:41 speedy kernel: bAlternateSetting = 06
Jul 7 09:12:41 speedy kernel: bNumEndpoints = 01
Jul 7 09:12:41 speedy kernel: bInterface Class:SubClass:Protocol = ff:00:00
Jul 7 09:12:41 speedy kernel: iInterface = 00
Jul 7 09:12:41 speedy kernel: Endpoint:
Jul 7 09:12:41 speedy kernel: bLength = 7
Jul 7 09:12:41 speedy kernel: bDescriptorType = 05
Jul 7 09:12:41 speedy kernel: bEndpointAddress = 81 (in)
Jul 7 09:12:41 speedy kernel: bmAttributes = 01 (Isochronous)
Jul 7 09:12:41 speedy kernel: wMaxPacketSize = 0101
Jul 7 09:12:41 speedy kernel: bInterval = 01
Jul 7 09:12:41 speedy kernel: Alternate Setting: 7
Jul 7 09:12:41 speedy kernel: bLength = 9
Jul 7 09:12:41 speedy kernel: bDescriptorType = 04
Jul 7 09:12:41 speedy kernel: bInterfaceNumber = 00
Jul 7 09:12:41 speedy kernel: bAlternateSetting = 07
Jul 7 09:12:41 speedy kernel: bNumEndpoints = 01
Jul 7 09:12:41 speedy kernel: bInterface Class:SubClass:Protocol = ff:00:00
Jul 7 09:12:41 speedy kernel: iInterface = 00
Jul 7 09:12:41 speedy kernel: Endpoint:
Jul 7 09:12:41 speedy kernel: bLength = 7
Jul 7 09:12:41 speedy kernel: bDescriptorType = 05
Jul 7 09:12:41 speedy kernel: bEndpointAddress = 81 (in)
Jul 7 09:12:41 speedy kernel: bmAttributes = 01 (Isochronous)
Jul 7 09:12:41 speedy kernel: wMaxPacketSize = 0000
Jul 7 09:12:41 speedy kernel: bInterval = 01
Jul 7 09:12:49 speedy kernel: Linux video capture interface: v1.00
Jul 7 09:12:49 speedy kernel: usb.c: registered new driver ov511
Jul 7 09:12:49 speedy kernel: ov511.c: [ov511_probe:2776] probing for device...
Jul 7 09:12:49 speedy kernel: ov511.c: USB OV511 camera found
Jul 7 09:12:49 speedy kernel: ov511.c: camera: Creative Labs WebCam 3
Jul 7 09:12:49 speedy kernel: ov511.c: [ov76xx_configure:2610] I2C synced in 1 attempt(s)
Jul 7 09:12:49 speedy kernel: ov511.c: Sensor is an OV7610
Jul 7 09:12:49 speedy kernel: ov511.c: [ov511_mode_init_regs:943] width:640, height:480, mode:4, sub:0
Jul 7 09:12:49 speedy kernel: ov511.c: ov511 driver version 1.17 registered
# now mount usbdevfs (you did compile it into the kernel right?)
# it is not needed, but gives a bunch of user accessable info on usb system
[root@speedy lg]# mount -t usbdevfs none /proc/bus/usb
[root@speedy lg]# cat /proc/bus/usb/drivers
ov511
hub
usbdevfs
[root@speedy lg]# cat /proc/bus/usb/devices
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=d400
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=05a9 ProdID=0511 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=ov511
E: Ad=81(I) Atr=01(Isoc) MxPS= 992 Ivl= 1ms
I: If#= 0 Alt= 1 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=ov511
E: Ad=81(I) Atr=01(Isoc) MxPS= 993 Ivl= 1ms
I: If#= 0 Alt= 2 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=ov511
E: Ad=81(I) Atr=01(Isoc) MxPS= 768 Ivl= 1ms
I: If#= 0 Alt= 3 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=ov511
E: Ad=81(I) Atr=01(Isoc) MxPS= 769 Ivl= 1ms
I: If#= 0 Alt= 4 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=ov511
E: Ad=81(I) Atr=01(Isoc) MxPS= 512 Ivl= 1ms
I: If#= 0 Alt= 5 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=ov511
E: Ad=81(I) Atr=01(Isoc) MxPS= 513 Ivl= 1ms
I: If#= 0 Alt= 6 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=ov511
E: Ad=81(I) Atr=01(Isoc) MxPS= 257 Ivl= 1ms
I: If#= 0 Alt= 7 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=ov511
E: Ad=81(I) Atr=01(Isoc) MxPS= 0 Ivl= 1ms
# the following checks to make sure the video devices are setup ok
#
[root@speedy lg]# ls -l /dev/video*
lrwxrwxrwx 1 root root 6 Nov 24 1999 /dev/video -> video0
crw------- 1 lg root 81, 0 Jan 28 13:59 /dev/video0
crw------- 1 lg root 81, 1 Jan 28 13:59 /dev/video1
To Gspy Homepage