I tried a lot of things and they all failed. I still cannot capture
anything. Here are some info that may help. First of all, I tried updating
to 2.6.28...

# uname -a
Linux 2.6.282.6.28 #2 Sat Jan 10 17:00:05 CET 2009 i686 GNU/Linux

----
Rebuild of uvcvideo-7ec490a64a56 (make distclean && make && make install)
This the build I had used the other day (and that worked to a certain point)
I get this "uvcvideo: Unable to initialize the status endpoint (-2), status
interrupt will not be supported." I didn't have that message before..

I also tried with the latest snapshot 90c7dc24fb4d (that crashed when
probing, check the dmesg log at the end of this mail)
----

# modprobe uvcvideo trace=255 quirks=2
# dmesg
uvcvideo: uvc_v4l2_open
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYCAP)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_CROPCAP)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_S_CROP)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_G_FMT)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_REQBUFS)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 0.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 1.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 2.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 3.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_STREAMON)
uvcvideo: uvc_v4l2_release
usbcore: deregistering interface driver uvcvideo
uvcvideo: Adding mapping Brightness to control
00000000-0000-0000-0000-000000000101/2.
uvcvideo: Adding mapping Contrast to control
00000000-0000-0000-0000-000000000101/3.
uvcvideo: Adding mapping Hue to control
00000000-0000-0000-0000-000000000101/6.
uvcvideo: Adding mapping Saturation to control
00000000-0000-0000-0000-000000000101/7.
uvcvideo: Adding mapping Sharpness to control
00000000-0000-0000-0000-000000000101/8.
uvcvideo: Adding mapping Gamma to control
00000000-0000-0000-0000-000000000101/9.
uvcvideo: Adding mapping Backlight Compensation to control
00000000-0000-0000-0000-000000000101/1.
uvcvideo: Adding mapping Gain to control
00000000-0000-0000-0000-000000000101/4.
uvcvideo: Adding mapping Power Line Frequency to control
00000000-0000-0000-0000-000000000101/5.
uvcvideo: Adding mapping Hue, Auto to control
00000000-0000-0000-0000-000000000101/16.
uvcvideo: Adding mapping Exposure, Auto to control
00000000-0000-0000-0000-000000000001/2.
uvcvideo: Adding mapping Exposure, Auto Priority to control
00000000-0000-0000-0000-000000000001/3.
uvcvideo: Adding mapping Exposure (Absolute) to control
00000000-0000-0000-0000-000000000001/4.
uvcvideo: Adding mapping White Balance Temperature, Auto to control
00000000-0000-0000-0000-000000000101/11.
uvcvideo: Adding mapping White Balance Temperature to control
00000000-0000-0000-0000-000000000101/10.
uvcvideo: Adding mapping White Balance Component, Auto to control
00000000-0000-0000-0000-000000000101/13.
uvcvideo: Adding mapping White Balance Blue Component to control
00000000-0000-0000-0000-000000000101/12.
uvcvideo: Adding mapping White Balance Red Component to control
00000000-0000-0000-0000-000000000101/12.
uvcvideo: Adding mapping Focus (absolute) to control
00000000-0000-0000-0000-000000000001/6.
uvcvideo: Adding mapping Focus, Auto to control
00000000-0000-0000-0000-000000000001/8.
uvcvideo: Adding mapping Zoom, Absolute to control
00000000-0000-0000-0000-000000000001/11.
uvcvideo: Adding mapping Zoom, Continuous to control
00000000-0000-0000-0000-000000000001/12.
uvcvideo: Adding mapping Privacy to control
00000000-0000-0000-0000-000000000001/17.
uvcvideo 5-1:1.0: usb_probe_interface
uvcvideo 5-1:1.0: usb_probe_interface - got id
uvcvideo: Probing generic UVC device 1
uvcvideo: Found format YUV 4:2:2 (YUYV).
uvcvideo: - 640x480 (30.0 fps)
uvcvideo: - 352x288 (30.0 fps)
uvcvideo: - 320x240 (30.0 fps)
uvcvideo: - 176x144 (30.0 fps)
uvcvideo: - 160x120 (30.0 fps)
uvcvideo: Found format MJPEG.
uvcvideo: - 640x480 (30.0 fps)
uvcvideo: - 352x288 (30.0 fps)
uvcvideo: - 320x240 (30.0 fps)
uvcvideo: - 176x144 (30.0 fps)
uvcvideo: - 160x120 (30.0 fps)
uvcvideo: Found a Status endpoint (addr 83).
uvcvideo: Found UVC 1.00 device Hercules Dualpix Exchange (06f8:3005)
uvcvideo: Forcing device quirks 0x2 by module parameter for testing purpose.
uvcvideo: Please report required quirks to the linux-uvc-devel mailing list.
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/2 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/3 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/6 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/7 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/8 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/9 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/10 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/12 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/1 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/4 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/5 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/11 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/13 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/2 to device 1
entity 1
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/3 to device 1
entity 1
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/4 to device 1
entity 1
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/11 to device 1
entity 1
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/13 to device 1
entity 1
uvcvideo: Scanning UVC chain: OT 2 <- XU 5 <- XU 4 <- PU 3 <- IT 1
uvcvideo: Found a valid video chain (1 -> 2).
uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling
workaround.
input: Hercules Dualpix Exchange as /class/input/input13
uvcvideo: Unable to initialize the status endpoint (-2), status interrupt
will not be supported.
uvcvideo: UVC device initialized.
uvcvideo 4-1:1.0: usb_probe_interface
uvcvideo 4-1:1.0: usb_probe_interface - got id
uvcvideo: Probing generic UVC device 1
uvcvideo: Found format MJPEG.
uvcvideo: - 640x480 (30.0 fps)
uvcvideo: - 352x288 (30.0 fps)
uvcvideo: - 320x240 (30.0 fps)
uvcvideo: - 176x144 (30.0 fps)
uvcvideo: - 160x120 (30.0 fps)
uvcvideo: Found a Status endpoint (addr 81).
uvcvideo: Found UVC 1.00 device USB2.0 PC CAMERA (18ec:3288)
uvcvideo: Forcing device quirks 0x2 by module parameter for testing purpose.
uvcvideo: Please report required quirks to the linux-uvc-devel mailing list.
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/2 to device 1
entity 2
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/3 to device 1
entity 2
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/6 to device 1
entity 2
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/7 to device 1
entity 2
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/8 to device 1
entity 2
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/9 to device 1
entity 2
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/1 to device 1
entity 2
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/4 to device 1
entity 2
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/5 to device 1
entity 2
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/2 to device 1
entity 1
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/4 to device 1
entity 1
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/15 to device 1
entity 1
uvcvideo: Scanning UVC chain: OT 3 <- PU 2 <- IT 1
uvcvideo: Found a valid video chain (1 -> 3).
uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling
workaround.
input: USB2.0 PC CAMERA as /class/input/input14
uvcvideo: Unable to initialize the status endpoint (-2), status interrupt
will not be supported.
uvcvideo: UVC device initialized.
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)

