Critical: HailoRT 4.20 Compatibility Issue with RPi Kernel - Temporary Fix Available

Hello Hailo Community!

We are currently aware of and working on resolving a compatibility issue between the latest RPi kernel update and HailoRT 4.20. Our team is actively collaborating with Raspberry Pi to implement a permanent fix.

Temporary Solution

Please follow these steps to resolve the issue:

Step 1: Check Your Package Versions

Run these commands to check your current package versions:

apt-cache show hailo-all
apt-cache policy hailo-tappas-core
apt-cache policy hailort
apt-cache policy hailo-dkms

Example Output

Here’s what you might see when running these commands:

hailo-all package information:

Package: hailo-all
Version: 4.20.0
Architecture: all
Maintainer: Serge Schneider <serge@raspberrypi.com>
Installed-Size: 7
Depends: hailofw (>= 4.20.0), hailort (>= 4.20.0), hailo-tappas-core (>= 3.31.0), rpicam-apps-hailo-postprocess (>= 1.6.0), python3-hailort (>= 4.20.0)
Breaks: hailo-dkms (<< 4.20.0)

Package: hailo-all
Version: 4.19.0
Architecture: all
Depends: hailofw (>= 4.19.0), hailort (>= 4.19.0), hailo-tappas-core (>= 3.30.0), rpicam-apps-hailo-postprocess (>= 1.5.3), python3-hailort (>= 4.19.0)

Package Policy Information:

hailort:
  Installed: 4.20.0-1
  Candidate: 4.20.0-1
  Version table:
 *** 4.20.0-1 500
        500 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages
     4.19.0-3 500
        500 https://extranet.raspberrypi.org/hailo bookworm/main arm64 Packages

hailo-dkms:
  Installed: (none)
  Candidate: 4.19.0-1
  Version table:
     4.19.0-1 500
        500 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages

hailo-tappas-core:
  Installed: 3.31.0-1
  Candidate: 3.31.0-1
  Version table:
 *** 3.31.0-1 500
        500 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages
     3.30.0-1 500
        500 https://extranet.raspberrypi.org/hailo bookworm/main arm64 Packages

Step 2: Apply the Fix

Option A: If hailo-all 4.19.0 is available in your package list:

sudo apt install hailo-all=4.19.0

Option B: If Option A is not available, use this alternative command:

sudo apt install hailo-tappas-core=3.30.0-1 hailo-dkms=4.19.0-1 hailort=4.19.0-3

Important Notes

  • This is a temporary solution while we work on a permanent fix
  • Choose the appropriate installation option based on your package availability
  • These steps will downgrade the affected packages to a stable, compatible version
  • The example output above shows the package versions you might encounter; your specific versions may vary

We appreciate your patience while we work on a permanent solution. We will update this post once the final fix is available.

If you encounter any issues during this process, please reply to this thread with your specific error messages and output from the verification commands.

4 Likes

Thanks a lot - it works!
Please note, if you try the new example files, you still get a Segmentation fault. With the previous example files, everything runs smoothly. (I think libyolo_hailortpp_postprocess.so seems to be the problem and has to be the older version)

thanks a lot…i spent 3 days to figure this out

Hi everyone,
Raspberry Pi has updated the package, and it should work now.
You can now update using:

sudo apt update
sudo apt full-upgrade
sudo apt install hailo-all
reboot

Update your rpi-examples Git repository if you haven’t done so yet.
If you encounter errors while trying to run the examples, please remove the virtual environment and reinstall:

deactivate
rm -rf venv_hailo_rpi5_examples/
./install.sh

Now, restart the virtual environment and run:

source setup_env.sh 
python basic_pipelines/detection.py

Note: If you performed any manual installations, you may need to remove some packages manually. Hopefully, this won’t be necessary.
Please let us know if you encounter any issues.

Sorry for the bumpy road—hope it’s smooth sailing from here! :blush:

Can I check; would I still expect this error?
I started off today with a brand new build;

