⇤ ← Revision 1 as of 2007-02-19 12:42:39
Size: 2690
Comment:
|
Size: 4775
Comment: Part II
|
Deletions are marked like this. | Additions are marked like this. |
Line 22: | Line 22: |
{{{sudo apt-get install build-essential linux-headers-`uname -r`}}} | {{{ sudo apt-get install build-essential linux-headers-`uname -r` }}} |
Line 26: | Line 28: |
{{{wget http://www.rastageeks.org/downloads/...g-0.5.4.tar.gz}}} | {{{ wget http://www.rastageeks.org/downloads/...g-0.5.4.tar.gz }}} |
Line 33: | Line 37: |
{{{tar -xvf ov51x-jpeg-0.5.4.tar.gz}}} | {{{ tar -xvf ov51x-jpeg-0.5.4.tar.gz }}} |
Line 37: | Line 43: |
{{{cd ov51x-jpeg-0.5.4}}} | {{{ cd ov51x-jpeg-0.5.4 }}} |
Line 42: | Line 50: |
{{{sudo make install}}} | {{{ sudo make install }}} |
Line 44: | Line 54: |
*Note*: if you are using Feisty, remove the lines referring to "linux/config.h" from all .c-files. {{{#include <linux/config.h>}}} first! (else you will get an error witch prohibits you from continuing this instruction. | *Note*: if you are using Feisty, remove the lines referring to "linux/config.h" ({{{#include <linux/config.h>}}}) from all .c-files first! (else you will get an error witch prohibits you from continuing these instructions successfully. |
Line 58: | Line 68: |
== Making modules permanent == Also this part is based on the [http://ubuntuforums.org/showpost.php?p=2049256&postcount=14 forum post] by gentle_turtle. He based this posting on information earlier in the thread his post is part of and on [:this Ov51x-guide:http://blog.thedarkmere.net/index.ph...peg-guide.html]. If you reboot after installing the drivers in the first part, you'll notice the webcam is not detected anymore. Therefore we need to make these modules permanent, so that your machine recognizes the webcam both at bootup as well when you plug it in. The problem here with respect to other module installations is that for some obscure reason, the ov519_decomp module insists in loading the ov511 module when loading through modprobe, and ov511 knows nothing of some of the functions in ov519_decomp and therefore complains. We will thus load ov51x normally through modprobe, but we will load ov519_decomp through insmod. Let us look at the steps to do this. === Load modules at start up === Make sure you load the vidoedev and i2c_core modules at bootup: to do this, in the terminal type: {{{ sudo vi /etc/modules }}} or {{{ sudo gedit /etc/modules }}} At the end of the files, add the following two lines: {{ videodev i2c_core }} Now save the file and quit the editor. This will guarantee that from now on at bootup the videodev and the i2c_core modules are loaded. === Autodetection === Of course we want to tell Ubuntu what to do whenever it notices the camera is plugged in: {{ sudo touch /etc/modprobe.d/ov51x sudo vi /etc/modprobe.d/ov51x }} (instead of vi you may also type gedit, or any other editor...) And finally open up add the following lines file the following line: {{ install ov51x /sbin/modprobe --ignore-install ov51x; insmod /lib/modules/`uname -r`/extra/ov519_decomp.ko }} *Note*: This has to be ONLY on one line. Save the file and quit the editor. And voila, at next reboot your Hercules Classic webcam is there, ready to use.... Have fun! |
Content: TableOfContents()
There are quite a lot of webcameras that can be made to work using the Ov51x-driver. Note that manual installation may not be needed for you, so please read [:Webcam:the general webcam page] and maybe try whether EasyCam works for you.
Credits
This guide is based on the [http://ubuntuforums.org/showpost.php?p=2049256&postcount=14 forum post] by gentle_turtle. He based this posting on information earlier in the thread his post is part of and on [:this Ov51x-guide:http://blog.thedarkmere.net/index.ph...peg-guide.html].
Preliminaries
This guide has been reported to work with a Hercules Classic Webcam is an el-chepo webcam incorporating 4LEDs for low lighting usage. "lsusb" sees the camera as "Omnivision Technologies, Inc". The drivers needed to make it work are the ov51x and ov519_decomp modules.
Assumed in this description is that your camera is seen on the USB bus, otherwise you have to activate and make sure that USB works properly by activating the bus.
Once the cam is seen on the USB bus, the following procedure gives you a fully functional cam on your machine.
Installation
1. Get linux headers
Get the linux headers for your system, so that you can compile the drivers once you downloaded them. To do this, open a terminal window (Applications -> Terminal on XUbuntu) and type
sudo apt-get install build-essential linux-headers-`uname -r`
2. Get the modules
Get the modules for your webcam:
wget http://www.rastageeks.org/downloads/...g-0.5.4.tar.gz
Ensure the drivers landed into a directory you know...
3. Extract the drivers
Move to the directory where your downloaded drivers are, and extract the source files from the tar files.
tar -xvf ov51x-jpeg-0.5.4.tar.gz
and Change directory to where your sources are:
cd ov51x-jpeg-0.5.4
4. Compile
Compile and install the modules:
sudo make install
*Note*: if you are using Feisty, remove the lines referring to "linux/config.h" (#include <linux/config.h>) from all .c-files first! (else you will get an error witch prohibits you from continuing these instructions successfully.
If everything went succesful, this will compile the drivers and install them into the subdirectory of /lib/modules/your-linux-version called extra
5. Install
If all went well, we can install the modules by hand now:
{{{sudo modprobe videodev sudo modprobe i2c_core sudo insmod /lib/modules/uname -r/extra/ov51x.ko sudo insmod /lib/modules/uname -r/extra/ov519_decomp.ko}}}
To test your installation you can use any camera viewing application, such as xawtv.
Making modules permanent
Also this part is based on the [http://ubuntuforums.org/showpost.php?p=2049256&postcount=14 forum post] by gentle_turtle. He based this posting on information earlier in the thread his post is part of and on [:this Ov51x-guide:http://blog.thedarkmere.net/index.ph...peg-guide.html].
If you reboot after installing the drivers in the first part, you'll notice the webcam is not detected anymore. Therefore we need to make these modules permanent, so that your machine recognizes the webcam both at bootup as well when you plug it in. The problem here with respect to other module installations is that for some obscure reason, the ov519_decomp module insists in loading the ov511 module when loading through modprobe, and ov511 knows nothing of some of the functions in ov519_decomp and therefore complains.
We will thus load ov51x normally through modprobe, but we will load ov519_decomp through insmod. Let us look at the steps to do this.
1. Load modules at start up
Make sure you load the vidoedev and i2c_core modules at bootup: to do this, in the terminal type:
sudo vi /etc/modules
or
sudo gedit /etc/modules
At the end of the files, add the following two lines:
{{ videodev i2c_core }}
Now save the file and quit the editor. This will guarantee that from now on at bootup the videodev and the i2c_core modules are loaded.
2. Autodetection
Of course we want to tell Ubuntu what to do whenever it notices the camera is plugged in:
{{ sudo touch /etc/modprobe.d/ov51x sudo vi /etc/modprobe.d/ov51x }}
(instead of vi you may also type gedit, or any other editor...)
And finally open up add the following lines file the following line:
{{ install ov51x /sbin/modprobe --ignore-install ov51x; insmod /lib/modules/uname -r/extra/ov519_decomp.ko }}
*Note*: This has to be ONLY on one line. Save the file and quit the editor.
And voila, at next reboot your Hercules Classic webcam is there, ready to use.... Have fun!