Using a Bifferboard as a Webcam

Checkout OpenWrt trunk, I'm using rev 22979 for this.

svn co -r 22979 svn://svn.openwrt.org/openwrt/trunk/

Configure with:

make menuconfig

Select the kernel modules for your camera. The easiest way to find out which ones are required is to plug the camera into a PC running a recent Linux distribution, e.g. Ubuntu, and run 'dmesg' to see which module got loaded.

Select also mjpeg-streamer

make the image, and then flash it to the board (openwrt-rdc-jffs2-64k-bifferboard.img), ensuring kernelmax is set to 0x10, and command-line is blank in Biffboot.

Download the mjpeg-streamer distribution from sourceforge, unpack it, get the files from the 'www' directory and put them in /www on the Bifferboard.

Run mjpeg_streamer like this:

mjpg_streamer -o "output_http.so -w /www"

It should print something like this:

MJPG Streamer Version.: 2.0

i: Using V4L2 device.: /dev/video0

i: Desired Resolution: 640 x 480

i: Frames Per Second.: 5

i: Format............: MJPEG

o: www-folder-path...: /www/

o: HTTP TCP port.....: 8080

o: username:password.: disabled

o: commands..........: enabled

zc3xx: probe 2wr ov vga 0x0000

Now point your web browser at http://<bifferboard ip address>:8080

Hopefully you should see something like this: