Failed to write file hailo/hailo8_fw.bin

I tried to collect as much information as possible. Here is the context:

Related posts

Basic Linux information

lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

uname -a
Linux test1 6.6.74+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux

Hailo commands

hailortcli scan
Hailo devices not found

hailortcli fw-control identify
(no output)

General HW diagnostics Linux commands

lspci
0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 30)
0000:01:00.0 Co-processor: Hailo Technologies Ltd. Hailo-8 AI Processor (rev 01)
0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 30)
0001:01:00.0 Ethernet controller: Raspberry Pi Ltd RP1 PCIe 2.0 South Bridge

cat /etc/modules-load.d/hailo.conf
cat: /etc/modules-load.d/hailo.conf: No such file or directory

lsmod | grep -i hailo
hailo_pci             131072  0

ls /dev/hailo*
zsh: no matches found: /dev/hailo*

dmesg output:

dmesg | grep -C 10 -i hailo

[    1.925696] hailo: Init module. driver version 4.20.0
[    1.925820] hailo 0000:01:00.0: Probing on: 1e60:2864...
[    1.925824] hailo 0000:01:00.0: Probing: Allocate memory for device extension, 13184
[    1.925836] hailo 0000:01:00.0: enabling device (0000 -> 0002)
[    1.925840] hailo 0000:01:00.0: Probing: Device enabled
[    1.925853] hailo 0000:01:00.0: Probing: mapped bar 0 - 0000000048a4761c 16384
[    1.925857] hailo 0000:01:00.0: Probing: mapped bar 2 - 00000000fef57474 4096
[    1.925859] hailo 0000:01:00.0: Probing: mapped bar 4 - 0000000033fc28e4 16384
[    1.925862] hailo 0000:01:00.0: Probing: Setting max_desc_page_size to 16384, (page_size=16384)
[    1.925870] hailo 0000:01:00.0: Probing: Enabled 64 bit dma
[    1.925872] hailo 0000:01:00.0: Probing: Using userspace allocated vdma buffers
[    1.925874] hailo 0000:01:00.0: Disabling ASPM L0s
[    1.925878] hailo 0000:01:00.0: Successfully disabled ASPM L0s
[    1.925949] hailo 0000:01:00.0: Writing file hailo/hailo8_fw.bin
[    1.927530] Failed to write file hailo/hailo8_fw.bin
[    1.927538] hailo 0000:01:00.0: Failed writing NNC firmware files. err -2
[    1.928186] hailo 0000:01:00.0: FW loaded, took 2 ms
[    1.928236] hailo 0000:01:00.0: Firmware load failed
[    1.928762] hailo 0000:01:00.0: Failed activating board -2
[    1.929241] hailo: probe of 0000:01:00.0 failed with error -2
[    1.931633] rp1-firmware rp1_firmware: RP1 Firmware version eb39cfd516f8c90628aa9d91f52370aade5d0a55

Packages

apt-cache policy hailofw
hailofw:
  Installed: 4.20.0-1
  Candidate: 4.20.0-1
  Version table:
 *** 4.20.0-1 500
        500 https://archive.raspberrypi.com/debian bookworm/main arm64 Packages
        100 /var/lib/dpkg/status
     4.19.0-2 500
        500 https://archive.raspberrypi.com/debian bookworm/main arm64 Packages
        
dpkg -l | fgrep -i hailo
ii  hailo-all                             4.20.0                           all          Hailo support (metapackage)
ii  hailo-tappas-core                     3.31.0+1-1                       arm64        This package contains the core components of the Hailo Tappas platform.
ii  hailofw                               4.20.0-1                         all          Hailo firmware
ii  hailort                               4.20.0-1                         arm64        HailoRT
ii  python3-hailort                       4.20.0-1                         arm64        HailoRT Python API, which wraps the runtime library
ii  rpicam-apps-hailo-postprocess         1.6.0-2                          arm64        rpicam-apps-hailo

I hope I don’t have to compile the driver from the source as I believe I followed all the standard installation steps.

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

git clone https://github.com/hailo-ai/hailo-rpi5-examples.git
cd hailo-rpi5-examples
./install.sh

Any hints would be appreciated

Replying to myself, I just want to let you know that I completely unplugged the RPI 5, then re-plugged after some minutes and the Hailo-8 is now detected.

BTW I’m using DietPi

Hey @user144 ,

Welcome to the Hailo Community!

This issue is due to the firmware not being loaded correctly , this sometime happens on new ionstallation ( not done reboot coprrectly )

if you face this issue again you can fix it by running the following :

sudo modprobe -r hailo_pci
sudo modprobe hailo_pci

Thank you, I will try it next time.