tutorials:pi:installation
Differences
This shows you the differences between two versions of the page.
— | tutorials:pi:installation [2022/12/23 11:06] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Working with the Raspberry Pi: Installation ====== | ||
+ | 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 | ||
+ | ^ System Requirements | ||
+ | ^ You will learn | How to install the SmartMDSD Toolchain on a Raspberry Pi | | ||
+ | |||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | This tutorial will install SmartSoft on the RaspberryPi. The installation is based on [[https:// | ||
+ | |||
+ | This tutorial uses the official [[installer: | ||
+ | |||
+ | |||
+ | * **[Only for Raspbian v9]** Use compiler GCC 5 instead of RaspberryPi' | ||
+ | * Do not install the SmartMDSD Toolchain on the PI: the PI is only used to execute components. | ||
+ | |||
+ | Note: Development of software components on the PI will not work with the binary release of the SmartMDSD Toolchain as they are compiled for i86 architectures, | ||
+ | |||
+ | ===== Install Compiler | ||
+ | //Skipp this section for newer Raspbian versions, default compiler is working fine!// | ||
+ | |||
+ | Before we install SmartSoft, open a terminal and execute the following commands in order to install a compatible C++ compiler and Xterm on your Raspberry Pi: | ||
+ | |||
+ | <code bash [enable_line_numbers=" | ||
+ | sudo apt-get install xterm | ||
+ | |||
+ | sudo apt-get install gcc-5 g++-5 | ||
+ | sudo update-alternatives --install / | ||
+ | sudo update-alternatives --install / | ||
+ | </ | ||
+ | |||
+ | 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 a terminal: | ||
+ | |||
+ | < | ||
+ | mkdir ~/ | ||
+ | cd ~/ | ||
+ | wget https:// | ||
+ | bash smartsoft-install-updatescript.sh | ||
+ | </ | ||
+ | |||
+ | In the installer menu, uncheck option 2 " | ||
+ | Toolchain to latest version**", | ||
+ | on ARM. Press ' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | A similarly looking window will pop up. In the **Install ACE/ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | The installation will take some time. | ||
+ | |||
+ | The support for Raspberry Pi is experimental. Some software components are not going to compile on the RaspberryPi. If this is the case, do not abort the script, but choose to proceed in any error message: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | If you see the following selected line, your installation is complete: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
+ | ===== Testing SmartSoft on a Raspberry Pi ===== | ||
+ | |||
+ | Go to **~/ | ||
+ | |||
+ | Start the naming service using the following command: | ||
+ | |||
+ | < | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | Once the naming service is running, start exampleComponent101 by writing in terminal: | ||
+ | |||
+ | < | ||
+ | | ||
+ | </ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | If you see this, you have successfully installed SmartSoft on your Raspberry Pi! | ||
+ | |||
+ | ===== What do do next? ===== | ||
+ | |||
+ | Now you can proceed with tutorial [[tutorials: | ||
+ | ===== Acknowledgements ===== | ||
+ | |||
+ | This tutorial was written by Oleksandr Shlapak. | ||
+ | |||
+ | {{ : | ||
+ | {{ : |
tutorials/pi/installation.txt · Last modified: 2022/12/23 11:06 by 127.0.0.1