User Tools

Site Tools


setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
setup [2019/02/21 16:16] – [Robotics Cape Library] grafsetup [2019/07/09 14:54] (current) – removed graf
Line 1: Line 1:
-========= Setup the environment ========= 
-Useful information about the Beagle Bone Blue can be found [[https://wiki.ntb.ch/infoportal/embedded_systems/ti_sitara_am335x/beaglebone_blue/start|here]].  
-How to setup the wifi, copy your image to the onboard eMMC or any other FAQs can be found [[https://github.com/beagleboard/beaglebone-blue/wiki/Frequently-Asked-Questions-(FAQ)|here]]. 
  
-===== EEROS for Beagle Bone Blue ===== 
-There are useful scripts for downloading and building EEROS aaplications with your Beagle Bone Blue. Switch to your current working directory 
-<code> 
-$ cd /path/to/working/directory 
-</code> 
-an clone the following git repository. 
-<code> 
-$ git clone https://github.com/ntb-ch/BeagleBoneBlue.git 
-</code> 
-Get into that cloned folder and run the shell script 
-<code> 
-$ cd BeagleBoneBlue 
-$ ./clone.sh 
-</code> 
-this will clone all the required packages to run EEROS on your Beagle Bone Blue. 
- 
-===== Robotics Cape Library ===== 
-First you have to build a running version of the Robotics Cape library for your target device. To do that, switch to the Robitics Cape folder 
-<code> 
-$ cd robotics_cape_installer 
-</code> 
-and checkout version 0.3.4. 
-<code> 
-$ git checkout v0.3.4 
-</code> 
-Afterwards go into the libraries folder and edit its Makefile. 
-<code> 
-$ cd libraries 
-$ nano Makefile 
-</code> Find the lines 
-<code> 
-CC := gcc 
-LINKER := gcc 
-</code> 
-and change them to 
-<code> 
-CC := arm-linux-gnueabihf-gcc-4.9 
-LINKER := arm-linux-gnueabihf-gcc-4.9 
-</code> 
-This is necassary because we work on the host and must make sure to choose the right cross compiler for our target. If you do not have this compiler on your host, you can get it with 
-<code> 
-$ sudo apt-get install g++-4.9-arm-linux-gnueabihf && sudo apt-get install cmake 
-</code> 
-If this package can not be found (Ubuntu 18.04) you have to add //xenial// to your //sources.list// 
-<code> 
-$ sudo gedit /etc/apt/sources.list 
-</code> 
-Add the following entries: 
-<code> 
-deb http://dk.archive.ubuntu.com/ubuntu/ xenial main 
-deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe 
-</code> 
-Build the robotics cape library with 
-<code> 
-$ make 
-</code> 
- 
-===== App ===== 
-Now you have to change 2 files.First go to your BeagleBoneBlue/myApp folder and edit the CMakeLists.txt. Find the line 
-<code> 
-link_directories("~/Checkout/BeagleBoneBlue/robotics_cape_installer/libraries/") 
-</code> 
-and change this absolute path to match your path. 
-<code> 
-link_directories("/path/to/working/directory/BeagleBoneBlue/robotics_cape_installer/libraries/") 
-</code> 
-Second, the current main.cpp is not working. Copy and paste the "Hello EEROS" tutorial into your main.cpp. 
-<code c> 
-#include <iostream> 
-#include <eeros/logger/Logger.hpp> 
-#include <eeros/logger/StreamLogWriter.hpp> 
-  
-int main() { 
-  using namespace eeros::logger; 
-  
-  StreamLogWriter w(std::cout); 
-  Logger log; 
-  log.set(w); 
-  
-  log.info() << "Hello, EEROS"; 
-  
-  return 0; 
-} 
-</code> 
-Change back to your BeagleBoneBlue git repository and run the make shellscript 
-<code> 
-$ cd /path/to/working/directory/BeagleBoneBlue 
-$ ./make.sh 
-</code> 
-This will build EEROS for your target system and also builds a small EEROS application named myApp. 
-SSH to your target and create the required folders (default password for "debian" is "temppwd") 
-<code> 
-$ ssh debian@192.168.7.2 
-$ sudo mkdir /opt/eeros 
-$ sudo chmod +777 /opt/eeros 
-$ mkdir /opt/eeros/bin 
-$ mkdir /opt/eeros/lib 
-</code> 
-Back on the host copy or deploy the necassary files to your target run 
-<code> 
-$ ./deploy.sh 
-</code> 
-On the target run the myApp application 
-<code> 
-$ cd /opt/eeros/bin 
-$ sudo ./myApp -c HwConfigBBBlue.json 
-</code> 
-If the libraries have not been copied to the target, copy them by hand to the right place 
-<code> 
-$ scp ./install-armhf/lib/libbbblueeeros.so debian@192.168.7.2:/opt/eeros/lib 
-$ scp ./install-armhf/lib/libeeros.so.0.0.0.0 debian@192.168.7.2:/opt/eeros/lib 
-$ scp ./build-armhf/myApp/myApp debian@192.168.7.2:/opt/eeros/bin 
-$ scp ./myApp/HwConfigBBBlue.json debian@192.168.7.2:/opt/eeros/bin 
-</code> 
-On your target link both libraries to /usr/lib 
-<code> 
-$ sudo ln -s /opt/eeros/lib/libeeros.so.0.0.0.0 /usr/lib/libeeros.so.0.0.0.0 
-$ sudo ln -s /opt/eeros/lib/libeeros.so.0.0.0.0 /usr/lib/libeeros.so.0.0 
-$ sudo ln -s /opt/eeros/lib/libeeros.so.0.0.0.0 /usr/lib/libeeros.so 
-$ sudo ln -s /opt/eeros/lib/libbbblueeeros.so /usr/lib/libbbblueeeros.so 
-</code> 
-Now you should be able to run the myApp application. 
- 
-===== Linux on Beagle Bone Blue ===== 
-The Beagle Bone Blue comes with a preinstalled Debian 8 with Kernel 4.4.54-ti-r93 or similar. Do not upgrade to Debian 9 cause robitics cape will not work anymore. Also do not use any newer Kernel, this will cause the same problem. The latest Debian Images for your Beagle Bone Blue can be downloaded [[https://beagleboard.org/latest-images|here]]. 
-==== RT Kernel for Beagle Bone Blue ==== 
-You can also run the Beagle Bone Blue with a real-time Kernel. 
-Check if there is already a RT-Kernel: 
-<code> 
-uname -r 
-</code> 
-If not, download: 
-<code> 
-$ sudo apt-get install linux-image-4.4.49-ti-rt-r89 
-</code> 
-Do not use a newer one. Robotics Cape won't work anymore (ERROR: missing PINMUX driver). 
-Reboot and delete the old kernel: 
-<code> 
-sudo apt remove --purge linux-image-4.4.54-ti-r93 
-</code> 
- 
-===== Get your IDE ===== 
-It is highly recommended to use an IDE for your EEROS applications. You can use an IDE of your choice. The following steps explain how to setup an EEROS application with KDevelop. 
-<code> 
-$ sudo apt-get install kdevelop 
-</code> 
-==== Import an EEROS project ==== 
-  - Start KDevelop 
-  - Project -> Open/Import project 
-  - Get to your working directory and choose the folder "BeagleBoneBlue/myApp". Select the CMakeLists.txt and click next. 
-  - You can use myApp as name, or any other, as you prefer. If you change this name, you also have to make changes to the deploy file (later on). 
-  - Click finish. 
-  - Create the build configuration. It is recommended to put the target architecture in the name of the build folder. Put the path where EEROS is install in the "Installation Prefix" field. 
-{{ :delta:build-directory.png?300 |}} 
- 
-You now have your main.cpp, HwConfigBBBlue.json and the CMakeLists.txt in your project solution. You can build this application by pressing the build-button in the top left corner. To run this application on your target device, get to your working directory 
-<code> 
-$ cd /path/to/working/directory/BeagleBoneBlue 
-</code> 
-If your project name is still myApp you can run the 
-<code> 
-$ ./deploy.sh 
-</code> 
-otherwise you have to change the project name in the deploy.txt file 
-<code> 
-install-armhf/lib/libeeros.so.0.0.0.0 
-install-armhf/lib/libbbblueeeros.so 
- 
-myApp/HwConfigBBBlue.json 
-build-armhf/YOUR-PROJECT-NAME/myApp 
-</code> 
-and run the deploy.sh afterwards. 
setup.1550762196.txt.gz · Last modified: 2019/02/21 16:16 by graf