This guide is based on Hailo's product pages and driver repository and on Frigate's installation and detector documentation (Frigate 0.18 docs), read on 3 December 2026.
Hailo's M.2 modules are small AI accelerators that slot into a spare M.2 socket and take object detection off your processor. Frigate's docs describe them in Raspberry Pi set-ups such as the AI Kit, but its installation docs also say both the M.2 and HAT versions "have been successfully tested on x86 platforms as well", so an ordinary desktop, mini PC or home server running Linux can use one too. This guide covers fitting the module, installing the driver and firmware with Frigate's script, checking it works and pointing Frigate at it.
If you haven't set up Frigate yet, start with our guide to setting up Frigate for local AI object detection. For other detector options, see our best AI detector hardware for Frigate.
What you need
A Hailo-8 or Hailo-8L M.2 module. Hailo lists the Hailo-8 (rated at up to 26 TOPS) in M.2 Key M, Key B+M and Key A+E versions, and the Hailo-8L (13 TOPS) in Key B+M and Key A+E. Not sure which? Our Hailo-8 vs Hailo-8L comparison explains the differences.
A free M.2 slot that matches the module's key. An M-key module needs an M-key slot (the kind used for NVMe SSDs); an A+E module suits the Wi-Fi card slot found on many motherboards and mini PCs. Hailo's pages describe the interface as PCIe Gen 3.0 with four lanes on the M-key Hailo-8 and two lanes on the other versions.
A Debian-based Linux install. Frigate's docs say it runs best with Docker on bare-metal Debian-based distributions, and that running it in a virtual machine isn't recommended.
Docker and Frigate, or a plan to install them after the driver.
Step 1: Fit the module
Shut the PC down and unplug it. Fit the Hailo module in the matching M.2 slot and secure it with the slot's screw. Hailo says the Key M and Key B+M boards are 22 x 42mm with breakable extensions to 22 x 60mm and 22 x 80mm, so you can snap the board to the length your slot expects. The Key A+E version is 22 x 30mm.
Step 2: Check Secure Boot
Frigate's installation script builds the Hailo PCIe driver from source. Its own error message lists "Key was rejected by service: Secure Boot is enabling disallowing install" as a common reason the module fails to load. If Secure Boot is on in your UEFI, either turn it off or be ready to sign the module yourself; otherwise the driver won't load.
Step 3: Run Frigate's installation script
Frigate's docs give the commands. On a PC (not a Raspberry Pi running Bookworm, which needs an extra step to disable the built-in kernel driver), download the script, make it executable and run it:
wget https://raw.githubusercontent.com/blakeblackshear/frigate/dev/docker/hailo8l/user_installation.sh
sudo chmod +x user_installation.sh
./user_installation.sh
According to Frigate's docs and the script itself, it:
installs build tools and your kernel headers (build-essential, cmake, git, wget and linux-headers for the running kernel)
clones Hailo's hailort-drivers repository at the version Frigate expects (4.21.0 in the script when we read it) and builds and installs the PCIe driver
downloads the firmware and copies it to /lib/firmware/hailo/hailo8_fw.bin
installs Hailo's udev rules
Use Frigate's script rather than grabbing Hailo's driver yourself. Hailo's driver repository says its main branch now supports only the Hailo-10 and Hailo-15 families, and that Hailo-8, Hailo-8R and Hailo-8L devices should use the separate hailo8 branch.
When the script finishes, reboot:
sudo reboot
Step 4: Check the driver and firmware
After the reboot, Frigate's docs suggest these checks:
ls -l /dev/hailo0
lsmod | grep hailo_pci
cat /sys/module/hailo_pci/version
ls -l /lib/firmware/hailo/hailo8_fw.bin
You should see a /dev/hailo0 device, the hailo_pci module loaded, a driver version number and the firmware file. If /dev/hailo0 is missing, check that the module is fully seated, that the slot is enabled in the UEFI and that Secure Boot didn't block the driver.
Fix the descriptor page size error
Frigate's docs mention one known error:
[HailoRT] [error] CHECK failed - max_desc_page_size given 16384 is bigger than hw max desc page size 4096
The fix is to force a 4096 page size and reboot:
echo 'options hailo_pci force_desc_page_size=4096' | sudo tee /etc/modprobe.d/hailo_pci.conf
sudo reboot
Step 5: Pass the device to Frigate
Add the device to your Frigate container. In docker-compose.yml:
devices:
- /dev/hailo0
If you use docker run, add --device /dev/hailo0 instead. Restart the container afterwards.
Step 6: Turn on the Hailo detector
In Frigate, go to Settings > System > Detectors and model, choose Hailo-8/Hailo-8L from the detector type list, click Add and set the device to PCIe. In YAML, the same detector looks like this:
detectors:
hailo:
type: hailo8l
device: PCIe
The detector type is hailo8l for both modules. Frigate's docs say the integration detects which Hailo chip you have and, if you don't give it a custom model, downloads a default model (YOLOv6n for both chips) from the Hailo Model Zoo on first start. The model is cached in /config/model_cache/hailo, and after that it works offline. Frigate's documented model settings for the default are a 320 x 320 input, rgb pixel format, nhwc tensor shape, int input type and the yolo-generic model type with the COCO 80-class label map.
Step 7: Check it's keeping up
Frigate shows the detector's inference speed in its system pages. Frigate's own hardware docs list about 7ms for YOLOv6n on a Hailo-8 and about 11ms on a Hailo-8L; your figure will depend on your PC and model. Frigate's detector docs advise using the largest model your hardware can run without skipping detections, which you can watch on the System > Metrics > Cameras page. For more on model choice, see our guide to the best Frigate object detection models.