Ov51xJpegHackedInstall
From Ov51x JPEG hacked Wiki
Contents |
Warning: These are installation instructions for 1.0.0 release. See FAQ for differences with 0.5.x releases
Preliminaries
The module ov511 shipped with default kernel for ov511/ov518 webcams is broken. When you plug your camera, the kernel may load it in first place so the ov51x-jpeg cannot be used later on.
You may unload the module:
rmmod ov511
and then remove the module from /lib/modules/`uname -r`
Compilation and installation
First, you must have a working kernel module build and the videodev module compiled. In most distributions, this you may need some kernel headers corresponding to your kernel. See the command uname -r to get your kernel version.
Basically, you need a kernel with its headers, and the videodev module built with video4linux option (try modprobe videodev as root).
Then, as normal user, type in the ov51x-jpeg-x.x.x directory:
% make
and, as root:
# make install # modprobe ov51x-jpeg
or if this fails for any reason:
# modprobe videodev # insmod ./ov51x-jpeg.ko
from the source directory. the 'videodev module may already be loaded.
That's it, you got your camera ready to work with your favorite v4l application!
Force a parameter at load
It can be usefull to force the use of a parameter when the module is loaded, as with the kopete issue.
A clean way to do so is to add this as an option in the file /etc/modprobe.d/options. Simply apend a line of that form to this file:
options ov51x-jpeg force_palette=13
For Skype users who face a problem with a black screen add the following line to the above file as well:
options ov51x-jpeg forceblock=1
Install debian module package
First, see Ov51xJpegHackedSource for how to add the correct sources to your sources.list
A quick way to build the module is to issue those commands, prefixed by sudo if you are in Ubuntu:
apt-get update apt-get install ov51x-jpeg-source module-assistant module-assistant a-i ov51x-jpeg
If this fails first try the same with -t to look at log:
module-assistant -t a-i ov51x-jpeg
And then read more documentation on module-assistant.
If then you still think it comes from the package, please mail the issue to ov51x-jpeg@rastageeks.org
If everything worked so far, then you have a working module installed... You may simply unplug/plug the webcam, or modprobe ov51x-jpeg to see it working !
Installation on OpenSuse 10.x
Install package "kernel-source", "linux-kernel-headers" and "usbvision-kmp-bigsmp" and "usbvision-kmp-default". usbvision is a Linux device driver for video grabbing with USB-onöly connected "webcam" devices.
Then proceed with section "compilation and installation", i.e. uncompress as normal user files in the ov51x-jpeg-x.x.x directory and change directory and replace x.x.x by version number:
% cd /.../path2mydir/ov51x-jpeg-x.x.x % make
and, as root:
# make install # modprobe ov51x-jpeg
Finished.
Installation on Ubuntu 8.10 Intrepid Ibex
This tutorial is mainained in catalan at this site. If you have any questions or comments either report it in the mailing list or in the original website. English is understood.
0) Firs of all, take a look if the chipset of your webcam is supported for this module. Plugging your camera, the following command should give you an output that is contained in this list. If this is your case, keep following this tutorial
% lsusb
1) Whenever you plug your webcam, new Ubuntu loads the new webcam modul gspca_ov519, wich does not work with the cameras that need the ov51x-jpeg module to work. You can verify this with this command:
% lsmod | grep ov
This should give an output like
gspca_ov519 23812 0 gspca_main 29312 1 gspca_ov519 usbcore 148848 8 snd_usb_audio,snd_usb_lib,gspca_ov519,gspca_main,usbhid,ehci_hcd,uhci_hcd
2) So the first think to do is to blacklist this module. We will do this with the following command
% echo -e "# replaced by ov51x_jpeg\nblacklist gspca_ov519" | sudo tee -a /etc/modprobe.d/blacklist
Now we should unplug/plug our webcam in order to see if the gspca_ov519 has been correctly blacklisted. The follwing command should be run, and no output should be obrtained. If the same output than before is obtained, a good possiblity could be removing the gspca_ov519. In this case, we would follow the 2.2 section. If success has been achieved, go to section 3.
% lsmod | grep ov
2.2) This section has to be done only if no succes has been achived blacklisting the module, as explained on section 2. To unload the gspca_ov519:
% rmmod gspca_ov519
And we delete it finding where it is installed We find where it is installed
% find /lib/modules/`uname -r` -name '*ov5*'
This should give us the following information:
./kernel/ubuntu/misc/media/ov511 ./kernel/ubuntu/misc/media/ov511/ov511.ko ./kernel/ubuntu/misc/media/ov511/ov518_decomp.ko ./kernel/ubuntu/misc/media/ov511/ov511_decomp.ko ./kernel/drivers/media/video/gspca/gspca_ov519.ko
Now we delete this modules so that they don't get loaded each time you plug your webcam. For security we create a directory out of the system path so the modules can be stored in case its needed (if this is not desired, just delete this modules)
% mkdir ~/backup.modules.webcams
And we remove this modules by moving them to the new created directory:
% sudo mv /lib/modules/`uname -r`/kernel/ubuntu/misc/media/ov511 ~/backup.modules.webcams % sudo mv /lib/modules/`uname -r`/kernel/drivers/media/video/gspca/ ~/backup.modules.webcams
3) Now we can do the compilation of our v51x-jpeg module.
We create a directory to complie it:
% mkdir ~/webcam % cd ~/webcam
We download the latest sourececode and we extract here.
% wget http://www.rastageeks.org/downloads/ov51x-jpeg/ov51x-jpeg-1.5.9.tar.gz % tar -xvf ov51x-jpeg-1.5.9.tar.gz % cd ov51x-jpeg-1.5.9
We complie the module
% make % sudo make install
We install the module
% sudo depmod -A % sudo modprobe ov51x-jpeg
We clean
% rm -r ~/webcam
4) If we want the webcam working with skype we have to run the following command:
% echo "options ov51x-jpeg forceblock=1" | sudo tee -a /etc/modprobe.d/options
5) To test if the webcam is working correctly we can use the program wxcam. Deb packages can be obtained here.
6) Notes
- Sometimes, when the webcam is plugged in, you see a green image. This happens sometimes and the best solution is to unplug it and replug it again until it works. If skype is beeing used, it has to be restarted.
- After kernel upgrades, the ov51x-jpeg module is sometimes deleted, so the whole process has to be done again.
Upgrading from oldest releases
If you are updating from 0.5.x releases, you have to remove first the remaining modules. A quick and dirty command would be:
# find /lib/modules/`uname -r` -name "ov51x.ko" -exec rm -f {} \;
You may also remove loaded module using lsmod and rmmod

