SRRC Wiki

Service Robotics Research Center
at Ulm University of Applied Sciences

User Tools

Site Tools


tutorials:pi:installation
This version is outdated by a newer approved version.DiffThis version (2019/01/24 16:51) is a draft.
Approvals: 0/1

This is an old revision of the document!


Working with the Raspberry Pi: Installation (coming soon)

This tutorial provides Raspberry Pi specific installation instructions and general remarks to work with the SmartMDSD Toolchain and the Raspberry Pi.

Basic Information

Level Experienced
Role System Builder
Assumptions Basic understanding of Raspberry Pi Operating System is beneficial, but not required
System Requirements Having a configured Raspberry Pi with an internet connection. In this tutorial, the Raspbian GNU/Linux 9 Operating System was installed on Raspberry Pi 2 Model B v1.1
You will learn How to install the SmartSoft MDSD Toolchain on a Raspberry Pi

Introduction

This tutorial will install SmartSoft on the Raspberry Pi. It is based on Raspbian Stretch with desktop.

This tutorial uses the official SmartSoft ACE installer but adapts some steps specifically for the Raspberry Pi. In summary, it differs as follows:

  • Use compiler GCC 5 instead of RaspberryPi's default compiler
  • Do not install the SmartMDSD Toolchain on the PI: the PI is only used to execute components. Development of software components on the PI will not work with the binary release of the SmartMDSD Toolchain which is made for i86 architectures.

Prior to Installation: Install GCC 5

Open a terminal and execute the following commands in order to install compatable C++ compiler and Xterm on your Raspberry Pi:

  1. sudo apt-get install xterm
  2.  
  3. sudo apt-get install gcc-5 g++-5
  4. sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
  5. sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1

Verify that your compiler is g++ version 5 by writing in terminal “g++ -v

If you see the gcc version 5.* you are ready to proceed

Installation of SmartSoft on Raspberry Pi

Create a folder in your home directory on Raspberry Pi and start the installation by writing in terminal:

mkdir ~/SOFTWARE/ 
cd ~/SOFTWARE/ 
wget https://github.com/Servicerobotics-Ulm/UtilityRepository/raw/master/smartsoft-install-updatescript.sh 
bash smartsoft-install-updatescript.sh 

In the installer menu, uncheck option 2 “Update/Install SmartMDSD Toolchain to latest version”, since the precompiled binary will not work on ARM.

Press OK. Installation may take some time. Don`t worry, it`s fine.

A few times a window may pop-up with asking you if you want to abort the session. Answer NO. To all other windows press OK, or enter Y in terminal.

Once Installation is done you should see:

Testing SmartSoft on a Raspberry Pi

Go to ~/SOFTWARE/smartsoft directory

Start the naming service using the following command:

./startSmartSoftNaming service

Once the naming service is running, start exampleComponent101 by writing in terminal:

bin/exampleComponent101

If you see this - you have successfully installed SmartSoft on your Raspberry Pi!

What do do next?

Acknowledgements

tutorials/pi/installation.1548345065.txt.gz · Last modified: 2019/01/24 16:51 by oshlapak