Hailo Installation on Raspberry Pi 5 with Ubuntu 24.04

Hello Hailo Community,
I am using a Raspberry Pi 5 for my project, and my operating system is Ubuntu 24.04. I am trying to use the Hailo AI kit for AI processing, but the installation is not working properly.

I have successfully completed some installations. Below are the outputs of some commands

  1. dpkg -l | fgrep -i hailo
ii  hailort                                      4.20.0                                  arm64        HailoRT
ii  hailort-pcie-driver                          4.20.0                                  all          Hailo PCIe driver and firmware
  1. sudo dmesg | fgrep hailo
[sudo] password for ari: 
[    8.045010] hailo_pci: loading out-of-tree module taints kernel.
[    8.045025] hailo_pci: module verification failed: signature and/or required key missing - tainting kernel
[    8.058708] hailo: Init module. driver version 4.20.0
[    8.058840] hailo 0000:01:00.0: Probing on: 1e60:2864...
[    8.058845] hailo 0000:01:00.0: Probing: Allocate memory for device extension, 13184
[    8.058857] hailo 0000:01:00.0: enabling device (0000 -> 0002)
[    8.058864] hailo 0000:01:00.0: Probing: Device enabled
[    8.058883] hailo 0000:01:00.0: Probing: mapped bar 0 - 00000000b3403613 16384
[    8.058887] hailo 0000:01:00.0: Probing: mapped bar 2 - 0000000078205b27 4096
[    8.058891] hailo 0000:01:00.0: Probing: mapped bar 4 - 000000007fa11e18 16384
[    8.058896] hailo 0000:01:00.0: Probing: Setting max_desc_page_size to 4096, (page_size=4096)
[    8.058904] hailo 0000:01:00.0: Probing: Enabled 64 bit dma
[    8.058907] hailo 0000:01:00.0: Probing: Using userspace allocated vdma buffers
[    8.058912] hailo 0000:01:00.0: Disabling ASPM L0s 
[    8.058917] hailo 0000:01:00.0: Successfully disabled ASPM L0s 
[    8.059004] hailo 0000:01:00.0: Writing file hailo/hailo8_fw.bin
[    8.125454] hailo 0000:01:00.0: File hailo/hailo8_fw.bin written successfully
[    8.125463] hailo 0000:01:00.0: Writing file hailo/hailo8_board_cfg.bin
[    8.125563] Failed to write file hailo/hailo8_board_cfg.bin
[    8.125567] hailo 0000:01:00.0: File hailo/hailo8_board_cfg.bin written successfully
[    8.125569] hailo 0000:01:00.0: Writing file hailo/hailo8_fw_cfg.bin
[    8.125626] Failed to write file hailo/hailo8_fw_cfg.bin
[    8.125628] hailo 0000:01:00.0: File hailo/hailo8_fw_cfg.bin written successfully
[    8.256026] hailo 0000:01:00.0: NNC Firmware loaded successfully
[    8.256041] hailo 0000:01:00.0: FW loaded, took 197 ms
[    8.267686] hailo 0000:01:00.0: Probing: Added board 1e60-2864, /dev/hailo0
  1. ls /dev/hailo*
/dev/hailo0
  1. hailortcli
A subcommand is required
Run with --help for more information.
  1. hailocli scan
Hailo Devices:
[-] Device: 0000:01:00.0
  1. hailortcli fw-control identify
Executing on device: 0000:01:00.0
Identifying board
Control Protocol Version: 2
Firmware Version: 4.20.0 (release,app,extended context switch buffer)
Logger Version: 0
Board Name: Hailo-8
Device Architecture: HAILO8L
Serial Number: <N/A>
Part Number: <N/A>
Product Name: <N/A>

The outputs of the commands above are as shown. As far as I understand, the hailort-drivers and hailort libraries seem to have been installed successfully.

However, when I try to run the example scripts for Raspberry Pi, I get the following error:

File "/home/ari/test/hailo-rpi5-examples/basic_pipelines/detection.py", line 9, in <module>  
    from hailo_apps_infra.hailo_rpi_common import (  
ModuleNotFoundError: No module named 'hailo_apps_infra'  

I couldn’t figure out what is missing in this part.

I have completed the installations mentioned in Tappas_v3.31.0, but how can I test whether the installation was successful?

The pages I followed during the installation are as follows:

  1. opensensor README.md
  2. Ubuntu Blog
  • lspci | grep Hailo
0000:01:00.0 Co-processor: Hailo Technologies Ltd. Hailo-8 AI Processor (rev 01)
  • gst-inspect-1.0 hailo
Plugin Details:
  Name                     hailo
  Description              hailo gstreamer plugin
  Filename                 /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgsthailo.so
  Version                  1.0
  License                  unknown
  Source module            hailo
  Binary package           GStreamer
  Origin URL               http://gstreamer.net/

  hailodevicestats: hailodevicestats element
  hailonet: hailonet element
  synchailonet: sync hailonet element

  3 features:
  +-- 3 elements
  • gst-inspect-1.0 hailotools
Plugin Details:
  Name                     hailotools
  Description              hailo tools plugin
  Filename                 /opt/hailo/tappas/lib/aarch64-linux-gnu/gstreamer-1.0/libgsthailotools.so
  Version                  3.31.0
  License                  unknown
  Source module            gst-hailo-tools
  Binary package           gst-hailo-tools
  Origin URL               https://hailo.ai/

  hailoaggregator: hailoaggregator - Cascading
  hailocounter: hailocounter - postprocessing element
  hailocropper: hailocropper
  hailoexportfile: hailoexportfile - export element
  hailoexportzmq: hailoexportzmq - export element
  hailofilter: hailofilter - postprocessing element
  hailogallery: Hailo gallery element
  hailograytonv12: hailograytonv12 - postprocessing element
  hailoimportzmq: hailoimportzmq - import element
  hailomuxer: Muxer pipeline merging
  hailonv12togray: hailonv12togray - postprocessing element
  hailonvalve: HailoNValve element
  hailooverlay: hailooverlay - overlay element
  hailoroundrobin: Input Round Robin element
  hailostreamrouter: Hailo Stream Router
  hailotileaggregator: hailotileaggregator
  hailotilecropper: hailotilecropper - Tiling
  hailotracker: Hailo object tracking element

  18 features:
  +-- 18 elements
  • uname -a
Linux lectron3 6.8.0-1020-raspi #24-Ubuntu SMP PREEMPT_DYNAMIC Sun Feb 23 08:39:32 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux

Hey @serkanMz,

From what you’ve provided, the installation has worked correctly. You need to do two things:

  1. Install pyHailoRT - please download it from our https://hailo.ai/developer-zone/software-downloads/ (install it in your virtual environment)
  2. Install the hailo-rpi-examples using the ./install.sh script to fix this issue

There is another thread on the same theme;-) It’s a bit older

The biggest problem, you will run into, is that Ubuntu 24.04 is using Python 3.12. So, all the pre-build packages will not really work. You could find a PPA for Python 3.11 and that works for first tests, but eventually you will run into trouble with to different Python3 versions:-(

– Marco

Thank you for your help