Problems running the hailo raspi5 examples

Hi,

My Setup:
Hailo8l based AI-HAT+
Raspi 5, 4 GB RAM
Raspberry Pi OS 64 bit, up to date (06.05.25)

Two months ago I installed the hailo rpi5 examples on my raspi and I could execute all the “hailo-rpi5-examples” without problems. Now I have the problem that only the detection_simple.py example is running sometimes.
All other examples will start (and have some output), but the preview video does not appear and the inferencing does not start.

Journalctl -f shows me the following lines which may cause the problem:

May 06 10:31:03 raspikatze kernel: hailo: get_user_pages failed with -4
May 06 10:31:03 raspikatze kernel: hailo 0001:01:00.0: failed to set sg list for user buffer -4
May 06 10:31:03 raspikatze kernel: hailo 0001:01:00.0: failed map buffer 7fff20428000

If the detection_simple.py examples runs successfully I will not see these lines in the kernel log.
I made a lot of testing on my OS installation and so I took a brand new SD card and installed a fresh copy of the latest Raspberry Pi OS 64 bit. Then:

sudo apt update
sudo apt full-upgrade
sudo apt install hailo-all
reboot
git clone GitHub - hailo-ai/hailo-rpi5-examples
./install.sh
source setup_env.sh
python basic_pipelines/detection.py

Unfortunately same behavior as before. Nothing else was installed and so it looks like some kind of driver problem.

hailortcli fw-control identify:
Executing on device: 0001: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>

sudo rpi-eeprom-update
BOOTLOADER: up to date
CURRENT: Wed 19 Mar 13:41:26 UTC 2025 (1742391686)
LATEST: Mon 10 Mar 17:10:37 UTC 2025 (1741626637)
RELEASE: default (/usr/lib/firmware/raspberrypi/bootloader-2712/default)

As this is so easy to reproduce it may affect not only me.

Any suggestions?

I experienced the same issue after the latest update. I’m not entirely sure what the exact cause is, but I suspect the new kernel version 6.12.25 might be to blame. I restored a backup image with version 6.12.20, and everything is working fine now.

This is the update history log for the change that broke the system:
Start-Date: 2025-05-04 21:23:20

Commandline: packagekit role=‘update-packages’

Requested-By: User (1000)

Install: linux-headers-6.12.25+rpt-rpi-v8:arm64 (1:6.12.25-1+rpt1, automatic), linux-headers-6.12.25+rpt-common-rpi:arm64 (1:6.12.25-1+rpt1, automatic), linux-image-6.12.25+rpt-rpi-2712:arm64 (1:6.12.25-1+rpt1, automatic), linux-image-6.12.25+rpt-rpi-v8:arm64 (1:6.12.25-1+rpt1, automatic), linux-headers-6.12.25+rpt-rpi-2712:arm64 (1:6.12.25-1+rpt1, automatic), libcamera0.5:arm64 (0.5.0+rpt20250429-1, automatic), linux-kbuild-6.12.25+rpt:arm64 (1:6.12.25-1+rpt1, automatic)

Upgrade: libpipewire-0.3-common:arm64 (1.2.7-1bpo12+1+rpt3), pipewire-pulse:arm64 (1.2.7-1bpo12+1+rpt3), pipanel:arm64 (1:1.52, 1:1.53), libspa-0.2-libcamera:arm64 (1.2.7-1bpo12+1+rpt3), openjdk-17-jre:arm64 (17.0.14+7-1deb12u1), libpisp1:arm64 (1.1.0-1, 1.2.1-1), linux-headers-rpi-v8:arm64 (1:6.12.20-1+rpt1bpo12+1+rpt2, 1.2.7-1bpo12+1, 1:6.12.25-1+rpt1), libcamera-ipa:arm64 (0.4.0+rpt20250213-1, 0.5.0+rpt20250429-1), linux-image-rpi-2712:arm64 (1:6.12.20-1+rpt1bpo12+1+rpt2, 1.2.7-1bpo12+1+rpt2, 1.2.7-1bpo12+1+rpt2, 1.2.7-1bpo12+1, 1:6.12.25-1+rpt1), libspa-0.2-modules:arm64 (1.2.7-1bpo12+1+rpt3), libpipewire-0.3-modules:arm64 (1.2.7-1bpo12+1+rpt3), python3-libcamera:arm64 (0.4.0+rpt20250213-1, 0.5.0+rpt20250429-1), rpicam-apps:arm64 (1.6.0-2, 1.7.0-1), openjdk-17-jre-headless:arm64 (17.0.14+7-1deb12u1), rpicam-apps-hailo-postprocess:arm64 (1.6.0-2, 1.7.0-1), linux-libc-dev:arm64 (1:6.12.20-1+rpt1bpo12+1+rpt2, 1.2.7-1~bpo12+1+rpt3)

End-Date: 2025-05-04 21:24:54

Hmm, this looks like a real show stopper on the Raspi.
But I’m lucky, I only want to realize a hobby project, so I’ll wait for a solution before going on testing…