Unable to install Hailort and Hailofw v4.18.0

Hi,

I am not able to update hailort to V4.18.0 on Raspberry Pi 5 however hailo-pcie-driver was updated to 4.18.0

I tried the following steps as suggested in another post.

Step1:
sudo dpkg --purge hailort-pcie-driver
sudo dpkg --purge hailo-all
sudo dpkg --purge rpicam-apps-hailo-postprocess
sudo dpkg --purge hailort
Reboot the raspeberry Pi5

Step2: dpkg --list : does not list hailort, hailofw and hailo-pcie, rightfully so.

Step3: I run the command ‘sudo apt install hailo-all’
sudo dpkg -i haiort-pcie-driver_4.18.0_all.deb
dpkg - list

I see that the hailort, hailofw are still 4.17.0 while hailo-pcie is 4.18.0

Can u tell me how do I update hailort and hailofw to V14.8.0

Hey @pk.upadhyay,

Welcome to the Hailo Community!

I understand you’re encountering an issue with the hailo-all package. The problem stems from the fact that this package hasn’t been updated to version 4.18 yet (though an update is expected soon).

To resolve this, you’ll need to take the following steps:

  1. Download HailoRT version 4.18 directly from the Hailo Developer Zone.
  2. Once downloaded, you’ll need to install it manually, following a similar process to how you installed the driver.

This manual installation of the latest HailoRT should resolve the version mismatch you’re experiencing.

If you need any further assistance with the download or installation process, please don’t hesitate to ask.

Best regards,

There is not link and website to download hailort4.18.0 deb file.

  • Visit the Hailo Developer Zone Software Downloads page: https://hailo.ai/developer-zone/software-downloads/
  • Download the following files (as shown in the screenshot):
    • The second file: This is the driver
    • The third file: This is pyHailoRT
    • The last file: This is HailoRT
  • Once downloaded, install these components manually, following a similar process to how you installed the driver initially.

This manual installation of the latest HailoRT components should resolve the version mismatch you’re experiencing with the hailo-all package.

If you need any further guidance on the installation process for these specific files, please don’t hesitate to ask.

Best regards

after installing hailoRT 4.18.0 when we run hailortcli fw-contrl identify we getting error check failed -Failed -Failed open /sys/class/hailo_chardev/hailo0/accelerator_type.

how to update hailo-fw to 4.18.0 because there is no file to download and process.

This sometimes happens because so files couldn’t be deleted.
Please check out this topic:

Hopefully this fixes the issue

I’m still getting the exact same issue on my side.

This is my dmesg output:

hailo: Init module. driver version 4.17.0
hailo 0000:01:00.0: Probing on: 1e60:2864…
hailo 0000:01:00.0: Probing: Allocate memory for device extension, 11600
hailo 0000:01:00.0: enabling device (0000 → 0002)
hailo 0000:01:00.0: Probing: Device enabled
hailo 0000:01:00.0: Probing: mapped bar 0 - 00000000421462f0 16384
hailo 0000:01:00.0: Probing: mapped bar 2 - 00000000c3b31f08 4096
hailo 0000:01:00.0: Probing: mapped bar 4 - 00000000ca37355d 16384
hailo 0000:01:00.0: Probing: Setting max_desc_page_size to 16384, (page_size=16384)
hailo 0000:01:00.0: Probing: Enabled 64 bit dma
hailo 0000:01:00.0: Probing: Using userspace allocated vdma buffers
hailo 0000:01:00.0: Disabling ASPM L0s
hailo 0000:01:00.0: Successfully disabled ASPM L0s

I’ll probably try wiping my machine and retrying, this time without installing the hailofw package from rpi. Also, I’ve scanned my entire drive, and there’s no file matching 4.17, so I can’t figure out where this 4.17 is coming from.

OK… now I’m unable to run anything.

I’ve uninstalled all the hailo packages, and reinstalled 4.17.0.
Running, for example, “hailortcli run yolov8s.hef” gives me this error:

