Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 29 Nov 2014, 01:23
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Video
OmniVision 518+ (ex Dick Smith Electronics webcam)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Fri 10 Jul 2009, 06:12    Post subject:  OmniVision 518+ (ex Dick Smith Electronics webcam)  

I am having trouble with a web-cam... output from dmesg

Quote:

Linux video capture interface: v2.00
ACPI: PCI Interrupt Link [APC4] enabled at IRQ 19
ACPI: PCI Interrupt 0000:01:03.0[A] -> Link [APC4] -> GSI 19 (level, low) -> IRQ 19
ivtv: Start initialization, version 1.2.0
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[19] MMIO=[fdeff000-fdeff7ff] Max Packet=[2048] IR/IT contexts=[4/8]
ivtv0: Initializing card #0
ivtv0: Autodetected Hauppauge card (cx23416 based)
ACPI: PCI Interrupt Link [APC1] enabled at IRQ 16
ACPI: PCI Interrupt 0000:01:09.0[A] -> Link [APC1] -> GSI 16 (level, low) -> IRQ 16
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
tveeprom 2-0050: Hauppauge model 26559, rev G189, serial# 9518057
tveeprom 2-0050: tuner model is TCL MFPE05 2 (idx 89, type 3Cool
tveeprom 2-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) (eeprom 0x74)
tveeprom 2-0050: audio processor is CX25843 (idx 37)
tveeprom 2-0050: decoder processor is CX25843 (idx 30)
tveeprom 2-0050: has radio, has no IR receiver, has no IR transmitter
ivtv0: Autodetected Hauppauge WinTV PVR-150
Adding 489972k swap on /dev/sda2. Priority:-1 extents:1 across:489972k
drivers/media/video/ov511.c: USB OV518+ video device found
drivers/media/video/ov511.c: Device revision 2
drivers/media/video/ov511.c: Compression required with OV518...enabling
cx25840 2-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
tuner 2-0043: chip found @ 0x86 (ivtv i2c driver #0)
tda9887 2-0043: tda988[5/6/7] found
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #0)
tuner-simple 2-0061: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
drivers/media/video/ov511.c: Sensor is an OV7620AE
ieee1394: Host added: ID:BUS[0-00:1023] GUID[0011d800015f7eb1]
ndiswrapper version 1.53 loaded (smp=no, preempt=no)
drivers/media/video/ov511.c: Device at usb-0000:00:0b.0-4 registered to minor 0
usbcore: registered new interface driver ov511
drivers/media/video/ov511.c: v1.64 for Linux 2.5 : ov511 USB Camera Driver
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
cx25840 2-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
ip_tables: (C) 2000-2006 Netfilter Core Team
ivtv0: Registered device video1 for encoder MPG (4096 kB)
ivtv0: Registered device video32 for encoder YUV (2048 kB)
ivtv0: Registered device vbi0 for encoder VBI (1024 kB)
ivtv0: Registered device video24 for encoder PCM (320 kB)
ivtv0: Registered device radio0 for encoder radio
ivtv0: Initialized card #0: Hauppauge WinTV PVR-150
nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
ivtv0: Registered device radio0 for encoder radio
ivtv0: Initialized card #0: Hauppauge WinTV PVR-150
nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
ivtv: End initialization
ndiswrapper: driver mrv8335 (Marvell,02/22/2005,3.1.1.7) loaded
ACPI: PCI Interrupt Link [APC2] enabled at IRQ 17
ACPI: PCI Interrupt 0000:01:0e.0[A] -> Link [APC2] -> GSI 17 (level, low) -> IRQ 17
ndiswrapper: using IRQ 17
wlan0: ethernet device 00:18:e7:27:bd:ea using NDIS driver: mrv8335, version: 0x3000036, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 11AB:1FAA.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
usbcore: registered new interface driver ndiswrapper
ndiswrapper (iw_set_wep:959): key 1 is not set


I also have a Haupauge WinTV PVR-150 TV tuner PCI card

The light is on the web-cam and it appears to be recognised ok /dev/video0 exists

When I run
Code:

# xawtv -c /dev/video0
This is xawtv 4.0-pre, running on Linux/i686 (2.6.25.16)


I get stderr messages from xawtv :

Quote:

Xlib: extension "GLX" missing on display ":0.0" station "0" not found

mpeg ts: no pids given and no PAT found can't open: /dev/video1


and in /var/log/messages I get:

Quote:

Jul 10 21:57:16 (none) user.err kernel: drivers/media/video/ov511.c: No decompre
ssor available
Jul 10 21:57:16 (none) user.info kernel: ivtv0: Loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
Jul 10 21:57:17 (none) user.info kernel: ivtv0: Encoder revision: 0x02060039
Jul 10 21:57:17 (none) user.err kernel: drivers/media/video/ov511.c: No decompressor available


In xawtv I only have the Haupauge WinTV PVR-150 device showing.

I have been googling for some time and come accross the following links and tried the solutions


The USB hardware ID reported from hard info as 05a9:0518

https://wiki.kubuntu.org/HardwareSupportComponentsMultimediaWebCamerasLogitech

shows that it does not work out of the box, but reports that it can be made to work ...
Quote:

The ov511 driver included with the kernel loads, but neglects to load the image decompressor kernel module.
This is evidenced in dmesg by the line "No decompressor available."

To get things running, load the kernel module "ovcamchip" at startup.
Driver home page is http://alpha.dyndns.org/ov511/,

and problem solution is from https://www.redhat.com/archives/fedora-list/2004-July/msg03162.html


This didn't work for me I then found

http://alpha.dyndns.org/ov511/install.html

And modified /etc/modules.conf appending the line

above ov511 ov511_decomp

to load the ov511_decomp module above ov511

However, inspection of /lib/modules/2.6.25.16/kernel/drivers/media/video/ does not reveal any ov511_decomp module?

I downloaded the kernel source and it is not in there either. The source from the http://alpha.dyndns.org/ov511 - the site of Mark McLelland who wrote the driver originally - is quite different from BK's patched source for the 2.6.25.16 kernel...

I should add that I tried blacklisting the ov511 module and adding the gspca module to see if that did the trick but sadly no.

Would appreciate any thoughts on how to proceed? Or anyone who has made such a beast behave!!
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5285
Location: Australia

PostPosted: Fri 10 Jul 2009, 09:24    Post subject:  

growler wrote:
inspection of /lib/modules/2.6.25.16/kernel/drivers/media/video/ does not reveal any ov511_decomp module?

I think that's only relevant to older versions of the ov511 driver.
With recent versions of the ov511 driver, compression support is built into the driver ...
... but you may need to force it ON. So open /etc/modprobe.conf in Geany, and add this line -
Code:
options ov511 compress=1

Reboot.
Check your diagnostic messages, and if still no success, it might be worth loading the ovcamchip module as suggested in the kubuntu link you found. Open /etc/modprobe.conf again. Leave the last line we added (it won't hurt) and add another line -
Code:
install ov511 modprobe ovcamchip; modprobe --ignore-install ov511

Reboot.

And when you try XawTV, be aware that your WinTV PVR-150 is /dev/video0, so you will probably need to specify /dev/video1, like this -
Code:
xawtv -c /dev/video1
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Sun 12 Jul 2009, 03:55    Post subject:  

Thanks for helping me yet again Tempestuous...

I have another puppy box (4.2.1) without the Haupauge WinTV card (to rule out any conflicts) this machine is old AMD Duron that would have been dumped but for puppy - the USB webcam is detected as before as an OmniVision -vendor 0x5a9 - productID 0xa518 - the ov511 module is loaded.

I tried editing /etc/modprobe.conf appending the line

Code:

options ov511 compress=1

rebooted - and ran :
Code:

xawtv -c /dev/video0

and ran into the same error in the first post - selecting a device in xawtv is not possible there are no video devices available to select.
So I edited /etc/modprobe.conf again and added
Code:

install ov511 modprobe ovcamchip; modprobe --ignore-install ov511

rebooted and the result is the same Sad

I notice a few lines from the end of /etc/modprobe.conf

Code:

install ov518_decomp { /sbin/modprobe ov511; } ; /sbin/modprobe --first-time --ignore-install ov518_decomp
install scsi_hostadapter /bin/true
install wacom /sbin/modprobe --first-time --ignore-install wacom && { /sbin/modprobe evdev; /bin/true; }
remove ov518_decomp /sbin/modprobe -r --first-time --ignore-remove ov518_decomp && { /sbin/modprobe -r ov511; /bin/true; }


I don't know if these are relevant and in any event I cannot see ov518_decomp as a module anywhere and a pfind reveals "no files found"

to clarify the modules loaded I ran:
Code:

# lsmod|grep ov
ov511                  76304  0
ovcamchip              20104  0
i2c_core               24592  1 ovcamchip
compat_ioctl32          1408  1 ov511
videodev               33664  1 ov511
usbcore               136560  6 usblp,ov511,usbhid,usb_storage,uhci_hcd


Any other ideas?
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Sat 18 Jul 2009, 19:54    Post subject:  

I bought a new web-cam another Dick Smith 2 Meg Pixel auto-focus model XH5233 - all works perfectly. Irritating when you can't get hardware working but hey it was a piece of junk anyway!

The new one uses the uvcvideo module - works with skype including the mic but xawtv is a no go maybe conflict of devices with the Haupauge WinTV-150 - who knows!
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Sat 25 Jul 2009, 02:07    Post subject: Epilogue - Ominvision ov518 driver  

It seems the ov511 driver has been superseeded by ov51x-jpeg which has compression built in - for whatever reason that code was not in the kernel source in Barry's 2.6.25.16 patched.

I found this link
http://www.rastageeks.org/ov51x-jpeg/index.php/Ov51xJpegHackedInstall

Which explains the problem I was having. If I get it going I'll post a .pet to this thread
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Sat 25 Jul 2009, 03:33    Post subject: Well nearly ...  

Yes I know its a piece of junk - but I just can't let it go.... arrrrgggh!!

So close and yet ...

I compiled the code from ov51x-jpeg and ran make install (under new2dir to make the pet - attached)
I ran:

Code:

#rmmod ov511
#depmod -a


I then went into menu->bootmanager and gave priority to ov51x-jpeg over ov511 by entering the line
Code:

ov511:ov51x-jpeg


I rebooted and voila the beast is recognised Smile But wouldn't work Sad

with xawtv -c /dev/video0 I get the following:
Code:

Xlib: extension "GLX" missing on display ":0.0".
station "0" not found
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=5): Invalid argument
can't grab display


OK - so I looked at modprobe.conf and saw the line I entered previously:
Code:

install ov511 modprobe ovcamchip; modprobe --ignore-install ov511

and I changed it to
Code:

install ov51x-jpeg modprobe ovcamchip; modprobe --ignore-install ov51x-jpeg


could be way off base - there is some trial and error going on here and hoping someone can put me right... please. It still won't work with the same message from xawtv. xawtv and Skype shows the device - OV518+ USB Camera - all looks to be well it just doesn't work. Hey maybe the camera is buggered? The light is on, on the camera as though someone is home...

The output of dmesg now is:

Code:

Linux video capture interface: v2.00
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
/root/my-applications/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: USB OV518+ video device found
/root/my-applications/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: Device revision 2
/root/my-applications/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: Compression required with OV518...enabling
/root/my-applications/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: Sensor is an OV7620AE
/root/my-applications/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: Device at usb-0000:00:07.2-1 registered to minor 0
usbcore: registered new interface driver ov51x
/root/my-applications/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: 1.5.9 : ov51x USB Camera Driver


I compiled the driver on my MSI Wind running 4.2.1 and am testing this on another old piece of junk (an AMD Duron 256Meg - 6 Gig HD running puppy 4.2.1)
ov51x-jpeg-1.5.9-i486.pet
Description  ov51x-jpeg Omnivision web-cam driver with inbuild jpeg decompression
pet

 Download 
Filename  ov51x-jpeg-1.5.9-i486.pet 
Filesize  71.15 KB 
Downloaded  513 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Video
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0916s ][ Queries: 12 (0.0035s) ][ GZIP on ]