Orangepi 5plus+hailo8

hello everyone :slight_smile:
I am using an Orange Pi 5 Plus with Focal and kernel version 5.10.100. After installing linux-headers and the Hailo driver, when I input lspci, the device is detected. Furthermore, after rebooting and running hailortcli scan, the device ID is visible. However, after rebooting and scanning again, the device can no longer be detected. The logs show the following error. How can I resolve this?

What I mean is that the device’s state is different each time it restarts. Sometimes the device can load the firmware normally, but other times it fails to load the firmware properly.

Hey @FANpa

The Hailo PCIe device on your Orange Pi 5 Plus is being inconsistently detected after system reboots. This typically happens due to driver issues, firmware problems, or power management conflicts.

Potential Solutions

1. Verify PCIe Driver Status

First, check if your drivers are properly installed and loaded:

# Check device detection
lspci | grep Hailo

# View driver messages
dmesg | grep hailo

# Manually reload driver if needed
sudo modprobe hailo_pci
sudo udevadm control --reload-rules && sudo udevadm trigger

2. Check Firmware Installation

# Verify firmware exists
ls /lib/firmware/hailo/hailo8_fw.bin

3. Adjust Power Settings

# Disable PCIe power management
sudo bash -c 'echo "performance" > /sys/module/pcie_aspm/parameters/policy'
1 Like

Hi @omria, thank you for your reply. After receiving your message, I followed your instructions. When I booted up the device and couldn’t detect Hailo, I took the following actions:


I want to remind you again that the phenomenon is different each time the device starts up. Sometimes it can detect the device as shown in the picture below, and sometimes it cannot detect it.

Hey @FANpa,

Let’s try troubleshooting the firmware and configuration files first:

  1. Check that these files exist in /lib/firmware/hailo/ with correct permissions:
    • hailo8_fw.bin
    • hailo8_board_cfg.bin
    • hailo8_fw_cfg.bin

Run this command to set proper permissions:

sudo chmod 644 /lib/firmware/hailo/hailo8_*.bin

If this doesn’t resolve the issue, we can try:

  1. Reinstalling the Hailo software
  2. Could you share the installation logs as text (not screenshots) afterward?

Note: Inconsistent detection can sometimes be caused by corrupted or mismatched firmware files, so reinstalling might help.

Hey @omria
Thank you for your reminder. From now on, I will send you the logs in text . Following your suggestion, I took action, and here is the log:

orangepi@orangepi5plus:/$ ls
bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  root  run  sbin  selinux  share  srv  sys  tmp  usr  var
orangepi@orangepi5plus:/$ 
orangepi@orangepi5plus:/$ cd /lib/firmware/hailo/
orangepi@orangepi5plus:/lib/firmware/hailo$ ls
hailo8_fw.4.19.0.bin  hailo8_fw.bin
orangepi@orangepi5plus:/lib/firmware/hailo$ 
orangepi@orangepi5plus:/lib/firmware/hailo$ ls
hailo8_fw.4.19.0.bin  hailo8_fw.bin
orangepi@orangepi5plus:/lib/firmware/hailo$ 
orangepi@orangepi5plus:/lib/firmware/hailo$ 
orangepi@orangepi5plus:/lib/firmware/hailo$ sudo chmod 644 /lib/firmware/hailo/hailo8_*.bin
[sudo] password for orangepi: 
orangepi@orangepi5plus:/lib/firmware/hailo$ 
orangepi@orangepi5plus:/lib/firmware/hailo$ 


Every time I start up, regardless of whether the Hailo module can scan, the files in this path are the same as those shown in the log above. Based on the information you provided, I seem to be missing the hailo8_board_cfg.bin and hailo8_fw_cfg.bin files. How can I recover these files? How can I resolve this issue?

hey @omria
Sorry to bother you. I still haven’t solved this issue; could you please help me take another look? I would really appreciate it. Thank you very much.