ov519 fails to handle Hercules Deluxe webcam
A message that is not in the archive (sent off-list or not yet received): 20120304223239.22117.54556.reportbug@deepthought
Hi,
Skippy le Grand Gourou wrote[1]:
Quoted 2 lines
Hercules Deluxe USB webcam won't work, see the end of the kernel log.
[...]
Quoted 13 lines
[521041.808976] gspca: probing 05a9:4519 [521042.469094] ov519: I2C synced in 3 attempt(s) [521042.469097] ov519: starting OV7xx0 configuration [521042.469793] ov519: Unknown image sensor version: 2 [521042.469795] ov519: Failed to configure OV7xx0 [521042.469797] ov519: OV519 Config failed [521042.469807] ov519: probe of 3-1.4:1.0 failed with error -16 [521042.469884] gspca: probing 05a9:4519 [521467.885255] usbcore: deregistering interface driver ov519 [521467.885278] ov519: deregistered [521467.900288] gspca: main deregistered [521809.376462] dialog[12612]: segfault at 0 ip b77c6125 sp bf8861b0 error 4 in libncursesw.so.5.7[b77b5000+43000] [524303.418813] usb 3-1.3: USB disconnect, address 9
[...]
Quoted 16 lines
[528511.174900] usb 3-1.4: USB disconnect, address 10 [528513.420812] usb 3-1.4: new full speed USB device using ehci_hcd and address 13 [528513.515013] usb 3-1.4: New USB device found, idVendor=05a9, idProduct=4519 [528513.515018] usb 3-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [528513.515021] usb 3-1.4: Product: USB Camera [528513.515023] usb 3-1.4: Manufacturer: OmniVision Technologies, Inc. [528513.515116] usb 3-1.4: configuration #1 chosen from 1 choice [528513.524620] Linux video capture interface: v2.00 [528513.526783] gspca: main v2.7.0 registered [528513.527299] gspca: probing 05a9:4519 [528514.190995] ov519: I2C synced in 3 attempt(s) [528514.190998] ov519: starting OV7xx0 configuration [528514.192570] ov519: Sensor is an OV7610 [528514.417110] ov519: probe of 3-1.4:1.0 failed with error -5 [528514.417139] usbcore: registered new interface driver ov519 [528514.417143] ov519: registered
[...]
Quoted 2 lines
00:1a.0 USB Controller [0c03]: Intel Corporation Cougar Point USB Enhanced Host Controller #2 [8086:1c2d] (rev 05) (prog-if 20 [EHCI])
Subsystem: ASUSTeK Computer Inc. Device [1043:844d]
[...]
Quoted 9 lines
Bus 001 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 012: ID 9e88:9e8f
Bus 003 Device 013: ID 05a9:4519 OmniVision Technologies, Inc. Webcam Classic Bus 003 Device 005: ID 04a9:221c Canon, Inc. CanoScan LiDE 60
Bus 003 Device 006: ID 046d:c50e Logitech, Inc. Cordless Mouse Receiver
[...]
Kernel is Debian 2.6.32-41, which is closely based on stable 2.6.32.54. I don't see any obvious potential fixes in the diff relative to linux-next.
Known problem? Any hints for tracking this down?
Thanks,
Jonathan
Quoted 56 lines · On Sun, 4 Mar 2012 18:38:01 -0600 Jonathan Nieder <[email protected]> wrote:
Hi,
Skippy le Grand Gourou wrote[1]:
Quoted 2 lines
Hercules Deluxe USB webcam won't work, see the end of the kernel log.
[...]
Quoted 13 lines
[521041.808976] gspca: probing 05a9:4519 [521042.469094] ov519: I2C synced in 3 attempt(s) [521042.469097] ov519: starting OV7xx0 configuration [521042.469793] ov519: Unknown image sensor version: 2 [521042.469795] ov519: Failed to configure OV7xx0 [521042.469797] ov519: OV519 Config failed [521042.469807] ov519: probe of 3-1.4:1.0 failed with error -16 [521042.469884] gspca: probing 05a9:4519 [521467.885255] usbcore: deregistering interface driver ov519 [521467.885278] ov519: deregistered [521467.900288] gspca: main deregistered [521809.376462] dialog[12612]: segfault at 0 ip b77c6125 sp bf8861b0 error 4 in libncursesw.so.5.7[b77b5000+43000] [524303.418813] usb 3-1.3: USB disconnect, address 9[...]
Quoted 16 lines
[528511.174900] usb 3-1.4: USB disconnect, address 10 [528513.420812] usb 3-1.4: new full speed USB device using ehci_hcd and address 13 [528513.515013] usb 3-1.4: New USB device found, idVendor=05a9, idProduct=4519 [528513.515018] usb 3-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [528513.515021] usb 3-1.4: Product: USB Camera [528513.515023] usb 3-1.4: Manufacturer: OmniVision Technologies, Inc. [528513.515116] usb 3-1.4: configuration #1 chosen from 1 choice [528513.524620] Linux video capture interface: v2.00 [528513.526783] gspca: main v2.7.0 registered [528513.527299] gspca: probing 05a9:4519 [528514.190995] ov519: I2C synced in 3 attempt(s) [528514.190998] ov519: starting OV7xx0 configuration [528514.192570] ov519: Sensor is an OV7610 [528514.417110] ov519: probe of 3-1.4:1.0 failed with error -5 [528514.417139] usbcore: registered new interface driver ov519 [528514.417143] ov519: registered[...]
Quoted 2 lines
00:1a.0 USB Controller [0c03]: Intel Corporation Cougar Point USB Enhanced Host Controller #2 [8086:1c2d] (rev 05) (prog-if 20 [EHCI])
Subsystem: ASUSTeK Computer Inc. Device [1043:844d][...]
Quoted 9 lines
Bus 001 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 012: ID 9e88:9e8f
Bus 003 Device 013: ID 05a9:4519 OmniVision Technologies, Inc. Webcam Classic Bus 003 Device 005: ID 04a9:221c Canon, Inc. CanoScan LiDE 60
Bus 003 Device 006: ID 046d:c50e Logitech, Inc. Cordless Mouse Receiver[...]
Kernel is Debian 2.6.32-41, which is closely based on stable 2.6.32.54. I don't see any obvious potential fixes in the diff relative to linux-next.
Quoted 6 lines
Known problem? Any hints for tracking this down?
Thanks,
Jonathan
Hi Skippy and Jonathan,
The git commit b877a9a7fb0 (gspca - ov519: Fix sensor detection problems) may have fix this problem.
To be sure, try the gspca test version from my web site.
Signature · 2 lines
Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/
Quoted 10 lines · Jean-Francois Moine
Quoted 10 lines
Skippy le Grand Gourou wrote[1]:
Quoted 2 lines
Hercules Deluxe USB webcam won't work, see the end of the kernel log.
[...]
Quoted 5 lines
[521041.808976] gspca: probing 05a9:4519 [521042.469094] ov519: I2C synced in 3 attempt(s) [521042.469097] ov519: starting OV7xx0 configuration [521042.469793] ov519: Unknown image sensor version: 2 [521042.469795] ov519: Failed to configure OV7xx0
[...]
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
[528513.526783] gspca: main v2.7.0 registered [528513.527299] gspca: probing 05a9:4519 [528514.190995] ov519: I2C synced in 3 attempt(s) [528514.190998] ov519: starting OV7xx0 configuration [528514.192570] ov519: Sensor is an OV7610
[...]
Quoted 2 lines
The git commit
b877a9a7fb0(gspca - ov519: Fix sensor detection problems) may have fix this problem.
Oh! Yep, the symptoms match well --- sorry I missed it.
Quoted 1 line
To be sure, try the gspca test version from my web site.
Skippy, assuming that works (and I expect it would), could you try the attached patch against 2.6.32.y? It works like this:
0. Prerequisites:
apt-get install git build-essential
1. Get the kernel, if you don't already have it:
git clone \ git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
2. Fetch point releases:
cd linux git remote add -f stable \ git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
3. Try the 2.6.32.y branch:
git checkout stable/linux-2.6.32.y
cp /boot/config-$(uname -r) .config; # current configuration make localmodconfig; # optional: minimize configuration make; # optionally with -j<num> for parallel build fakeroot -u make deb-pkg
dpkg -i ../<name of package>
reboot
"make localmodconfig" works by leaving out drivers whose modules are not currently loaded, so take care to make sure the gspca and ov519 modules are built. ("make nconfig" customizes the configuration.)
Hopefully this kernel reproduces the bug.
4. See if the patch helps:
git am -3sc <path to patch>
make; # maybe with -j4
fakeroot -u make deb-pkg
dpkg -i ../<name of package>
reboot
Hopeful,
Jonathan
From: Jean-François Moine <[email protected]>
Date: Sun, 3 Jul 2011 05:17:27 -0300
Subject: [media] gspca - ov519: Fix sensor detection problems
commit b877a9a7fb00d96bae4ab49c69f1be65b3e87e61 upstream.
The sensor of some webcams could not be detected due to timing problems in sensor register reading. This patch adds bridge register readings before sensor register reading.
--- drivers/media/video/gspca/ov519.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/media/video/gspca/ov519.c +3 -0
@@ -1314,11 +1314,14 @@ static int ov518_i2c_r(struct sd *sd, __u8 reg) rc =reg_w (sd,R518_I2C_CTL ,0x03 );if (rc <0 )return rc; +reg_r8 (sd,R518_I2C_CTL );/* Initiate 2-byte read cycle */ rc =reg_w (sd,R518_I2C_CTL ,0x05 );if (rc <0 )return rc; +reg_r8 (sd,R518_I2C_CTL ); + value =reg_r (sd, R51x_I2C_DATA);PDEBUG (D_USBI ,"i2c [0x%02X] -> 0x%02X" , reg, value);return value;
Signature · 1 line
1.7.9.2
Quoted 11 lines · On Mon, 5 Mar 2012 03:34:30 -0600 Jonathan Nieder <[email protected]> wrote:
Quoted 1 line
To be sure, try the gspca test version from my web site.
Skippy, assuming that works (and I expect it would), could you try the attached patch against 2.6.32.y? It works like this:
0. Prerequisites:
apt-get install git build-essential1. Get the kernel, if you don't already have it:
git clone \ git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[snip]
This asks for a lot of job. With the gspca tarball (423Kb), you just need the linux-headers. And it permits further debugging...
Signature · 2 lines
Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/
Quoted 6 lines · Jean-Francois Moine
Quoted 4 lines · Jonathan Nieder
Quoted 1 line
To be sure, try the gspca test version from my web site.
Skippy, assuming that works (and I expect it would), could you try the attached patch against 2.6.32.y? It works like this:
[...]
Quoted 6 lines
Quoted 3 lines
1. Get the kernel, if you don't already have it:
git clone \ git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git[snip]This asks for a lot of job.
Do you mean bandwidth?
Quoted 2 lines
With the gspca tarball (423Kb), you just
need the linux-headers. And it permits further debugging...
I expect that this is fixed in 3.x.y already, so I wanted to confirm that that is the only fix needed to get it fixed in 2.6.32.y-longterm as well.
Kind regards,
Jonathan
Quoted 2 lines · Jonathan Nieder
make localmodconfig; # optional: minimize configuration make; # optionally with -j<num> for parallel build
The compilation failed (see at the end of this email) and I didn't feel like trying to debug it so I went for Jean-François' build, and it seems to work fine (thanks !).
<HS>Jean-François, please have a look at http://fr.wikipedia.org/wiki/Casse_%28typographie%29 or http://www.cnrtl.fr/definition/casse (CASSE³) and you may switch back to French… ;-)</HS>
-----------------------------------------------------------------------
# LANG=en_US.utf8 make localmodconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:40,
from /usr/include/netinet/in.h:25,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:116:/usr/include/bits/socket.h:370:24: error: asm/socket.h: No such file or directory make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
# LANG=en_US.utf8 make
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:40,
from /usr/include/netinet/in.h:25,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:116:/usr/include/bits/socket.h:370:24: error: asm/socket.h: No such file or directory
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target include/config/auto.conf', needed by include/config/kernel.release'. Stop.
-----------------------------------------------------------------------