From 55489a9eda8193e04775a22671aa2a0003ef5a21 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 8 Nov 2025 06:40:38 -0700 Subject: [PATCH] Update hailo docs installation --- docs/docs/frigate/installation.md | 105 ++++++++++++++++++++++++++++-- 1 file changed, 99 insertions(+), 6 deletions(-) diff --git a/docs/docs/frigate/installation.md b/docs/docs/frigate/installation.md index ecd15ef61..cbd75e75e 100644 --- a/docs/docs/frigate/installation.md +++ b/docs/docs/frigate/installation.md @@ -106,14 +106,107 @@ The Hailo-8 and Hailo-8L AI accelerators are available in both M.2 and HAT form #### Installation -For Raspberry Pi 5 users with the AI Kit, installation is straightforward. Simply follow this [guide](https://www.raspberrypi.com/documentation/accessories/ai-kit.html#ai-kit-installation) to install the driver and software. +:::warning -For other installations, follow these steps for installation: +The Raspberry Pi kernel includes an older version of the Hailo driver that is incompatible with Frigate. You **must** follow the installation steps below to install the correct driver version, and you **must** disable the built-in kernel driver as described in step 1. -1. Install the driver from the [Hailo GitHub repository](https://github.com/hailo-ai/hailort-drivers). A convenient script for Linux is available to clone the repository, build the driver, and install it. -2. Copy or download [this script](https://github.com/blakeblackshear/frigate/blob/dev/docker/hailo8l/user_installation.sh). -3. Ensure it has execution permissions with `sudo chmod +x user_installation.sh` -4. Run the script with `./user_installation.sh` +::: + +1. **Disable the built-in Hailo driver (Raspberry Pi only)**: + + :::note + + If you are **not** using a Raspberry Pi, skip this step and proceed directly to step 2. + + ::: + + If you are using a Raspberry Pi, you need to blacklist the built-in kernel Hailo driver to prevent conflicts. First, check if the driver is currently loaded: + + ```bash + lsmod | grep hailo + ``` + + If it shows `hailo_pci`, unload it: + + ```bash + sudo rmmod hailo_pci + ``` + + Now blacklist the driver to prevent it from loading on boot: + + ```bash + echo "blacklist hailo_pci" | sudo tee /etc/modprobe.d/blacklist-hailo_pci.conf + ``` + + Update initramfs to ensure the blacklist takes effect: + + ```bash + sudo update-initramfs -u + ``` + + Reboot your Raspberry Pi: + + ```bash + sudo reboot + ``` + + After rebooting, verify the built-in driver is not loaded: + + ```bash + lsmod | grep hailo + ``` + + This command should return no results. If it still shows `hailo_pci`, the blacklist did not take effect properly and you may need to check for other Hailo packages installed via apt that are loading the driver. + +2. **Run the installation script**: + + Download the installation script: + + ```bash + wget https://raw.githubusercontent.com/blakeblackshear/frigate/dev/docker/hailo8l/user_installation.sh + ``` + + Make it executable: + + ```bash + sudo chmod +x user_installation.sh + ``` + + Run the script: + + ```bash + ./user_installation.sh + ``` + + The script will: + + - Install necessary build dependencies + - Clone and build the Hailo driver from the official repository + - Install the driver + - Download and install the required firmware + - Set up udev rules + +3. **Reboot your system**: + + After the script completes successfully, reboot to load the firmware: + + ```bash + sudo reboot + ``` + +4. **Verify the installation**: + + After rebooting, verify that the Hailo device is available: + + ```bash + ls -l /dev/hailo0 + ``` + + You should see the device listed. You can also verify the driver is loaded: + + ```bash + lsmod | grep hailo_pci + ``` #### Setup