Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256219 - OmniVision Camera OV519 (from HP) (USB ID 05A9:9519) fails under Linux 2.6.28-gentoo
Summary: OmniVision Camera OV519 (from HP) (USB ID 05A9:9519) fails under Linux 2.6.28...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-24 17:26 UTC by Robert Bradbury
Modified: 2009-01-27 16:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Loaded modules when camera fails (modules,2.60 KB, text/plain)
2009-01-24 17:34 UTC, Robert Bradbury
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Bradbury 2009-01-24 17:26:27 UTC
This camera is 2-3 years old.  It was relatively inexpensive, sold in many retail stores (Computer city, etc.).  It was supposed to work with a non-standard driver if you could install it in 2.6.23-2.6.24, though I never tried it.  I think the driver wouldn't compile under 2.6.25 (kernel changes), and it was pushed off to 2.6.28 until the general gspca driver became available.

It looks like I've got the kernal configured properly because the proper drivers are loaded (gspca_ov519 & gspca_main) the kernel logs seem correct, and most importantly /dev/video1 is created.

Reproducible: Always

Steps to Reproduce:
1. Configure the kernel with the gspca driver and the OV519 driver.
2. Boot it.
3. Verify properly loaded drivers and one has new /dev/video#.
4. Attempt to use a program vidcat, mplayer, etc. to read from the device.
5. Device can be opened and and readable.

Actual Results:  
All programs tried to date yield only "snow" (various colored lines across the image).

vidcat seems to be able to capture a jpeg image.
mplayer seems to be able to capture frames (that seem to have some low frame rate per second).


Expected Results:  
One should be able to at least some program that can read the device and display reasonable images.

One of the problems is that it isn't clear to me precisely what programs should or should not work under Linux to read the camera.

Skype is installed on the machine but the net suggests that there are problems with the skype software and this camera so I have not tried to test it.

System logs reveal:
Configuring OmniVision OV519 (05A9:9519) (full speed) w/OV7648 sensor:

Jan 24 11:40:25 frodo kernel: usb 2-1.3: new full speed USB device using uhci_hcd and address 4
Jan 24 11:40:25 frodo kernel: usb 2-1.3: configuration #1 chosen from 1 choice
Jan 24 11:40:25 frodo kernel: gspca: probing 05a9:8519
Jan 24 11:40:26 frodo kernel: ov519: I2C synced in 1 attempt(s)
Jan 24 11:40:26 frodo kernel: ov519: starting OV7xx0 configuration
Jan 24 11:40:26 frodo kernel: ov519: Sensor is an OV7648
Jan 24 11:40:26 frodo kernel: gspca: probe ok
Jan 24 11:40:26 frodo kernel: usb 2-1.3: New USB device found, idVendor=05a9, idProduct=8519
Jan 24 11:40:26 frodo kernel: usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jan 24 11:40:26 frodo kernel: usb 2-1.3: Product: USB Camera
Jan 24 11:40:26 frodo kernel: usb 2-1.3: Manufacturer: OmniVision Technologies, Inc.

Creates /dev/video1 (/dev/video0 is Hauppauge PVR-150).

It is repeatable in that if one unplugs the camera and plugs it back in the messages are the same.
Comment 1 Robert Bradbury 2009-01-24 17:30:35 UTC
Portage 2.2_rc15 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoo i686)
=================================================================
System uname: Linux-2.6.28-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-glibc2.0
Timestamp of tree: Sat, 24 Jan 2009 10:30:16 +0000
distcc 3.0 i686-pc-linux-gnu [disabled]
ccache version 2.3 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r15, 2.5.4-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.3
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://adelie.polymtl.ca/ http://194.117.143.69 http://open-systems.ufl.edu/mirrors/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--contimeout=300 --timeout=300"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/root2/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa apache2 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java java6 jpeg ldap libnotify mad midi mikmod mono mp3 mpeg mudflap ncurses nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection ruby sdl session spell spl ssl startup-notification svg sysfs tcltk tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="devinput hauppauge" USERLAND="GNU" VIDEO_CARDS="fbdev i810 intel radeon v4l vesa vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY
Comment 2 Robert Bradbury 2009-01-24 17:34:04 UTC
Created attachment 179570 [details]
Loaded modules when camera fails

It would be really helpful if someone could tell me what specific programs "should" be able to work with this camera.
Comment 3 Serkan Kaba (RETIRED) gentoo-dev 2009-01-24 18:37:12 UTC
Please install media-libs/libv4l and follow its postinst messages.
Comment 4 Robert Bradbury 2009-01-24 21:43:35 UTC
Serkan, you are a prince!  I had already installed libv4l but have a layer of scripts on top of my emerges that keeps a record of what I installed, the log of the installation process and when it was installed and so I usually only look at the logs when they don't work properly.  Since the libv4l installation worked without trouble and so I had not bothered to read about the necessity of having to setup the library wrappers around the video programs.

The status now is that mplayer works quite well!  vidcat and getjpeg less so.  I get an image, but there are horizontal (interleaved) bars in the frame so one only sees effectively 1/2 of the frame (I'm wondering if the camera images are "interleaved" such that if one only captures a single image one only gets one frame?

I tried to setup ekiga but so far haven't managed to make it work (though I've only worked on it a short time thus far).  Skype will probably be my next attempt.  Can you suggest any other programs that might allow linux-to-linux and linux-to-windows video conversations (meetings)?

My deepest gratitude since trying to make the camera work on my machine has probably cost me days of googling, downloading and installing various software packages over the last several years.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-27 16:06:48 UTC
This isn't a support forum. There is no bug here.