Skip to content
Snippets Groups Projects

L2SDP-483, add info file for setting up raspberrypi

Merged L2SDP-483, add info file for setting up raspberrypi
Merged Pieter Donker requested to merge L2SDP-483 into master
1 file
+ 106
0
Compare changes
  • Side-by-side
  • Inline
+ 106
0
#### Setting up Raspberrypi-4 for running and developing the sdp translator (sdptr)
##### Install raspbian os on a SDcard.
Download Raspberry Pi Imager for your operating system
Linux: https://downloads.raspberrypi.org/imager/imager_latest_amd64.deb
Windows: https://downloads.raspberrypi.org/imager/imager_latest.exe
macOS: https://downloads.raspberrypi.org/imager/imager_latest.dmg
Install and run the Imager (you need a sd-card reader).
- CHOOSE OS, "Raspberry Pi OS (other)" > "Raspberry Pi OS Lite (32-bit)"
- CHOOSE STORA..., "Select SDcard"
- WRITE.
If done, add empty file SSH to root of disk to activate the ssh server.
```shell
cd [SDcard]
touch SSH
```
##### Startup and configuration.
Put the SD-card in the RaspberryPi and startup, login=pi, password=raspberry.
```shell
sudo raspi-config
```
For only running "sdptr" more is not needed.
------
##### Setup for developing sdptr.
Install missing tools/programs.
```shell
sudo apt-get install build-essential gcc pkg-config cmake autoconf automake
sudo apt-get install vim screen
```
Add a git directory.
```shell
mkdir ~/git
cd ~/git
```
##### Installation of open62541 opc-ua library.
The opc-ua library is needed by sdptr.
Get source code:
```shell
git clone https://github.com/open62541/open62541.git
cd ~/git/open62541
git submodule update --init --recursive
```
Compile and install.
```shell
mkdir ~/git/open62541/build
cd ~/git/open62541/build
cmake ..
make
sudo make install
```
##### Installation and compiling sdptr.
Install from git repository.
```shell
cd ~/git
git clone https://git.astron.nl/lofar2.0/sdptr.git
```
First time or after changing the Makefile
```shell
cd ~/git/sdptr
autoreconf -f -i
./configure
```
Compile sdptr.
```shell
cd ~/git/sdptr
make
```
##### Running sdptr.
sdptr can run without hardware connected.
```shell
cd ~/git/sdptr/src
./sdptr --configfile sdptr.conf --nodaemon --type LTS
```
Loading