Trying the cheap camera first...
# ./capture_example -d /dev/video1 -c1 -o
VIDIOC_STREAMON error 5, Input/output error
# dmesg
uvcvideo: uvc_v4l2_open
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYCAP)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_CROPCAP)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_S_CROP)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_G_FMT)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_REQBUFS)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 0.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 1.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 2.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 3.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_STREAMON)
uvcvideo: uvc_v4l2_release

Trying the Hercules webcam...
# ./capture_example -d /dev/video0 -c1 -o
select timeout
# dmesg
uvcvideo: uvc_v4l2_open
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYCAP)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_CROPCAP)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_S_CROP)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_G_FMT)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_REQBUFS)
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYBUF)
uvcvideo: uvc_v4l2_mmap
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 0.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 1.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 2.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
uvcvideo: Queuing buffer 3.
uvcvideo: uvc_v4l2_ioctl(VIDIOC_STREAMON)
uvcvideo: uvc_v4l2_poll
uvcvideo: uvc_v4l2_poll
uvcvideo: uvc_v4l2_release


# Attempt to use a newer version of the module, crash when modprobing with
snapshot 90c7dc24fb4d
uvcvideo: Adding mapping Brightness to control
00000000-0000-0000-0000-000000000101/2.
uvcvideo: Adding mapping Contrast to control
00000000-0000-0000-0000-000000000101/3.
uvcvideo: Adding mapping Hue to control
00000000-0000-0000-0000-000000000101/6.
uvcvideo: Adding mapping Saturation to control
00000000-0000-0000-0000-000000000101/7.
uvcvideo: Adding mapping Sharpness to control
00000000-0000-0000-0000-000000000101/8.
uvcvideo: Adding mapping Gamma to control
00000000-0000-0000-0000-000000000101/9.
uvcvideo: Adding mapping Backlight Compensation to control
00000000-0000-0000-0000-000000000101/1.
uvcvideo: Adding mapping Gain to control
00000000-0000-0000-0000-000000000101/4.
uvcvideo: Adding mapping Power Line Frequency to control
00000000-0000-0000-0000-000000000101/5.
uvcvideo: Adding mapping Hue, Auto to control
00000000-0000-0000-0000-000000000101/16.
uvcvideo: Adding mapping Exposure, Auto to control
00000000-0000-0000-0000-000000000001/2.
uvcvideo: Adding mapping Exposure, Auto Priority to control
00000000-0000-0000-0000-000000000001/3.
uvcvideo: Adding mapping Exposure (Absolute) to control
00000000-0000-0000-0000-000000000001/4.
uvcvideo: Adding mapping White Balance Temperature, Auto to control
00000000-0000-0000-0000-000000000101/11.
uvcvideo: Adding mapping White Balance Temperature to control
00000000-0000-0000-0000-000000000101/10.
uvcvideo: Adding mapping White Balance Component, Auto to control
00000000-0000-0000-0000-000000000101/13.
uvcvideo: Adding mapping White Balance Blue Component to control
00000000-0000-0000-0000-000000000101/12.
uvcvideo: Adding mapping White Balance Red Component to control
00000000-0000-0000-0000-000000000101/12.
uvcvideo: Adding mapping Focus (absolute) to control
00000000-0000-0000-0000-000000000001/6.
uvcvideo: Adding mapping Focus, Auto to control
00000000-0000-0000-0000-000000000001/8.
uvcvideo: Adding mapping Zoom, Absolute to control
00000000-0000-0000-0000-000000000001/11.
uvcvideo: Adding mapping Zoom, Continuous to control
00000000-0000-0000-0000-000000000001/12.
uvcvideo: Adding mapping Privacy to control
00000000-0000-0000-0000-000000000001/17.
uvcvideo 5-1:1.0: usb_probe_interface
uvcvideo 5-1:1.0: usb_probe_interface - got id
uvcvideo: Probing generic UVC device 1
uvcvideo: Found format YUV 4:2:2 (YUYV).
uvcvideo: - 640x480 (30.0 fps)
uvcvideo: - 352x288 (30.0 fps)
uvcvideo: - 320x240 (30.0 fps)
uvcvideo: - 176x144 (30.0 fps)
uvcvideo: - 160x120 (30.0 fps)
uvcvideo: Found format MJPEG.
uvcvideo: - 640x480 (30.0 fps)
uvcvideo: - 352x288 (30.0 fps)
uvcvideo: - 320x240 (30.0 fps)
uvcvideo: - 176x144 (30.0 fps)
uvcvideo: - 160x120 (30.0 fps)
uvcvideo: Found a Status endpoint (addr 83).
uvcvideo: Found UVC 1.00 device Hercules Dualpix Exchange (06f8:3005)
uvcvideo: Forcing device quirks 0x2 by module parameter for testing purpose.
uvcvideo: Please report required quirks to the linux-uvc-devel mailing list.
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/2 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/3 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/6 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/7 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/8 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/9 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/10 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/12 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/1 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/4 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/5 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/11 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000101/13 to device 1
entity 3
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/2 to device 1
entity 1
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/3 to device 1
entity 1
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/4 to device 1
entity 1
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/11 to device 1
entity 1
uvcvideo: Added control 00000000-0000-0000-0000-000000000001/13 to device 1
entity 1
uvcvideo: Scanning UVC chain: OT 2 <- XU 5 <- XU 4 <- PU 3 <- IT 1
uvcvideo: Found a valid video chain (1 -> 2).
------------[ cut here ]------------
kernel BUG at /home/kevin/uvcvideo-7ec490a64a56/v4l/v4l2-dev.c:261!
invalid opcode: 0000 [#1]
last sysfs file: /sys/devices/pci0000:00/0000:00:09.1/usb4/idVendor
Modules linked in: uvcvideo(+) v4l2_compat_ioctl32 videodev v4l1_compat
8139cp 8139too ehci_hcd uhci_hcd [last unloaded: uvcvideo]

Pid: 21445, comm: modprobe Not tainted (2.6.282.6.28 #2) System Name
EIP: 0060:[<f0969075>] EFLAGS: 00010246 CPU: 0
EIP is at video_register_device_index+0x20/0x35f [videodev]
EAX: ecdf2054 EBX: ecce3800 ECX: ffffffff EDX: 00000000
ESI: 00000000 EDI: ffffffff EBP: ecdf2054 ESP: ecec5d28
 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
Process modprobe (pid: 21445, ti=ecec4000 task=ef927210 task.ti=ecec4000)
Stack:
 ecdf2054 00000001 ecdf2054 00000001 ecdf2000 ecce3800 00000001 ecdf2054
 f09693bb ffffffff f0951199 ef999200 ecdf2038 ef1d6800 ecdf2000 ecdf2eb4
 ef0ea481 ef1066a8 ecdf204c ef999200 ef99921c ef1d6800 f0959b20 c0116502
Call Trace:
 [<f09693bb>] video_register_device+0x7/0x9 [videodev]
 [<f0951199>] uvc_probe+0x9cd/0xa8c [uvcvideo]
 [<c0116502>] printk+0x14/0x18
 [<c026485a>] usb_probe_interface+0x100/0x126
 [<c023832d>] driver_probe_device+0xb5/0x131
 [<c02383a9>] __driver_attach+0x0/0x67
 [<c02383f2>] __driver_attach+0x49/0x67
 [<c0237b69>] bus_for_each_dev+0x37/0x58
 [<c02381c8>] driver_attach+0x11/0x13
 [<c02383a9>] __driver_attach+0x0/0x67
 [<c0237eb7>] bus_add_driver+0x8a/0x1a5
 [<c01c2a8c>] kset_find_obj+0x18/0x40
 [<c0238549>] driver_register+0x6d/0xc1
 [<c0263f10>] usb_register_driver+0x56/0xad
 [<f080e000>] uvc_init+0x0/0x7f [uvcvideo]
 [<f080e06a>] uvc_init+0x6a/0x7f [uvcvideo]
 [<c0101134>] do_one_initcall+0x4c/0x13c
 [<c0176c12>] sysfs_add_file_mode+0x4c/0x6a
 [<c012cf92>] load_module+0x10e2/0x124d
 [<c01c32a5>] prio_tree_insert+0x1b/0x1e9
 [<c013e5b7>] vma_link+0x32/0x3a
 [<c012d184>] sys_init_module+0x87/0x176
 [<c0102aa1>] sysenter_do_call+0x12/0x25
Code: 2f 7e cf 83 c0 04 e9 e0 d7 8c cf 55 57 89 cf 56 89 d6 53 89 c3 83 ec
10 83 bb bc 01 00 00 00 8b 80 c4 00 00 00 89 44 24 08 75 04 <0f> 0b eb fe 83
fa 01 74 24 7f 0e 85 d2 c7 44 24 04 86 db 96 f0
EIP: [<f0969075>] video_register_device_index+0x20/0x35f [videodev] SS:ESP
0068:ecec5d28
---[ end trace f3fa78d13223e95d ]---
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to