Skip to content

Latest commit

 

History

History
142 lines (81 loc) · 3.39 KB

raspberry-pi-install.rst

File metadata and controls

142 lines (81 loc) · 3.39 KB

Run TAPPAS on Raspberry PI 4

Overview

This guide focuses on the installation of TAPPAS on Raspberry Pi OS.

Preparing the Device

  • Device: Raspberry Pi Compute Module 4
  • Camera: Raspberry Pi Camera V2
  • Operating System: Debian GNU/Linux 11 (bullseye)
  • Kernel: Linux 5.15.32-v8+
  • Architecture: arm64

Burn Debian GNU/Linux 11 (bullseye) Image Download Raspberry Pi Imager

../resources/rpi_imager1.png

../resources/rpi_imager2.png

Install Raspberrypi kernel headers

sudo apt-get install raspberrypi-kernel-headers

TAPPAS Installation

Read through on how to pre build docker image for Raspberry Pi or installing TAPPAS manually

Note

Raspberry Pi we limit the number of cpu cores to 1 during compilation (more cores accelerates the compilation process, but may cause 'out of swap memory' issue on weak machines like Raspberry Pi)

g++-9: fatal error: Killed signal terminated

Working with HDMI display

After installing TAPPAS and HailoRT, A known issue regarding working with display connected via HDMI requires the following steps:

  1. Add the HailoRT PCIe driver to blacklist:
# open rpi blacklist configuration file with sudo privileges
sudo vim /etc/modprobe.d/raspi-blacklist.conf

# add new line to the file
blacklist hailo_pci
  1. Reboot the machine
  2. Install the module manually:
sudo modprobe hailo_pci

Note

installing the module manually is required on every boot of the raspberry-pi.

  1. Confirm that HailoRT works

Working with Raspberry PI's MIPI Camera

We tested our applications with Raspberry Pi Camera Module 2

To support TAPPAS apps, enable camera features that support v4l by doing the following steps:

  1. Configure Raspicam:
sudo wget https://datasheets.raspberrypi.com/cmio/dt-blob-cam1.bin -O /boot/dt-blob.bin
  1. Enable Legacy camera features:
sudo raspi-config

../resources/rpi1.png

../resources/rpi2.png

../resources/rpi3.png

  1. Reboot the machine
  2. Check Raspicam output:
vcgencmd get_camera

../resources/raspicam_out.png

Run TAPPAS Applications

To read further and learn more more details about each application refer to the link This section

Troubleshooting

Cannot allocate memory in static TLS block

In some sceneraios, you might face the following error:

(gst-plugin-scanner:15): GStreamer-WARNING **: 13:58:20.557: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstlibav.so': /lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block

The solution is to export an enviroment variable:

export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1