Getting Started

This section will teach you how to set up a Raspberry Pi 5 with the Hailo-8L AI accelerator.

What you need

Hardware:

We used a Raspberry Pi 5 model with the official active cooler (optional: Cool Pi heatsink) and a 27W USB-C power supply. We recommend using the official USB-C power supply to ensure that the motherboard can provide sufficient power to the M.2 HAT.

image-20240809160415806

Raspberry Pi M.2 M-Key HAT can be used with Hailo-8L M.2 key M or B+M (also supports Hailo-8), wiring diagram with Raspberry Pi 5.

The pcle end of the connection cable is connected to the m.2HAT.

image-20240820182132252

The rpi5 end of the connection cable is connected to the interface of the Raspberry Pi 5.

image-20240820182342940

For CSI camera connection, please refer to the Raspberry Pi 5 camera case.

Software:

Note: The SD card of the Raspberry Pi 5 needs to contain a bootable image. You can refer to the image burning in the Raspberry Pi 5 tutorial we provided

The interface that appears after the boot is successful

image-20240809163326019

Update the system

Note: (The following steps are only required for DIY in your own environment. If you use the image we provide directly, you do not need to rebuild it)

image-20240809163547389

This will update your system to the latest Raspberry Pi kernel, which includes Hailo driver support.

Set PCIe to Gen3

To achieve optimal performance of the Hailo device, it is necessary to set PCIe to Gen3. While using Gen2 is an option, it will result in reduced performance.

Open the Raspberry Pi Configuration Tool:

image-20240809163710629

image-20240809163742441

image-20240809163800234

image-20240809163844925

Select option 6 Advanced options and then select option A8 PCIe speed. Select "Yes" to enable PCIe Gen 3 mode. Click "Finish" to exit.

Install hailo software

Install all necessary software to make the Raspberry Pi AI Kit work properly. To do this, run the following command from a terminal window:

The following picture shows that the installation has been successful

image-20240809164204638

This will install the following software components:

Restart your Raspberry Pi.

Test TAPPAS Core installation by running the following command:

Hailotools:

Expected Result:

image-20240809164623921

Hailonet:

Expected Result:

image-20240809164750292

If found or not, try to delete GStreamer registry:hailo``hailotools

Known Issues

The following issues should be handled by the TAPPAS Core installation deb, but if you encounter them you can fix them manually.

PCIe Page Size Issues

Some hosts do not support certain PCIe descriptor page sizes. If you receive an error like this:

Make sure that /etc/modprobe.d/hailo_pci.conf exists and contains the following line:

Check the configuration:

Unable to allocate memory in static TLS block

In some cases (especially aarch64), you may encounter the following error, which prevents some GStreamer plugins from loading correctly. The error message is:

This should be fixed by adding the following to your file: .bashrc

If you have already encountered this error, you can fix it by running the following command: