With the help of this site, the brothers, Mathieu (http://openrovpi242.blogspot.com/2013/03/software-changes-for-pi.html) and several other sources; I have the OpenROV cockpit software running on my Raspberry Pi (Raspbian distro). There is currently no Arduino cape compatibility yet (I don't have an Arduino yet) but video streaming is successful!
Although other's have gotten this far and beyond with the Raspberry Pi, I haven't seen any walkthroughs posted for the Raspbian distrobution of RPi. Below are the steps I took to get this far and the problems I'm still having.
This assumes you have a clean install of Raspbian loaded on a Raspberry Pi with terminal access (I use ssh exclusively).
1. change hostname and hosts file to openrov-XXX
sudo vi /etc/hostname
delete hostname and replace with openrov-xxxx (where xxx is your serial number)
sudo vi /etc/hosts
(delete hostname and replace with same host name as above)
3.update and install prerequisite packages for openROV project:
sudo apt-get install g++ curl pkg-config libv4l-dev libjpeg-dev build-essential libssl-dev vim cmake git-core build-essential
4. install prerequisites (for the installation of mjpg-streamer)
sudo apt-get install subversion libv4l-dev libjpeg8-dev imagemagick
5. cd to /opt and use svn to install mjpg-streamer
sudo svn co https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer mjpg-streamer
(this is a different version of mjpg-streamer than is on the beagle bone but it appears to be the only one that I have been able to download successfully so far)
sudo make USE_LIBV4L2=true clean all
sudo make DESTDIR=/usr install
as part of a failed attempt to install mjpg_streamer-r-63, I copied /usr/include/linux/videodev2.h to videodev.h. I'm not sure if this is necessary.
6. plug in webcam and test mjpg_streamer
mjpg_streamer -i "/usr/lib/input_uvc.so -d /dev/video0 -r 640x480 -f 5" -o "/usr/lib/output_http.so -p 8090"
you can see the stream if you add the following line to an html page…
where xxx.xxx.xxx.xxx is the IP address of the Raspberry Pi
7. cd back into /opt and install node.js
sudo git clone https://github.com/joyent/node.git
sudo git checkout v0.8.11
sudo make //this part takes a loooooong time!
sudo make install
8. cd back into /opt and install ROV cockpit
sudo git clone git://github.com/openrov-software.git
sudo mv openrov-software openrov
9. install packages for node.js
sudo npm install express socket.io serialport nconf
11. copy input_uvc.so and output_http.so to usr/local/lib/
sudo cp /usr/lib/input_uvc.so /usr/local/lib/
sudo cp /usr/lib/output_http.so /usr/local/lib/
12. Start the OpenROV app in a terminal session to look for errors
the camera light should come on and arduino firmware errors will start popping up on bash)
13. look at OpenROV cockpit via web browser
As I said, the Arduino Firmware error happens continuously but at least I can get an image through the cockpit window.
I did some duration testing and found that the Raspberry Pi seems to go brain dead after several hours of running the software. I'm pretty sure the issue is related to mjpg-streamer because I had the same results when I ran it alone (without calling node app.js). In the near future, I'm going to try r-63 again to see if I have better luck.