Likoboard

From ElphelWiki
Revision as of 00:59, 28 July 2010 by OneArtPlease (talk | contribs)
Jump to: navigation, search

Overview

Likoboard.JPG

The Likoboard ([1]) is an Open Hardware pcb that can be used to interface with an Elphel camera over USB.


Compiling

You can get the latest package including binaries for libusb, libhid, liblikoboard and php_likoboard with:

git clone git://ocube.ath.cx/likomapper-bin.git

and install it on the camera with something like:

cd likomapper-bin
tar c . | ssh root@cam tar xv -C /

To build binaries from source you need:

You will need to modify some "configure.in" so that crisv32 is accepted as host type (eg adding "*" after "cris") before ./configure works, and some "libtool" script so that crisv32-axis-linux-gnu-ranlib is found (adding path) before make install works.

You can use crisv32-axis-linux-gnu-strip to strip the resulting binaries.

Build libusb-0.1.11 with :

. /?/elphel.env
./configure --host=crisv32-axis-linux-gnu --build=i686-pc-linux-gnu --prefix=/usr/local/crisv32 --with-pic
make
make install


Build libhid-svn with:

. /?/elphel.env
./configure --host=crisv32-axis-linux-gnu --disable-swig --with-pic --prefix=/usr/local/crisv32
make
make install

Build liblikoboard with:

. /?/elphel.env
ln -sf Makefile.crisv32 Makefile
make
make install

Build php_likoboard with:

. /?/elphel.env
export LDFLAGS=-llikoboard
./autogen.sh
phpize
make
cp modules/php_likoboard.so /usr/local/crisv32/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ .


Configuration

The main configuration file is located at

/etc/conf.d/likomapper.conf

Setting DAEMON=0 in /etc/conf.d/likomapper.conf allows you to run likomapper from the command line, without patching the firmware.