Set up Raspberry Pi

In this step, you will set up your Raspberry Pi.

If you already have a microSD card with Raspbian, Debian or Ubuntu OS installed, you can start from “Installing the libraries”.

Burning the OS to the microSD card

In this workshop, we will use Raspberry Pi OS.

Download OS image and write to microSD card

Download Raspberry Pi OS with desktop from the Raspberry Pi website.

Use a writer software such as balenaEtcher to burn the downloaded OS image to a microSD card.

Settings at OS (optional)

If you want to connect to your Raspberry Pi via SSH in the following steps, create an empty file named ssh in the root directory of the microSD card after the writing process.

Also, if you want to connect your Raspberry Pi via wireless LAN, place the wpa_supplicant.conf file in the root directory of the microSD card.

Example configuration of wpa_supplicant.conf

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
    ssid="Wi-Fi SSID"
    psk="Wi-Fi Passphrase"
}

Once the OS has been written, insert the microSD card into the Raspberry Pi and connect the power supply to the Raspberry Pi.

Installing the libraries

In the following steps, you will see commands to be executed in two terminals: the Raspberry Pi terminal and the terminal of the PC for operation. Be careful not to use the wrong terminal to execute the commands.

Once the Raspberry Pi has booted, you can either run a terminal on Raspberry Pi or connect to the Raspberry Pi via SSH.

All of the commands below must be executed on the Raspberry Pi. Make sure that the terminal displays something like pi@raspberrypi when you run it.

Execute the following commands to update the package list and install the libraries needed to build the SDK.

sudo apt update
sudo apt install -y automake build-essential cmake git pkg-config libgstreamer-plugins-base1.0-dev gstreamer1.0-omx-rpi

If you use Ubuntu or Debian instead of Raspberry Pi OS, please remove gstreamer1.0-omx-rpi. If you use macOS, install cmake, gstreamer and gst-plugins-base using Homebrew.


That’s all for the Raspberry Pi setup. The next step is to install the SDK.