Personal tools
The Open Lighting Project has moved!

We've launched our new site at www.openlighting.org. This wiki will remain and be updated with more technical information.

Difference between revisions of "OLA on Beaglebone"

From wiki.openlighting.org

Jump to: navigation, search
m (Add migrated template)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{PageMigrated|url=https://www.openlighting.org/ola/tutorials/ola-on-beaglebone/}}
 
This describes how to get [[OLA]] working on a Beaglebone from strach.  At the time of writing, an "image" does not exist for the beagle bone.  This process is based on using the debian os. There certainly are other ways of bulding this, but this is a method that works for me.
 
This describes how to get [[OLA]] working on a Beaglebone from strach.  At the time of writing, an "image" does not exist for the beagle bone.  This process is based on using the debian os. There certainly are other ways of bulding this, but this is a method that works for me.
  
Line 36: Line 37:
  
  
  sudo apt-get install libcppunit-dev libcppunit-1.12-1 uuid-dev pkg-config libncurses5-dev libtool autoconf automake  g++ libmicrohttpd-dev libmicrohttpd5 protobuf-c-compiler libprotobuf-lite6 python-protobuf libprotobuf-dev zlib1g-dev bison flex make libftdi-dev  libftdi1 libusb-1.0-0-dev liblo-dev git
+
  sudo apt-get install libcppunit-dev libcppunit-1.12-1 uuid-dev pkg-config libncurses5-dev libtool autoconf automake  g++ libmicrohttpd-dev libmicrohttpd5 protobuf-compiler libprotobuf-lite6 python-protobuf libprotobuf-dev libprotoc-dev zlib1g-dev bison flex make libftdi-dev  libftdi1 libusb-1.0-0-dev liblo-dev git
  
Note, these dependancys are slightly different from the Debian build
+
Note, these dependencies are slightly different from the Debian build
  
 
+
= Install OLA =
== Install OLA ==
 
  
 
Check out the git repo with the following command:
 
Check out the git repo with the following command:
  
 
   cd /usr/local/src  ( not entirely nessary, but you will be able to find it later )
 
   cd /usr/local/src  ( not entirely nessary, but you will be able to find it later )
   git clone https://code.google.com/p/open-lighting/ ola
+
   git clone https://github.com/OpenLightingProject/ola.git ola
 
   cd ola
 
   cd ola
  

Latest revision as of 18:26, 31 May 2018

This page has migrated

This page has migrated to our new site, please see https://www.openlighting.org/ola/tutorials/ola-on-beaglebone/.

This content will not be updated and is just left here for reference and will be removed at some point in the future, see the link above for the most up-to-date version.


This describes how to get OLA working on a Beaglebone from strach. At the time of writing, an "image" does not exist for the beagle bone. This process is based on using the debian os. There certainly are other ways of bulding this, but this is a method that works for me.

Preparing your debian based Beaglebone

Get Robert C nelsons Netinstall scripts,

https://github.com/RobertCNelson/netinstall

cd /netinstall ./mk_mmc.sh --uboot bone --mmc /dev/sdX ( sdX ) is the card

this will build the boot loader onto the card. This is also based on debian Squeeze.

Once its done, put the card in your beagle, and start up. You'll need to connect the Beaglebone via USB, and talk to it via Screen. Follow the instructions for the debian install.. Select SSH server and System Ultiities for your build. It can take a while to finish a build, depending on how fast your internet connections are.


Install dependencies

You need a couple of libraries installed for everything to work correctly. Some of these are available as packages in distros but others need to be downloaded and built manually.

First you'll need at least the following:

If you're building from git you'll also need the following:

  • libtool
  • automake
  • autoconf


sudo apt-get install libcppunit-dev libcppunit-1.12-1 uuid-dev pkg-config libncurses5-dev libtool autoconf automake  g++ libmicrohttpd-dev libmicrohttpd5 protobuf-compiler libprotobuf-lite6 python-protobuf libprotobuf-dev libprotoc-dev zlib1g-dev bison flex make libftdi-dev  libftdi1 libusb-1.0-0-dev liblo-dev git

Note, these dependencies are slightly different from the Debian build

Install OLA

Check out the git repo with the following command:

 cd /usr/local/src   ( not entirely nessary, but you will be able to find it later )
 git clone https://github.com/OpenLightingProject/ola.git ola
 cd ola

Run autoreconf

If this is the first time run with -i to install the missing files

autoreconf -i

Do the usual build steps

You can pass additional options to ./configure . Run

 ./configure --help

to see all options. The most popular option is --enable-python-libs to build the Python Client Module. If you want to use the RDM responder tests add --enable-rdm-tests.

Once you've decided on the options, it's time to build OLA. If you have a multi-core machine, you can speed up the build by using make -j N. A good value of N is the number of cores on your machine. On a MacBook Pro (4 core) using -j 4 reduced the build time from 5 minutes to 2.5 minutes.

./configure --enable-rdm-tests
make
make check
sudo make install

Finally run ldconfig so you can use the new libraries.

sudo ldconfig