Difference between revisions of "Elphel Software Kit for Ubuntu"

From ElphelWiki
Jump to: navigation, search
Line 1: Line 1:
==Packages requirement for Ubuntu==
+
==For developers==
 
Tested on Kubuntu 8.0.4.
 
Tested on Kubuntu 8.0.4.
  
===For developers:===
+
===Install needed packages===
 
Minimal packages:
 
Minimal packages:
 
  sudo apt-get install cvs build-essential autoconf flex byacc bison libglib2.0-dev tcl gettext libncurses5-dev patch zlib1g-dev nfs-kernel-server bash
 
  sudo apt-get install cvs build-essential autoconf flex byacc bison libglib2.0-dev tcl gettext libncurses5-dev patch zlib1g-dev nfs-kernel-server bash
Line 21: Line 21:
 
answer by default (enter, enter, ...)
 
answer by default (enter, enter, ...)
  
 +
===Configure your NFS server===
 +
 +
Let's say you want to configure an NFS server on your machine and your IP address is '''192.168.0.100'''.
 +
 +
Edit /etc/exports file with your favorite editor. Here I use nano.
 +
sudo nano -w /etc/exports
 +
Add at the end of the file:
 +
/nfs            192.168.0.0/255.255.255.0(rw,sync)
 +
save the file.
 +
 +
If it does not yet exist make /nfs directory and make it world writable to make it possible to write logs from the camera.
 +
sudo mkdir /nfs
 +
sudo chmod 777 -R /nfs
 +
 +
And finally export the filesystem.
 +
sudo exportfs -a
 +
 +
===Install sources of Elphel camera===
 +
 +
====CVS====
  
 
Get [http://downloads.sourceforge.net/elphel/elphel353_install_from_cvs.sh.tar.gz?modtime=1195003055&big_mirror=0 elphel353_install_from_cvs.sh] script and execute it.
 
Get [http://downloads.sourceforge.net/elphel/elphel353_install_from_cvs.sh.tar.gz?modtime=1195003055&big_mirror=0 elphel353_install_from_cvs.sh] script and execute it.
 +
 +
====Release====
 +
 +
 +
 
===Elphel SDK===
 
===Elphel SDK===
  
Line 56: Line 81:
  
 
You can find more information on how to compile and add new software on Etrax FS CPU here: [http://developer.axis.com/wiki/doku.php?id=axis:apps_howto]
 
You can find more information on how to compile and add new software on Etrax FS CPU here: [http://developer.axis.com/wiki/doku.php?id=axis:apps_howto]
 
 
==Ideas:==
 
 
This DVD is based on KUbuntu 7.04. I will work on upgrading our distribution.
 
 
I think it should be useful to debianize all our software (ElphelOgm, GenRes, MPlayer, ...) Like what we will be able to use Launchpad PPA https://edge.launchpad.net/~elphel-live to build our Ubuntu packages as i tried on : https://edge.launchpad.net/~polto/+archive I have here a working MPlayer what can be installed by Sinaptic (the user-friendly way) just after adding my personal package repository to your sources.
 
 
So any Ubuntu user will be able to upgrade to our MPlayer, install ElphelSrv, ...
 
 
After what we can make some theme packages with backgrounds etc and generate a DVD with everything installed.
 
 
==Next step: ElphelLive DVD & Ubuntu packages==
 
 
In order to prepare the next release of Ubuntu based LiveDVD we now use Launchpad PPA.
 
 
You can already test some packages on my personal PPA:
 
https://edge.launchpad.net/~polto/+archive
 
 
For this you need to add this two lines to your /etc/apt/sources.list:
 
 
deb http://ppa.launchpad.net/polto/ubuntu gutsy main universe multiverse
 
deb-src http://ppa.launchpad.net/polto/ubuntu gutsy main universe multiverse
 
 
and do:
 
 
apt-get update; apt-get install elphel-ogm mplayer vlc
 
 
Please do not hesitate to post me comments or to discuss in discussion area any kind of ideas for our PPA packages.
 

Revision as of 13:25, 21 October 2008

For developers

Tested on Kubuntu 8.0.4.

Install needed packages

Minimal packages:

sudo apt-get install cvs build-essential autoconf flex byacc bison libglib2.0-dev tcl gettext libncurses5-dev patch zlib1g-dev nfs-kernel-server bash

Suggested packages:

sudo apt-get install minicom firefox graphviz doxygen kdevelop ctags cervisia

Download and install Cris-GCC compiler:

wget http://www.axis.com/ftp/pub/axis/tools/cris/compiler-kit/cris-dist-linux-headers-1.64.tar.gz   
wget http://www.axis.com/ftp/pub/axis/tools/cris/compiler-kit/cris-dist-linux-headersv32-1.64.tar.gz  
wget http://www.axis.com/ftp/pub/axis/tools/cris/compiler-kit/cris-dist-glibc-1.64.tar.gz 
wget http://www.axis.com/ftp/pub/axis/tools/cris/compiler-kit/cris-dist-1.64.tar.gz
tar zxvf cris-dist-1.64.tar.gz
cd cris-dist-1.64/
tar zxvf ../cris-dist-linux-headers-1.64.tar.gz                                 
tar zxvf ../cris-dist-linux-headersv32-1.64.tar.gz                             
tar zxvf ../cris-dist-glibc-1.64.tar.gz                                         
sudo ./install-cris-tools

answer by default (enter, enter, ...)

Configure your NFS server

Let's say you want to configure an NFS server on your machine and your IP address is 192.168.0.100.

Edit /etc/exports file with your favorite editor. Here I use nano.

sudo nano -w /etc/exports

Add at the end of the file:

/nfs            192.168.0.0/255.255.255.0(rw,sync)

save the file.

If it does not yet exist make /nfs directory and make it world writable to make it possible to write logs from the camera.

sudo mkdir /nfs
sudo chmod 777 -R /nfs

And finally export the filesystem.

sudo exportfs -a

Install sources of Elphel camera

CVS

Get elphel353_install_from_cvs.sh script and execute it.

Release

Elphel SDK

We provide our clients with a complete SDK to develop software, FPGA code and even to redesign the hardware.

PHP:

  •  PHP API

IDE:

CAD:

  • Varicad (demo)

FPGA:

  • iverilog
  • GTKWave


Developing for Elphel 353 camera:

The camera sources are in:

~/353

to compile from CVS do:

cd ~/353/elphel353/
make update
./configure
make

You can find more information on how to compile and add new software on Etrax FS CPU here: [1]