PS3 Eye on Linux

From NUI Group Community Wiki

Jump to: navigation, search

Basic Information

This guide was developed using Ubuntu 8.10 AMD64, running a custom built kernel. It *should* work on almost any distribution, just modify the commands appropriately. Any recent 2.6 kernel should work fine, see the notes at the bottom if you experience problems during the compiling. The guide assumes that you have a fairly decent knowledge of Linux and are comfortable in the command line. You will need build tools such as make and GCC installed. This command will take care of it on Ubuntu:

sudo apt-get install build-essential

Note that the gspca_ov534 driver is included as an option in kernel 2.6.29. This kernel is still in release candidate 2 stage as of January 23, 2009, so it is not a standard package on most distributions at this time. The ov534 driver can also be added to the installed kernel. Once the driver is more used and supported, I don't think these instructions will apply, but for now..


Build Process

You now have two choices for the ov_534 driver. The latest can be obtained from linuxtv.org with these instructions, or you can use the Eye/Multitouch-specific driver recently made available here. I will start with the linuxtv instructions.

First, you will need "hg" for repository access. This is included in the "mercurial" package in Ubuntu.

sudo apt-get install mercurial

Then to download the driver files:

hg clone http://linuxtv.org/hg/~jfrancois/gspca/

If all went properly, you now have a "gspca" folder in your current directory (probably /home/<username>/). Let's go ahead and change into it to begin the build process:

cd gspca
make

When make begins its task, it should give the name of the kernel it is compiling against. It is important that this is your current running kernel. If not, see the kernel notes at the end. This should produce a lot of text, and hopefully not end with an error. If it ends successfully, you now have the driver compiled. Go ahead and install it with:

sudo make install

The last step is to test the driver. You can do this a few different ways. Plug in your camera, and you should be able to get video from /dev/video0 (possibly video1 if you have another camera or capture card installed).

If you decide to install the MT driver from Kaswy, simply download it from his website, and follow the "cd gspca-ps3eyeMT", "make", "sudo make install". Unload any other active ov_534 drivers with "sudo modprobe -r ov_534", and load it with "sudo modprobe gspca_ov534". At load time, you can set the resolution and frame rate. See the download page for more on that. Testing is the same.

A note on compiling against your current kernel. The gspca makefile finds the last driver built, and grabs the kernel version from that. This may or may not be correct. If it compiles against the wrong kernel, you can force the version. Open the gspca driver folder, and go to the "v4l" folder. Open the hidden file (Ctrl>H in Nautilus) ".version", and modify the SUBLEVEL and KERNELRELEASE to the correct values.

Credit for the drivers and ideas that helped me get this installed goes to Linuxtv.org, and users at ps2dev.org, specifically users jimparis, ao2, and jfrancois. Also thanks to Kaswy on the NUI Group for his work on the EyeMT driver.

Note that this is my first attempt at a wiki page from scratch, I'll try to clean it up some later.

References

http://forums.ps2dev.org/viewtopic.php?t=9238&postdays=0&postorder=asc&start=0
http://kaswy.free.fr/?q=node/42
http://nuigroup.com/forums/viewthread/4079/



Contributed by: --Vw kubel 03:47, 24 January 2009 (UTC)