Difference between revisions of "Talk:Elphel Software Kit for Ubuntu"

From ElphelWiki
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 61: Line 61:
  
 
I believe it is better to prefix commands with sudo instead of "run script with root privileges' - it is more consistent with the other commands --[[User:Andrey.filippov|Andrey.filippov]] 22:54, 1 January 2009 (CST)
 
I believe it is better to prefix commands with sudo instead of "run script with root privileges' - it is more consistent with the other commands --[[User:Andrey.filippov|Andrey.filippov]] 22:54, 1 January 2009 (CST)
 +
 +
----
 +
 +
Use gcc-4.2: I have been trying to install the axis-cris compiler on Ubuntu (virtualized under OS X).  The instructions under 'Download and install Cris-GCC compiler', (using gcc-4.3 and changing gnu-toplev/gcc/collect2.c and
 +
gnu-toplev/libgloss/hp74x/checksum.c to add the third argument 0666 when O_CREATing files) failed with a buffer overflow at 'cris-axis-elf-ar  rc ./libgcc.a'.  The instructions further down at 'GCC-CRIS cross-compiler installation' (which swaps in the gcc-4.2 before compiling) apparently succeeds. [[User:DavidPalmer|DavidPalmer]] 17:17, 16 January 2009 (CST)
 +
----
 +
Worked like charmed on my imac with kubuntu 9.04 as second OS, one remark, at the end of the compilation of the cris dist it says:
 +
*** Now do not forget to update your $MANPATH environment variable with:
 +
    /usr/local/man
 +
    A suitable line to add in your .profile or shell resource file
 +
    (.bashrc .cshrc .zshrc .tcshrc etc) after other settings, may be:
 +
    MANPATH=/usr/local/man:$MANPATH
 +
 +
*** Do not forget to update your $PATH environment variable with:
 +
    /usr/local/cris/bin
 +
    A suitable line to add in your .profile or shell resource file
 +
    (.bashrc .cshrc .zshrc .tcshrc etc) after other settings, may be:
 +
    PATH=/usr/local/cris/bin:$PATH
 +
--[[User:Tobiokanobi|tobiokanobi]] 17:48, 18 August 2009 (CDT)
 +
---
 +
 +
 +
 +
 +
 +
 +
 +
= New SDK Environment  =
 +
'' Moved from the main article to avoid confusion between installation instructions and plans fro the future ''
 +
*About
 +
 +
Considering the existing/old Knoppoix-based Live CD is outdated in terms of its software packages and it's currently left out with no periodic maintenance, we're planning to build a new SDK environment for the users/developers.
 +
 +
* Architecture
 +
          o x86 compatible, 32bit (i386) & 64bit (amd64)
 +
          o Can be fit into USB key(4GB) and DVD(4.7GB)
 +
          o Ubuntu 9.10 based for first prototype, release in Feb. 2010. Collect bug report/feedback to make improvement and target to have the first official release (Ubuntu 10.4 based ) in June 2010.
 +
          o Default desktop environment: KDE (so Kubuntu actually)
 +
 +
 +
