[Detector Support]: Hailo M.2 on pcie3 double HAT. #21631
Describe the problem you are havingI have a hardtime to run HAILO on RPI5 with Home Assistant OS. Anyway even when trying to follow - disabling the driver, and loading the new one, I alread fail at the step no.:4 : update-initramfs -u The HAILO is not detected, even cannot see it in /system/hardware. When I boot to raspberry OS, instead of HA OS, i can see the HAILO by lspci. So the hardware is not bricked. Version0.16.3-9034454 Frigate config fileMqtt:
host: core-mosquitto
user: mqttusr
password: xxx
ffmpeg:
hwaccel_args: preset-rpi-64-h264
database:
path: /config/frigate.db
live:
height: 1080
birdseye:
width: 1920
height: 1080
# Optional: Encoding quality of the mpeg1 feed (default: shown below)
# 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
quality: 5
# Optional: Mode of the view. Available options are: objects, motion, and continuous
# objects - cameras are included if they have had a tracked object within the last 30 seconds
# motion - cameras are included if motion was detected in the last 30 seconds
# continuous - all cameras are included always
mode: motion
cameras:
CAM01:
ffmpeg:
hwaccel_args: preset-rpi-64-h264
inputs:
- path: rtsp://admin:xxx@172.27.190.220:554/h264Preview_01_sub
roles:
- detect
- path: rtsp://admin:xxxx@172.27.190.220:554/h265Preview_01_main
roles:
- record
- audio
zones:
vrata:
coordinates: 0.519,0,0.468,0.302,0,0.45,0,0
objects:
- person
- bear
inertia: 3
loitering_time: 0
dilna:
coordinates: 0,0.453,0.469,0.306,0.516,0,1,0.2,1,1,0,1
objects:
- person
- bear
inertia: 3
loitering_time: 0
snapshots:
required_zones:
- dilna
- vrata
motion:
threshold: 30
contour_area: 10
improve_contrast: Yes
CAM02:
ffmpeg:
hwaccel_args: preset-rpi-64-h264
inputs:
- path: rtsp://admin:xxxxx@172.27.190.222:554/h264Preview_01_sub
roles:
- detect
- path: rtsp://admin:XX@172.27.190.222:554/h265Preview_01_main
roles:
- record
- audio
zones:
vjezd:
coordinates: 0,0.533,0.223,0.401,0.169,0.31,0.114,0.213,0,0.268
objects:
- person
- car
- bicycle
- motorcycle
- cat
- dog
- horse
- sheep
- cow
- bear
inertia: 3
loitering_time: 0
nadvori:
coordinates:
0.228,0.41,0,0.541,0,1,0.448,1,0.706,0.624,0.739,0.392,0.682,0.352,0.524,0.244
objects:
- person
- bicycle
- motorcycle
- cat
- dog
- horse
- sheep
- cow
- bear
inertia: 3
loitering_time: 0
Sousedi:
coordinates: 0.005,0.087,0.105,0.099,0.104,0.211,0,0.253
loitering_time: 0
inertia: 3
objects:
- car
- motorcycle
- person
- bicycle
Vchod_do_dilny:
coordinates:
0.839,0.293,0.988,0.407,0.84,0.99,0.454,1,0.713,0.624,0.753,0.337
loitering_time: 0
objects: person
snapshots:
required_zones:
- vjezd
- nadvori
motion:
threshold: 30
contour_area: 10
improve_contrast: true
CAM03:
ffmpeg:
hwaccel_args: preset-rpi-64-h264
inputs:
- path: rtsp://admin:xxxx@172.27.190.223:554/h264Preview_01_sub
roles:
- detect
- path: rtsp://admin:xxxx@172.27.190.223:554/h265Preview_01_main
roles:
- record
- audio
zones:
Vstup_do_dilny_vzadu:
coordinates: 0.535,0.976,0.509,0.693,0.723,0.645,0.766,0.933
loitering_time: 0
objects:
- person
- dog
Prostor_pred_dilnou_vzadu:
coordinates:
0.527,0.964,0,0.949,0.017,0.027,0.859,0.006,0.88,0.316,0.942,0.849,0.773,0.925,0.725,0.638,0.5,0.681
loitering_time: 0
objects:
- person
- dog
- motorcycle
snapshots:
required_zones:
- dilna
- vrata
motion:
threshold: 30
contour_area: 10
improve_contrast: Yes
objects:
track:
- person
- car
- bicycle
- motorcycle
- cat
- dog
- bird
- horse
- sheep
- cow
- bear
record:
enabled: true
retain:
days: 5
mode: motion
alerts:
retain:
days: 14
detections:
retain:
days: 14
snapshots:
enabled: true
bounding_box: true
detectors:
hailo:
type: hailo8l
device: PCIe
model:
width: 320
height: 320
input_tensor: nhwc
input_pixel_format: rgb
input_dtype: int
model_type: yolo-generic
labelmap_path: /labelmap/coco-80.txt
go2rtc:
api:
listen: 127.0.0.1:1984 # default ":1984", HTTP API port ("" - disabled)
base_path: '' # default "", API prefix for serve on suburl (/api => /rtc/api)
origin: '' # default "", allow CORS requests (only * supported)
rtsp:
listen: :8554 # RTSP Server TCP port, default - 8554
webrtc:
# listen: ":8362" # address of your local server (TCP)
# listen: "192.168.123.6:8555" # address of your local server (TCP)-
candidates:
- 172.27.190.21:8555
streams:
cam01rtc: # camera1, tady se definuji kamery, je potreba si zjistit jaka je adresa streamu, pokud je to nastavene spravne, mezi HA a kamerou jede jen jeden stream i kdyz frigate treba nahrava a ty koukas na aktualni obrazdela to tzv. restream
- rtsp://admin:xxxx@172.27.190.220:554/h265Preview_01_main
- ffmpeg:cam01rtc#audio=aac
cam02rtc:
- rtsp://admin:xxxx@172.27.190.222:554/h265Preview_01_main
- ffmpeg:cam02rtc#audio=aac
cam03rtc:
- rtsp://admin:xxx@172.27.190.223:554/h265Preview_01_main
- ffmpeg:cam03rtc#audio=aac
version: 0.16-0
detect:
enabled: truedocker-compose file or Docker CLI commandxxRelevant Frigate log output026-01-13 09:00:03.445663934 [2026-01-13 10:00:03] frigate.detectors.plugins.hailo8l ERROR : Inference error: Could not determine Hailo architecture.
2026-01-13 09:00:03.536847542 [2026-01-13 10:00:03] frigate.app INFO : Camera processor started for CAM01: 489
2026-01-13 09:00:03.571816931 [2026-01-13 10:00:03] frigate.app INFO : Camera processor started for CAM02: 500
2026-01-13 09:00:03.572352525 [2026-01-13 10:00:03] frigate.app INFO : Camera processor started for CAM03: 505
2026-01-13 09:00:03.619219729 [2026-01-13 10:00:03] frigate.app INFO : Capture process started for CAM01: 524
2026-01-13 09:00:03.678835972 [2026-01-13 10:00:03] frigate.app INFO : Capture process started for CAM02: 526
2026-01-13 09:00:03.680747826 [2026-01-13 10:00:03] frigate.app INFO : Capture process started for CAM03: 547
2026-01-13 09:00:04.243532786 [2026-01-13 10:00:04] frigate.api.fastapi_app INFO : Starting FastAPI app
2026-01-13 09:00:04.478638225 [HailoRT] [error] CHECK failed - Failed to create vdevice. there are not enough free devices. requested: 1, found: 0
2026-01-13 09:00:04.487527090 [HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_OUT_OF_PHYSICAL_DEVICES(74)
2026-01-13 09:00:04.487533479 [HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_OUT_OF_PHYSICAL_DEVICES(74)
2026-01-13 09:00:04.487535535 [HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_OUT_OF_PHYSICAL_DEVICES(74)
2026-01-13 09:00:04.487538776 [HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_OUT_OF_PHYSICAL_DEVICES(74)
2026-01-13 09:00:04.497723143 Process detector:hailo:
2026-01-13 09:00:04.497728551 Traceback (most recent call last):
2026-01-13 09:00:04.497730921 File "/usr/local/lib/python3.11/dist-packages/hailo_platform/pyhailort/pyhailort.py", line 3540, in _open_vdevice
2026-01-13 09:00:04.497732514 self._vdevice = _pyhailort.VDevice.create(self._params, device_ids)
2026-01-13 09:00:04.497734088 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-01-13 09:00:04.497735643 hailo_platform.pyhailort._pyhailort.HailoRTStatusException: 74
2026-01-13 09:00:04.497738236
2026-01-13 09:00:04.497739829 The above exception was the direct cause of the following exception:
2026-01-13 09:00:04.497776514
2026-01-13 09:00:04.497777977 Traceback (most recent call last):
2026-01-13 09:00:04.497779847 File "/usr/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
2026-01-13 09:00:04.497814069 self.run()
2026-01-13 09:00:04.497816051 File "/opt/frigate/frigate/util/process.py", line 41, in run_wrapper
2026-01-13 09:00:04.497817366 return run(*args, **kwargs)
2026-01-13 09:00:04.497818495 ^^^^^^^^^^^^^^^^^^^^
2026-01-13 09:00:04.497820051 File "/usr/lib/python3.11/multiprocessing/process.py", line 108, in run
2026-01-13 09:00:04.497837310 self._target(*self._args, **self._kwargs)
2026-01-13 09:00:04.497839162 File "/opt/frigate/frigate/object_detection/base.py", line 112, in run_detector
2026-01-13 09:00:04.497840884 object_detector = LocalObjectDetector(detector_config=detector_config)
2026-01-13 09:00:04.497842495 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-01-13 09:00:04.497844143 File "/opt/frigate/frigate/object_detection/base.py", line 57, in __init__
2026-01-13 09:00:04.497845551 self.detect_api = create_detector(detector_config)
2026-01-13 09:00:04.497846903 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-01-13 09:00:04.497863625 File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2026-01-13 09:00:04.497864903 return api(detector_config)
2026-01-13 09:00:04.497866014 ^^^^^^^^^^^^^^^^^^^^
2026-01-13 09:00:04.497867625 File "/opt/frigate/frigate/detectors/plugins/hailo8l.py", line 256, in __init__
2026-01-13 09:00:04.497869144 self.inference_engine = HailoAsyncInference(
2026-01-13 09:00:04.497870421 ^^^^^^^^^^^^^^^^^^^^
2026-01-13 09:00:04.497872051 File "/opt/frigate/frigate/detectors/plugins/hailo8l.py", line 113, in __init__
2026-01-13 09:00:04.497873162 self.target = VDevice(params)
2026-01-13 09:00:04.497892069 ^^^^^^^^^^^^^^^
2026-01-13 09:00:04.497894218 File "/usr/local/lib/python3.11/dist-packages/hailo_platform/pyhailort/pyhailort.py", line 3533, in __init__
2026-01-13 09:00:04.497895310 self._open_vdevice()
2026-01-13 09:00:04.497897329 File "/usr/local/lib/python3.11/dist-packages/hailo_platform/pyhailort/pyhailort.py", line 3538, in _open_vdevice
2026-01-13 09:00:04.497898551 with ExceptionWrapper():
2026-01-13 09:00:04.497900495 File "/usr/local/lib/python3.11/dist-packages/hailo_platform/pyhailort/pyhailort.py", line 122, in __exit__
2026-01-13 09:00:04.497901792 self._raise_indicative_status_exception(value)
2026-01-13 09:00:04.497904014 File "/usr/local/lib/python3.11/dist-packages/hailo_platform/pyhailort/pyhailort.py", line 172, in _raise_indicative_status_exception
2026-01-13 09:00:04.497913921 raise self.create_exception_from_status(error_code) from libhailort_exception
2026-01-13 09:00:04.497916088 hailo_platform.pyhailort.pyhailort.HailoRTException: libhailort failed with error: 74 (HAILO_OUT_OF_PHYSICAL_DEVICES)
2026-01-13 09:00:04.547521221 [2026-01-13 10:00:04] frigate.detectors.plugins.hailo8l ERROR : [INIT] Failed to initialize HailoAsyncInference: libhailort failed with error: 74 (HAILO_OUT_OF_PHYSICAL_DEVICES)
2026-01-13 09:00:04.926513142 [2026-01-13 10:00:04] frigate.api.fastapi_app INFO : FastAPI started
2026-01-13 09:00:24.218258160 [2026-01-13 10:00:24] frigate.watchdog INFO : Detection appears to have stopped. Exiting Frigate...
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service go2rtc-healthcheck: stoppingInstall methodHome Assistant Add-on Object DetectorOther Screenshots of the Frigate UI's System metrics pagesMetrics not available as Frigate due to the error wont load. Any other information that may be helpfulNo response |
Replies: 4 comments 1 reply
|
The error When using Home Assistant OS, the Hailo driver installation process differs significantly from standard Docker installations. The installation script documented in the standard installation guide is designed for standard Linux systems, not Home Assistant OS(1). Home Assistant OS needs to have Hailo driver support built into the OS itself(1). Key Points for Home Assistant OS:
Troubleshooting Steps:
detectors:
hailo:
type: hailo8l
device: PCIeThe issue is that Home Assistant OS isn't exposing the Hailo device to the Frigate container. Since the manual driver installation steps don't apply to Home Assistant OS, you'll need to ensure your Home Assistant OS version includes proper Hailo support, and you're using the correct Frigate add-on variant designed for Hailo devices(2). If you're running an older version of Home Assistant OS (below 14.0), you may need to upgrade to get Hailo support(2). 📚 Sources:
Have another question? Just tag @inkeep. |
|
You may want to check with HA OS support, as if it doesn't show up in hardware Frigate won't be able to use it |
|
It seems that there is a problem with M2 double HAT and HA OS driver as you said 👍 [core-ssh ~]$ dmesg | grep -i pcie |
|
Found a solution, maybe was clear from beginning, but Im complete amateur: to config.txt Now Hailo is working in HA OS with Frigate addon, |
Found a solution, maybe was clear from beginning, but Im complete amateur:
I had to put :
dtparam=pciex1
dtparam=pciex1_gen=3
dtoverlay=pciex1-compat-pi5,no-mip,mmio-hi
to config.txt
Now Hailo is working in HA OS with Frigate addon,