Raspberry Trixie Error with Guide (Pi 5, AI Hat 2)

Hi,

It might be the case your environment contaminated from previous attempts.

Complete manual uninstall:

1) Remove packages

sudo dpkg -l | grep hailo
sudo apt purge (list from above separated with spaces)

2) Remove python packages

pip list | grep hailo
pip uninstall (list from above separated with spaces, if required add: --break-system-packages)

3) Remove previous resources

sudo rm -rf /usr/local/hailo

4) Remove package

sudo rm -rf path-to/hailo-apps

6) Delete all Hailo kernel modules: hailo*.ko and hailo*.ko.xz files

sudo find /lib/modules -type f ( -name ‘hailo*.ko’ -o -name ‘hailo*.ko.xz’ ) -print -delete
sudo rm -rf (list from above)

7) Remove any empty hailo directories left behind

sudo find /lib/modules -type d -name ‘hailo’ -print -exec rm -rf {} +
sudo rm -rf (list from above)

8) Recompute module dependency database

sudo depmod -a

9) update initramfs:

sudo update-initramfs -u

10) Remove leftovers

sudo find /etc/ | grep hailo

11) Reboot

sudo reboot now

Complete setup:

1) Enable PCIe Gen 3

sudo raspi-config → Navigate to Advanced Options → PCIe Speed

2) System preparation

sudo apt update

sudo apt full-upgrade -y

sudo rpi-eeprom-update -a

sudo reboot

3) Install DKMS

sudo apt install dkms

4) Install Hailo software infrastructure

sudo apt install hailo-h10-all

5) Install hailo-apps (demo applications)

git clone GitHub - hailo-ai/hailo-apps

cd hailo-apps

sudo ./install.sh

6) Test the installation

source setup_env.sh

hailo-detect