dmesg | grep -i hailo
[ 2.338337] hailo: Init module. driver version 4.20.0
[ 2.338428] hailo 0000:01:00.0: Probing on: 1e60:2864…
[ 2.338432] hailo 0000:01:00.0: Probing: Allocate memory for device extension, 13184
[ 2.338450] hailo 0000:01:00.0: enabling device (0000 → 0002)
[ 2.338454] hailo 0000:01:00.0: Probing: Device enabled
[ 2.338470] hailo 0000:01:00.0: Probing: mapped bar 0 - 00000000fcbba926 16384
[ 2.338475] hailo 0000:01:00.0: Probing: mapped bar 2 - 00000000bfe2ff22 4096
[ 2.338478] hailo 0000:01:00.0: Probing: mapped bar 4 - 00000000fd109731 16384
[ 2.338481] hailo 0000:01:00.0: Probing: Force setting max_desc_page_size to 4096 (recommended value is 16384)
[ 2.338491] hailo 0000:01:00.0: Probing: Enabled 64 bit dma
[ 2.338493] hailo 0000:01:00.0: Probing: Using userspace allocated vdma buffers
[ 2.338496] hailo 0000:01:00.0: Disabling ASPM L0s
[ 2.338499] hailo 0000:01:00.0: Successfully disabled ASPM L0s
[ 2.338584] hailo 0000:01:00.0: Writing file hailo/hailo8_fw.bin
[ 2.486196] hailo 0000:01:00.0: File hailo/hailo8_fw.bin written successfully
[ 2.486201] hailo 0000:01:00.0: Writing file hailo/hailo8_board_cfg.bin
[ 2.486226] Failed to write file hailo/hailo8_board_cfg.bin
[ 2.486227] hailo 0000:01:00.0: File hailo/hailo8_board_cfg.bin written successfully
[ 2.486228] hailo 0000:01:00.0: Writing file hailo/hailo8_fw_cfg.bin
[ 2.486235] Failed to write file hailo/hailo8_fw_cfg.bin
[ 2.486236] hailo 0000:01:00.0: File hailo/hailo8_fw_cfg.bin written successfully
[ 2.575516] hailo 0000:01:00.0: NNC Firmware loaded successfully
[ 2.575524] hailo 0000:01:00.0: FW loaded, took 236 ms
[ 2.588260] hailo 0000:01:00.0: Probing: Added board 1e60-2864, /dev/hailo0
(venv_hailo_rpi5_examples) pi@aipi:~/hailo-rpi5-examples $

Is there an example I can run that doesnt use a camera, to test install &
hardware?
Thanks

Still no working scripts but at least python can import the module hailo system wide and in venv’s. At least ‘some’ progress for a sunday… The version does not seem to mix with the driver version though.

These are my installed packages no (sudo apt-cache policy [package name]

hailo-tappas-core:
  Installed: 3.30.0-1
  Candidate: 3.31.0-1

hailo-dkms:
  Installed: 4.19.0-1
  Candidate: 4.19.0-1

hailort:
  Installed: 4.19.0-3
  Candidate: 4.20.0-1

hailortcli fw-control identify when with the newest packages returned

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>

Running it now returns:

[HailoRT] [error] CHECK failed - Driver version (4.20.0) is different from library version (4.19.0)
[HailoRT] [error] Driver version mismatch, status HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT CLI] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)

Running ./install.sh now gives me:

Sourcing environment variables and activating virtual environment...
Setting up the environment...
Setting up the environment for hailo-tappas-core...
TAPPAS_VERSION is 3.30.0. Proceeding...
You are not in the venv_hailo_rpi5_examples virtual environment.
Virtual environment does not exist. Creating and activating...
TAPPAS_POST_PROC_DIR set to /usr/lib/aarch64-linux-gnu/hailo/tappas/post_processes
[HailoRT] [error] CHECK failed - Driver version (4.20.0) is different from library version (4.19.0)
[HailoRT] [error] Driver version mismatch, status HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT CLI] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)
Error: Device Architecture not found. Please check the connection to the device.

Hey @TJ_de_Vries,

Could you please run the following commands in sequence:

sudo apt update
sudo apt full-upgrade
sudo apt install hailo-all

This will ensure you get the latest package update properly installed.

1 Like

Can confirm that this plus a reboot did the trick. Detection, estimation and segmentation examples are working fine, thanks!

1 Like

No idea why I am getting this error msg, I decided to ignore it!! I say the message immediately afterwards saying successfully written and decided to try it regardless and whoa and behold the demos works perfectly. I still see the eror msg in dmsg but ignoring for now!!