[HailoRT] [error] CHECK failed - max_desc_page_size given 16384 is bigger than hw max desc page size 4096

I get the same error when trying to run the model from my own code.

Hi @omria,

I have just tried installing 4.18 on a clean OS install, and I get the same errors.

This was my process:

Install Raspberry Pi OS 64-bit & update packages
sudo dpkg -i hailort-pcie-driver_4.18.0_all.deb
sudo dpkg -i hailort_4.18.0_arm64.deb

Running “hailortcli scan” produces the same errors:

[HailoRT] [error] CHECK failed - Failed open /sys/class/hailo_chardev/hailo0/accelerator_type
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36) - Failed parsing device info for hailo0
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT CLI] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)

Also, this is my ‘dmesg’ output:
[ 2.990794] hailo: Init module. driver version 4.17.0
[ 2.990889] hailo 0000:01:00.0: Probing on: 1e60:2864…
[ 2.990894] hailo 0000:01:00.0: Probing: Allocate memory for device extension, 11600
[ 2.990912] hailo 0000:01:00.0: enabling device (0000 → 0002)
[ 2.990918] hailo 0000:01:00.0: Probing: Device enabled
[ 2.990937] hailo 0000:01:00.0: Probing: mapped bar 0 - 000000000cd41871 16384
[ 2.990941] hailo 0000:01:00.0: Probing: mapped bar 2 - 00000000046521d4 4096
[ 2.990945] hailo 0000:01:00.0: Probing: mapped bar 4 - 0000000061e16248 16384
[ 2.990950] hailo 0000:01:00.0: Probing: Setting max_desc_page_size to 16384, (page_size=16384)
[ 2.990958] hailo 0000:01:00.0: Probing: Enabled 64 bit dma
[ 2.990961] hailo 0000:01:00.0: Probing: Using userspace allocated vdma buffers
[ 2.990964] hailo 0000:01:00.0: Disabling ASPM L0s
[ 2.990969] hailo 0000:01:00.0: Successfully disabled ASPM L0s
[ 3.175815] hailo 0000:01:00.0: Firmware was loaded successfully
[ 3.191495] hailo 0000:01:00.0: Probing: Added board 1e60-2864, /dev/hailo0

I’m not sure if that “driver version 4.17.0” is a culprit.
Also interestingly, this is my dmesg output BEFORE installing any packages:

[ 2.978386] hailo: Init module. driver version 4.17.0
[ 2.978492] hailo 0000:01:00.0: Probing on: 1e60:2864…
[ 2.978497] hailo 0000:01:00.0: Probing: Allocate memory for device extension, 11600
[ 2.978514] hailo 0000:01:00.0: enabling device (0000 → 0002)
[ 2.978521] hailo 0000:01:00.0: Probing: Device enabled
[ 2.978543] hailo 0000:01:00.0: Probing: mapped bar 0 - 00000000c24278f5 16384
[ 2.978548] hailo 0000:01:00.0: Probing: mapped bar 2 - 00000000c9465ef4 4096
[ 2.978552] hailo 0000:01:00.0: Probing: mapped bar 4 - 00000000cee4daaf 16384
[ 2.978557] hailo 0000:01:00.0: Probing: Setting max_desc_page_size to 16384, (page_size=16384)
[ 2.978565] hailo 0000:01:00.0: Probing: Enabled 64 bit dma
[ 2.978568] hailo 0000:01:00.0: Probing: Using userspace allocated vdma buffers
[ 2.978571] hailo 0000:01:00.0: Disabling ASPM L0s
[ 2.978576] hailo 0000:01:00.0: Successfully disabled ASPM L0s
[ 2.988980] hailo 0000:01:00.0: Firmware file not found (/lib/firmware/hailo/hailo8_fw.bin), please upload the firmware manually
[ 3.005341] hailo 0000:01:00.0: Probing: Added board 1e60-2864, /dev/hailo0

Please can you try this on a Raspberry Pi 5. I’m following all the instructions here, and it seems like I’m not the only one experiencing this problem.

