User Tools

Site Tools


delta: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
Last revisionBoth sides next revision
delta:setup [2018/08/07 12:46] finkdelta:setup [2018/08/19 19:05] – [EEROS for Beagle Bone Blue] fink
Line 3: Line 3:
 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]]. 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 on Beagle Bone Blue =====+===== EEROS for Beagle Bone Blue =====
 There are already existing wrapper libraries to use EEROS with your Beagle Bone Blue. Switch to your current working directory There are already existing wrapper libraries to use EEROS with your Beagle Bone Blue. Switch to your current working directory
 <code> <code>
Line 14: Line 14:
 Get into that cloned folder and run the shell script Get into that cloned folder and run the shell script
 <code> <code>
-$cd BeagleBoneBlue+$ cd BeagleBoneBlue
 $ ./clone.sh $ ./clone.sh
 </code> </code>
Line 20: Line 20:
 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 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> <code>
-$cd robotics_cape_installer/libraries+$ cd robotics_cape_installer
 </code> </code>
 and checkout version 0.3.4. and checkout version 0.3.4.
Line 26: Line 26:
 $ git checkout v0.3.4 $ git checkout v0.3.4
 </code> </code>
-Afterwards edit its Makefile.+Afterwards go into the libraries folder and edit its Makefile.
 <code> <code>
 +$ cd libraries
 $ nano Makefile $ nano Makefile
 </code> Find the lines </code> Find the lines
Line 43: Line 44:
 $ sudo apt-get install g++-4.9-arm-linux-gnueabihf && sudo apt-get install cmake $ sudo apt-get install g++-4.9-arm-linux-gnueabihf && sudo apt-get install cmake
 </code> </code>
-Now you can build the robotics cape library with+Build the robotics cape library with
 <code> <code>
 $ make $ make
 +</code>
 +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> </code>
 Change back to your BeagleBoneBlue git repository and run the make shellscript Change back to your BeagleBoneBlue git repository and run the make shellscript
Line 61: Line 88:
 $ mkdir /opt/eeros/lib $ mkdir /opt/eeros/lib
 </code> </code>
- To copy or deploy the necassary files to your target run+Back on the host copy or deploy the necassary files to your target run
 <code> <code>
 $ ./deploy.sh $ ./deploy.sh
 </code> </code>
-Run the myApp application+On the target run the myApp application
 <code> <code>
 $ cd /opt/eeros/bin $ cd /opt/eeros/bin
Line 79: Line 106:
 On your target link both libraries to /usr/lib On your target link both libraries to /usr/lib
 <code> <code>
-$ sudo ln -s /opt/eeros/bin/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.0.0 
-$ sudo ln -s /opt/eeros/bin/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.0.0 
-$ sudo ln -s /opt/eeros/bin/libeeros.so.0.0.0.0 /usr/lib/libeeros.so +$ sudo ln -s /opt/eeros/lib/libeeros.so.0.0.0.0 /usr/lib/libeeros.so 
-$ sudo ln -s /opt/eeros/bin/libbbblueeeros.so /usr/lib/libbbblueeeros.so+$ sudo ln -s /opt/eeros/lib/libbbblueeeros.so /usr/lib/libbbblueeeros.so
 </code> </code>
 Now you should be able to run the myApp application. Now you should be able to run the myApp application.
Line 90: Line 117:
 ==== RT Kernel for Beagle Bone Blue ==== ==== RT Kernel for Beagle Bone Blue ====
 You can also run the Beagle Bone Blue with a real-time Kernel. You can also run the Beagle Bone Blue with a real-time Kernel.
-Check if there is already a RT-Kernel: (not necessary)+Check if there is already a RT-Kernel:
 <code> <code>
 uname -r uname -r
Line 115: Line 142:
   - 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).   - 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.   - 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 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
Line 124: Line 153:
 $ ./deploy.sh $ ./deploy.sh
 </code> </code>
-Else you have to change the project name in the deploy.txt file+otherwise you have to change the project name in the deploy.txt file
 <code> <code>
 install-armhf/lib/libeeros.so.0.0.0.0 install-armhf/lib/libeeros.so.0.0.0.0