How to install Hailo-8 on Orange pi 5 plus?

I am planning to purchase the Hailo-8™ M.2 2280 model and use it on my Orange Pi 5 Plus.

When I searched, there were no installation instructions for Orange Pi, so I followed the installation instructions for Raspberry Pi.

Then, I entered sudo apt update && sudo apt full-upgrade and sudo apt install hailo-all in the terminal.

Then, an error saying E: Unable to locate package hailo-all occurs and installation fails.

If you know how to install Hailo-8 on Orange Pi, I would greatly appreciate your help.

1 Like

Hey @jsbf,

“sudo apt install hailo-all” is integrated into the Raspberry Pi OS.

If you want to install the Hailo packages on Orange Pi or any other Linux-based system, you have to do it manually.

You need to install:

  1. PCIe driver
  2. HailoRT

The downloads and the guide are available here: https://hailo.ai/developer-zone/software-downloads/

If you need any further assistance or have any questions, please don’t hesitate to ask.

Thank you so much for your reply.

I proceeded with installing the PCIe driver as instructed.
However, an unknown error occurred.

-------------------Terminal------------------
sudo dpkg -i hailort-pcie-driver_4.17.0_all.deb
[sudo] password for orangepi:
Selecting previously unselected package hailort-pcie-driver.
(Reading database … 150360 files and directories currently installed.)
Preparing to unpack hailort-pcie-driver_4.17.0_all.deb …
Could not test for SecureBoot, assuming SecureBoot is disabled on this machine.
Unpacking hailort-pcie-driver (4.17.0) …
Setting up hailort-pcie-driver (4.17.0) …

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

build-essential/jammy,now 12.9ubuntu3 arm64 [installed]
Do you wish to use DKMS? [Y/n]:
Failed. Exited with status 2. See /var/log/hailort-pcie-driver.deb.log
dpkg: error processing package hailort-pcie-driver (–install):
installed hailort-pcie-driver package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
hailort-pcie-driver


I checked /var/log/hailort-pcie-drvier.deb.log.

cat /var/log/hailort-pcie-driver.deb.log
######### Tue Jul 2 06:38:19 PM KST 2024 #########
Could not test for SecureBoot, assuming SecureBoot is disabled on this machine.
######### Tue Jul 2 06:38:19 PM KST 2024 #########
/share/opt/hailo/linux/pcie /
make[1]: *** /lib/modules/5.10.110-rockchip-rk3588//build: No such file or directory. Stop.
make: *** [Makefile:110: clean] Error 2
Failed. Exited with status 2. See /var/log/hailort-pcie-driver.deb.log
Failed at 40
37 }
38
39 function compile_and_install_pcie_driver_with_dkms() {
40 make clean &>> $LOG
41 make install_dkms &>> $LOG || {
42 echo “Failed to install PCIe driver to the DKMS tree. Trying to install PCIe driver without DKMS”
43 compile_and_install_pcie_driver_without_dkms

thank you

Hey @jsbf

Run the following command then try and reinstall without DKMS

sudo dpkg --purge hailort-pcie-driver

@omria, Hi! I am trying to install hailort-pcie-driver_4.18.0_all.deb on Orange Pi 5 Plus Armbian Linux v6.1. I get the same error:
######### Чт 08 авг 2024 15:44:03 MSK #########
/share/opt/hailo/linux/pcie /
make[1]: *** /lib/modules/6.1.75-vendor-rk35xx//build: No such file or directory. Stop.
make: *** [Makefile:110: clean] Error 2
Failed. Exited with status 2. See /var/log/hailort-pcie-driver.deb.log
Failed at 48
45 }
46
47 function compile_and_install_pcie_driver_without_dkms() {
48 make clean &>> $LOG
49 make all &>> $LOG
50 make install &>> $LOG
51 }

If you know how to fix it, I would greatly appreciate your help.

Can you try and install DKMS on it and then re install the driver , and make sure that secure-boot is disabled

I tried to reinstall DKMS and after it reinstall the pci driver. I got the same error with and without DKMS

The solution is to use Armbian Linux v5.10. Hailort-pcie-driver 4.18.0 doesn`t work with Armbian Linux v6.1 now.

Could you please share the link to the OS that was used to resolve the issue?

thank you

@jsbf I downloaded Armbian_24.2.3_Orangepi5-plus_jammy_legacy_5.10.160_minimal.img.xz here:
Index of /archive/orangepi5-plus/archive/

This error is because linux-headers is not installed, and there is one under/optHis installation package, you can try to install it using sudo dpkg --install *****.deb