Still same issue i am not able to resolve this issue.

Did you execute, sudo apt update && sudo apt upgrade -y, before you tried to install the driver and hailort? Cause when I did what you did it actually worked for me:

hailortcli scan
Hailo Devices:
[-] Device: 0000:01:00.0
hailortcli fw-control identify
Executing on device: 0000:01:00.0
Identifying board
Control Protocol Version: 2
Firmware Version: 4.18.0 (release,app,extended context switch buffer)
Logger Version: 0
Board Name: Hailo-8
Device Architecture: HAILO8L
Serial Number: HLDDLBB241901341
Part Number: HM21LB1C2LAE
Product Name: HAILO-8L AI ACC M.2 B+M KEY MODULE EXT TMP

I managed to get it working. Here are my instructions, from another thread:

3 Likes

Yes, I did.

What OS version are you running?

I installed the latest Raspberry Pi OS:

6.6.31+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64

Hey, after running, ./install.sh --skip-hailort --target-platform rpi, did you encounter these warnings?

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

WARNING: Requirement gcc-9 not found.
WARNING: Requirement g++-9 not found.

@omria Hi,

I am unable to update HailoRT to version 4.18.0 on my Raspberry Pi 5, although the Hailo PCIe driver was successfully updated to version 4.18.0.

I followed these steps as suggested in another post:

Step 1:

sudo dpkg --purge hailort-pcie-driver
sudo dpkg --purge hailo-all
sudo dpkg --purge rpicam-apps-hailo-postprocess
sudo dpkg --purge hailort

Reboot the Raspberry Pi 5.

Step 2: After rebooting, I ran dpkg --list and confirmed that hailort, hailofw, and hailo-pcie were no longer listed.

Step 3: I then ran the following commands:

sudo apt install hailo-all
sudo dpkg -i hailort-pcie-driver_4.18.0_all.deb

However, after running dpkg --list, I found that hailort and hailofw were still version 4.17.0, while hailo-pcie was updated to version 4.18.0.

Could you please advise how I can update hailort and hailofw to version 4.18.0?


Error Details:

When I try to run the face recognition script from TAPPAS, I get the following warning:

trinity@raspberrypi:~/tappas/apps/h8/gstreamer/general/face_recognition $ ./face_recognition.sh 
WARN: HailoRT version is 4.17, expected to be 4.18 (version was extracted using the following command: 'hailortcli fw-control identify')

Could you please provide a link to update HailoRT version 4.18.0 or provide the steps to update it?

1 Like

@vinaygouda.ttssl
Re-execute Step 1 and Step 2.

At Step 3 DON’T execute this

The one from apt contains the 4.17 hailort.

Instead:
Go to https://hailo.ai/developer-zone/software-downloads/ and download: HailoRT – Ubuntu package (deb) for arm64 and:

sudo dpkg --install hailort_4.18.0_arm64.deb
sudo dpkg --install hailort-pcie-driver_4.18.0_all.deb
1 Like

I have executed step 1 sudo dpkg --purge hailort-pcie-driver but it show hailort-pcie-driver is not installed

What I am suggesting is to start clean and install the packages provided in the link above. Don’t install them from the APT repository. That worked for me.

trinity@raspberrypi:~ $ hailortcli fw-control identify
[HailoRT] [warning] FW is not loaded to the device. Please load FW before using the device.
Executing on device: 0000:01:00.0
[HailoRT] [error] CHECK failed - Failed in fw_control, errno:19
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_FW_CONTROL_FAILURE(18) - Failed to send fw control
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_FW_CONTROL_FAILURE(18)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_FW_CONTROL_FAILURE(18)
[HailoRT CLI] [error] CHECK_SUCCESS failed with status=HAILO_FW_CONTROL_FAILURE(18) - Failed identify
Failed to execute on device: 0000:01:00.0. status= HAILO_FW_CONTROL_FAILURE(18)

plz suggest solutions