* Main Feature
 +
          o USB key can be self-bootable
 +
          o USB key can be used both as live system and installation media (same as Ubuntu Desktop DVD)
 +
          o The live system should be able to drive and demo the Elphel camera.
 +
          o Can be used as a normal Ubuntu system
 +
          o Default installation of following packages: (TBD, refer to http://wiki.elphel.com/index.php?title=Elphel_Software_Kit_for_Ubuntu)
 +
                + mplayer-nogui mplayer gecko-mediaplayer (1.0 from sourceforge)
 +
                + libvorbis-dev libsdl1.2-dev sharutils libasound2-dev liblzo-dev gawk libjpeg62-dev libaudiofile-dev \
 +
                  libsmbclient-dev libxv-dev libpng3-dev libgif-dev libcdparanoia0-dev libxvidcore4-dev libdv-dev \
 +
                  liblivemedia-dev libfreetype6-dev em8300-headers libgl1-mesa-dev libdvdread-dev libdts-dev libtheora-dev \
 +
                  libglu-dev libartsc0-dev libfontconfig-dev libxxf86dga-dev libxinerama-dev libxxf86vm-dev \
 +
                  libxvmc-dev libggi2-dev libmpcdec-dev libspeex-dev libfribidi-dev libfaac-dev  libaa1-dev libcaca-dev \
 +
                  libx264-dev  libpulse-dev libmad0-dev ladspa-sdk libdbus-glib-1-dev libaudio-dev liblzo2-dev libdvdnav-dev \
 +
                  libopenal-dev libjack-dev libtwolame-dev libsvga1-dev libenca-dev libmp3lame-dev
 +
                + cvs build-essential autoconf flex byacc bison libglib2.0-dev tcl gettext libncurses5-dev patch zlib1g-dev nfs-kernel-server bash xutils-dev
 +
                + kinfocenter minicom firefox graphviz doxygen ctags cervisia php5 php5-cli xchat ssh kompare
 +
                + KDevelop
 +
          o Key package list in exclude list so actions like apt-get upgrade would not break above packages that are already installed
 +
          o Above packages must be included in the USB key image
 +
          o Create meta-package such as apt-get install elphel-dev ?
 +
          o For packages cannot be included in the installation media due to the legal restriction, create meta package / installation script? (put on the desktop)
 +
          o Elphel document link(such as user manual) on desktop (both in installation media live system and installed system)
 +
          o Provide a debian/ubuntu style repository for users so apt-get install can be an feasible option for people who have regular Ubuntu system
 +
          o Include zeroconf for device discovery (10373)
 +
          o Include "camera discovery" script for device discovery
 +
          o Desktop icons for starting mplayer & gstreamer live stream from camera
 +
 +
 +
* Release & Update
 +
          o Release in a six months cycle in accordance with Ubuntu release cycle, focus on LTS version
 +
          o Wiki page to include key information (installation, important notice etc)
 +
          o Include both USB key in camera package.
 +
          o ISO image downloadable from Elphel website, user may choose to burn into DVD or USB key.
 +
 +
* Others
 +
          o Elphel label sticker on USB key.
 +
          o Legal/comliance check to ensure no violation on Canonical/Ubuntu, Xilinx, Verilog, Axis, etc such as logo, name use, etc. Vendor selection (USB key, label etc)
 +
 +
 +
<!--
 +
 +
In Ubuntu 8.10 there can be an error like '''''(update - solved with installation xutils-dev for 'makedep' utility at 8.10)''''':
 +
*** No rule to make target `../../include/openssl/idea.h', needed by `hmac.o'.
 +
 +
The solution is to create a link:
 +
cd /cvs_sync/elphel353-7.1.8/elphel353-7.1/apps/crypto/openssl-IR0_9_7f-3/openssl/include/openssl
 +
ln -s ../../crypto/idea/idea.h
 +
-->
 +
<!--
 +
==Elphel SDK==
 +
 +
We provide our clients with a complete SDK to develop software, FPGA code and even to redesign the hardware.
 +
 +
===PHP===
 +
*[[PHP in Elphel cameras]]
 +
*[[Elphel PHP constants]]
 +
*[[PHP Examples]]
 +
 +
===KDevelop IDE===
 +
*[[KDevelop]] IDE
 +
*work in progress [[KDevelop]] integration with GTKWave & Icarus.
 +
 +
===FPGA Development in Elphel cameras===
 +
*[[FPGA Development in Elphel cameras]] is the page to read if you want to install Xilinx tools to do some FPGA development.
 +
*iverilog
 +
*GTKWave
 +
</!--
 +
= EeeBox (K)Ubuntu 8.10 installation =
 +
 +
=== ACPI configuration ===
 +
 +
EeeBox will suspend and freeze after some time w/o any activity on it, so it's better to turn off suspend. Run this script at this new folder with ''root'' privileges (for example, put text to ''go'' file, make that file executable '''chmod a+x go''', and run with sudo '''sudo ./go'''):
 +
 +
  #!/bin/sh
 +
 
 +
  # patch ACPI config to turn off suspend
 +
 
 +
  patch -N /etc/default/acpi-support << 'EOP'
 +
  --- a  2008-12-31 00:40:41.000000000 +0200
 +
  +++ acpi-support        2008-12-31 00:40:08.000000000 +0200
 +
  @@ -56,7 +56,7 @@
 +
  # Please specify a space separated list of options. The recommended value is
 +
  # "dbus pm-utils"
 +
  #
 +
  -SUSPEND_METHODS="dbus-pm dbus-hal pm-utils"
 +
  +SUSPEND_METHODS=""
 +
 
 +
 
 +
 
 +
  @@ -69,10 +69,10 @@
 +
  #
 +
 
 +
  # Comment the next line to disable ACPI suspend to RAM
 +
  -ACPI_SLEEP=true
 +
  +#ACPI_SLEEP=true
 +
 
 +
  # Comment the next line to disable suspend to disk
 +
  -ACPI_HIBERNATE=true
 +
  +#ACPI_HIBERNATE=true
 +
 
 +
  # Change the following to "standby" to use ACPI S1 sleep, rather than S3.
 +
  # This will save less power, but may work on more machines
 +
  EOP
 +
 
 +
  # and apply changes
 +
  /etc/init.d/acpi-support restart
 +
  /etc/init.d/acpid restart
 +
 +
=== Network configuration ===
 +
 +
''Please, someone, have a look how to configure network at Kubuntu 8.10 - I have bad luck with that. The main idea is: setup WiFi for internet, and local interface for local network to work with camera. Possible problem: Oleg told me what with POE adapter, not POE switch (as I do) local network will not work - network manager shut down eth0 every time when contact is lost, for example, when cable disconnected from the camera for reflash with button (this used with prod353 system).''
 +
 +
=== GCC-CRIS cross-compiler installation ===
 +
 +
Make a directory where you will build cross-compiler and store sources of it, and run this script at this new folder with ''root'' privileges (for example, put text to ''go'' file, make that file executable '''chmod a+x go''', and run with sudo '''sudo ./go'''):
 +
 +
  #!/bin/sh
 +
 
 +
  # install packages to build cross-compiler
 +
  apt-get install build-essential gcc-4.2 g++-4.2 xutils-dev libncurses5-dev autoconf automake byacc bison zlib1g-dev patch cvs gettext
 +
 
 +
  # create links to GCC-4.2
 +
  rm /usr/bin/gcc
 +
  rm /usr/bin/g++
 +
  ln -s /usr/bin/gcc-4.2 /usr/bin/gcc
 +
  ln -s /usr/bin/g++-4.2 /usr/bin/g++
 +
 
 +
  # download sources - if links are broken, check developer.axis.com
 +
  wget -c http://www.axis.com/ftp/pub/axis/tools/cris/compiler-kit/old/cris-dist-1.64.tar.gz
 +
  wget -c http://www.axis.com/ftp/pub/axis/tools/cris/compiler-kit/old/cris-dist-glibc-1.64.tar.gz
 +
  wget -c http://www.axis.com/ftp/pub/axis/tools/cris/compiler-kit/old/cris-dist-linux-headers-1.64.tar.gz
 +
  wget -c http://www.axis.com/ftp/pub/axis/tools/cris/compiler-kit/old/cris-dist-linux-headersv32-1.64.tar.gz
 +
 
 +
  # unarch that
 +
  tar -xvf cris-dist-1.64.tar.gz
 +
  cd cris-dist-1.64
 +
  cp ../cris-dist-glibc-1.64.tar.gz ./
 +
  tar -xvf cris-dist-glibc-1.64.tar.gz
 +
  cp ../cris-dist-linux-* ./
 +
  tar -xvf cris-dist-linux-headers-1.64.tar.gz
 +
  tar -xvf cris-dist-linux-headersv32-1.64.tar.gz
 +
 
 +
  # build and install - agree with all questions, at the finish also
 +
  ./install-cris-tools
 +
 
 +
  # delete build directory - we don't need it anymore
 +
  cd ..
 +
  rm -R cris-dist-1.64
 +
 
 +
  # restore host GCC links - out of the box, Ubuntu 8.10 use GCC-4.3 as default
 +
  rm /usr/bin/gcc
 +
  rm /usr/bin/g++
 +
  ln -s /usr/bin/gcc-4.3 /usr/bin/gcc
 +
  ln -s /usr/bin/g++-4.3 /usr/bin/g++
 +
 
 +
  # it's all, cross-compiler was installed; but while we still root, install packages needed to build firmware here
 +
  apt-get install libglib2.0-dev pkg-config flex gettext tcl8.5
 +
 +
=== NFS installation and configuration ===
 +
 +
Before firmware build, we should install and configure NFS, because firmware build process will put firmware images in to it for remote (and local) camera reflashing.
 +
 +
  sudo apt-get install nfs-kernel-server
 +
  sudo mkdir /nfs
 +
  # mkdir /nfs/elphel353-2.10 # not used in 8.0
 +
  sudo chmod -R a+r /nfs
 +
  sudo chmod -R a+w /nfs
 +
  sudo echo "/nfs 192.168.0.0/24(rw,async)" >> /etc/exports
 +
  sudo /etc/init.d/nfs-kernel-server restart
 +
 +
=== build firmware ===
 +
 +
=== other steps ===
 +
...to be continued - network setup, Firefox,KDeveloper,MPlayer installation...
 +
 +
-->
 +
[[Category:Operating Systems]]
 +
[[Category:Software]]

Latest revision as of 18:33, 6 August 2010

I also us cervisia, kompare--Andrey.filippov 14:33, 26 May 2007 (CDT)

to install update to Xilinx WebPACk (requires Internet connection even if the archive is already downloaded) you need first start vanilla 9.1i and edit->preferences->HTML browser: change "mozilla" to "firefox" or just

ln -sf /usr/bin/firefox /usr/bin/mozilla

--Andrey.filippov 15:55, 26 May 2007 (CDT)


I decided to temporary do a ugly hack to solve the NFS flashing problem. I'll move /nfs/elphel353-2.10 to /cdrom/elphel353-2.10, it's not usable after install but at least will work for LiveDVD.

/etc/resolv.conf is empty and eth0&eth1 are configured as bridge with 192.168.0.15 statically.

echo "" > /etc/resolv.conf

apt-get install bridge-utils

cp /usr/share/doc/ifupdown/examples/bridge  /etc/network/if-down.d/

cat > /etc/network/interfaces << EOF
iface br0 inet static
        bridge-ifaces eth0 eth1
        address 192.168.0.15
        netmask 255.255.255.0
        gateway 192.168.0.1
EOF

I also upgraded GenRes with files Spectr send me.

--Polto 15:33, 20 Sep 2007 (GMT)

"/cdrom/elphel353-2.10" - will it work with firmware upgrades like Elphel Live DVD does or just with the burnt in image?--Andrey.filippov 08:57, 23 November 2007 (CST)

ElphelSoftwareKit#How_building_latest_version_software_for_LiveCD.28i.e_FireFox.29 is about Knoppix based DVD, this page is about Ubuntu based DVD. We will need to move it. --Polto 12:17, 23 Nov 2007 (GMT)

What exactly does this Software Kit include? Will this add the Live DVDs features to Ubuntu? --OneArtPlease 13:15, 22 October 2008 (CDT)

We will try to replace all features of the LiveDVD to Ubuntu, for now most of the Kit is developer oriented. To make it possible to recompile our firmware. --Alexandre.Poltorak 09:02, 24 October 2008 (CDT)



Unpacking mplayer (from mplayer_1.0~rc2-0ubuntu17_amd64.deb) ... dpkg: dependency problems prevent configuration of mplayer:

mplayer depends on mplayer-skins; however:
 Package mplayer-skins is not installed.
mplayer depends on ttf-dejavu; however:
 Package ttf-dejavu is not installed.

dpkg: error processing mplayer (--install):

dependency problems - leaving unconfigured

Processing triggers for man-db ... Errors were encountered while processing:

mplayer

Nice to put bookmarks, configure xchat to #elphel on the Eee Box with preinstalled software

I believe it is better to prefix commands with sudo instead of "run script with root privileges' - it is more consistent with the other commands --Andrey.filippov 22:54, 1 January 2009 (CST)


Use gcc-4.2: I have been trying to install the axis-cris compiler on Ubuntu (virtualized under OS X). The instructions under 'Download and install Cris-GCC compiler', (using gcc-4.3 and changing gnu-toplev/gcc/collect2.c and gnu-toplev/libgloss/hp74x/checksum.c to add the third argument 0666 when O_CREATing files) failed with a buffer overflow at 'cris-axis-elf-ar rc ./libgcc.a'. The instructions further down at 'GCC-CRIS cross-compiler installation' (which swaps in the gcc-4.2 before compiling) apparently succeeds. DavidPalmer 17:17, 16 January 2009 (CST)


Worked like charmed on my imac with kubuntu 9.04 as second OS, one remark, at the end of the compilation of the cris dist it says:

*** Now do not forget to update your $MANPATH environment variable with:
   /usr/local/man
   A suitable line to add in your .profile or shell resource file
   (.bashrc .cshrc .zshrc .tcshrc etc) after other settings, may be:
   MANPATH=/usr/local/man:$MANPATH
*** Do not forget to update your $PATH environment variable with:
   /usr/local/cris/bin
   A suitable line to add in your .profile or shell resource file
   (.bashrc .cshrc .zshrc .tcshrc etc) after other settings, may be:
   PATH=/usr/local/cris/bin:$PATH

--tobiokanobi 17:48, 18 August 2009 (CDT) ---




New SDK Environment

Moved from the main article to avoid confusion between installation instructions and plans fro the future

  • About

Considering the existing/old Knoppoix-based Live CD is outdated in terms of its software packages and it's currently left out with no periodic maintenance, we're planning to build a new SDK environment for the users/developers.

  • Architecture
         o x86 compatible, 32bit (i386) & 64bit (amd64)
         o Can be fit into USB key(4GB) and DVD(4.7GB) 
         o Ubuntu 9.10 based for first prototype, release in Feb. 2010. Collect bug report/feedback to make improvement and target to have the first official release (Ubuntu 10.4 based ) in June 2010.
         o Default desktop environment: KDE (so Kubuntu actually)


  • Main Feature
         o USB key can be self-bootable
         o USB key can be used both as live system and installation media (same as Ubuntu Desktop DVD)
         o The live system should be able to drive and demo the Elphel camera.
         o Can be used as a normal Ubuntu system
         o Default installation of following packages: (TBD, refer to http://wiki.elphel.com/index.php?title=Elphel_Software_Kit_for_Ubuntu)
               + mplayer-nogui mplayer gecko-mediaplayer (1.0 from sourceforge)
               + libvorbis-dev libsdl1.2-dev sharutils libasound2-dev liblzo-dev gawk libjpeg62-dev libaudiofile-dev \
                 libsmbclient-dev libxv-dev libpng3-dev libgif-dev libcdparanoia0-dev libxvidcore4-dev libdv-dev \
                 liblivemedia-dev libfreetype6-dev em8300-headers libgl1-mesa-dev libdvdread-dev libdts-dev libtheora-dev \
                 libglu-dev libartsc0-dev libfontconfig-dev libxxf86dga-dev libxinerama-dev libxxf86vm-dev \
                 libxvmc-dev libggi2-dev libmpcdec-dev libspeex-dev libfribidi-dev libfaac-dev  libaa1-dev libcaca-dev \
                 libx264-dev  libpulse-dev libmad0-dev ladspa-sdk libdbus-glib-1-dev libaudio-dev liblzo2-dev libdvdnav-dev \
                 libopenal-dev libjack-dev libtwolame-dev libsvga1-dev libenca-dev libmp3lame-dev
               + cvs build-essential autoconf flex byacc bison libglib2.0-dev tcl gettext libncurses5-dev patch zlib1g-dev nfs-kernel-server bash xutils-dev
               + kinfocenter minicom firefox graphviz doxygen ctags cervisia php5 php5-cli xchat ssh kompare
               + KDevelop 
         o Key package list in exclude list so actions like apt-get upgrade would not break above packages that are already installed
         o Above packages must be included in the USB key image
         o Create meta-package such as apt-get install elphel-dev ?
         o For packages cannot be included in the installation media due to the legal restriction, create meta package / installation script? (put on the desktop)
         o Elphel document link(such as user manual) on desktop (both in installation media live system and installed system)
         o Provide a debian/ubuntu style repository for users so apt-get install can be an feasible option for people who have regular Ubuntu system
         o Include zeroconf for device discovery (10373)
         o Include "camera discovery" script for device discovery
         o Desktop icons for starting mplayer & gstreamer live stream from camera


  • Release & Update
         o Release in a six months cycle in accordance with Ubuntu release cycle, focus on LTS version
         o Wiki page to include key information (installation, important notice etc)
         o Include both USB key in camera package.
         o ISO image downloadable from Elphel website, user may choose to burn into DVD or USB key.
  • Others
         o Elphel label sticker on USB key.
         o Legal/comliance check to ensure no violation on Canonical/Ubuntu, Xilinx, Verilog, Axis, etc such as logo, name use, etc. Vendor selection (USB key, label etc)