hailort updated to 4.20 #16349
-
Describe the problem you are havingThe hailo driver present in the official raspberry repositories has been updated to version 4.20 while the library present in the frigate -h8l images has remained at 4.19. Versionfrigate:df840b7-h8l Frigate config filetls:
enabled: true
mqtt:
enabled: true
host: 192.168.1.12
detectors:
hailo8l:
type: hailo8l
device: PCIe
model_path: /config/model_cache/h8l_cache/yolov8s.hef
model:
width: 640 ## 300
height: 640 ## 300
input_tensor: nhwc
input_pixel_format: rgb ## bgr
model_type: yolox ## null
labelmap:
0: person
1: bicycle
2: car
3: motorcycle
[...] docker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
#image: ghcr.io/blakeblackshear/frigate:0.15.0-rc2-h8l
image: ghcr.io/blakeblackshear/frigate:df840b7-h8l
shm_size: "512MB"
privileged: true
devices:
- /dev/hailo0:/dev/hailo0 # Hailo device
- /dev/video10:/dev/video10 # Video device
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- ./media:/media
- type: tmpfs # 1GB
target: /tmp/cache
tmpfs:
size: 1000000000
environment:
FRIGATE_RTSP_PASSWORD: "password"
ports:
- "5000:5000" # Frigate HTTP Web UI NON AUTENTICATO
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
- "8971:8971" # Frigate Auth Web UI
volumes:
media:
config: Relevant Frigate log outputfrigate | 2025-02-06 16:21:19.347197118 [2025-02-06 16:21:19] detector.hailo8l INFO : Starting detection process: 362
frigate | 2025-02-06 16:21:19.348812575 [2025-02-06 16:21:19] frigate.detectors.plugins.hailo8l INFO : Initializing Hailo device as PCIe
frigate | 2025-02-06 16:21:19.635375523 [2025-02-06 16:21:19] frigate.app INFO : Output process started: 378
frigate | 2025-02-06 16:21:19.647323187 [HailoRT] [error] CHECK failed - Driver version (4.20.0) is different from library version (4.19.0)
frigate | 2025-02-06 16:21:19.647505057 [HailoRT] [error] Driver version mismatch, status HAILO_INVALID_DRIVER_VERSION(76)
frigate | 2025-02-06 16:21:19.647516298 [HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)
[...]
frigate | 2025-02-06 16:21:19.700141844 Process detector:hailo8l:
frigate | 2025-02-06 16:21:19.700145955 Traceback (most recent call last):
frigate | 2025-02-06 16:21:19.700147381 File "/usr/local/lib/python3.9/dist-packages/hailo_platform/pyhailort/pyhailort.py", line 3498, in _open_vdevice
frigate | 2025-02-06 16:21:19.700148566 self._vdevice = _pyhailort.VDevice.create(self._params, device_ids)
frigate | 2025-02-06 16:21:19.700149640 hailo_platform.pyhailort._pyhailort.HailoRTStatusException: 76 Install methodDocker Compose Object DetectorOther Screenshots of the Frigate UI's System metrics pagesnot possible because the container don't start Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 60 replies
-
You will have to keep your version consistent with frigate / be aware of these changes. We aim to be consistent with the version that is included inside of HA OS |
Beta Was this translation helpful? Give feedback.
-
@clsbn Thank you for the solution to downgrade the driver, however, I'm still getting the following error when trying to start Frigate:
I'm assuming I have to downgrade the actual firmware now? I'm having trouble figuring out how to do that as the firmware-upgrade function says it has been deprecated. To clarify... ALL THREE versions have to match to get Hailo working? Firmware, PCI Driver, and Frigate Hailo version? I hope my issue is clear. Frigate and Hailo had been working perfectly until I guess my pi5 updated? |
Beta Was this translation helpful? Give feedback.
-
Same issue now the driver has been upgraded to 4.21, nearly filed a new issue. I will downgrade. wish the docs said what version to dowload... |
Beta Was this translation helpful? Give feedback.
-
Maybe a dumb question on this topic: Are @clsbn 's fix with @DarkHorseDynamo 's addition still needed after having updated frigate to 0.16? For some reason I can't get my hailo8l to work after having updated to 0.16, even though the documentation mentions, that "The Hailo driver and firmware has been updated to 4.21.0. The standard Docker image now provides Hailo support." Can someone explain what this means? Currently I'm getting the following error:
|
Beta Was this translation helpful? Give feedback.
-
I dumped the card and started from scratch. This is definitely my problem in the user_installation script. I found a link on Google to it as well but it that discussion was deleted.
And this is the result after running user_installation on a fresh install.
|
Beta Was this translation helpful? Give feedback.
-
Is this a kernel issue maybe then, I presume this is the main problem? E: Unable to locate package linux-modules-extra-6.12.25+rpt-rpi-2712 |
Beta Was this translation helpful? Give feedback.
-
This post helps, just change the 4.19 to 4.21. |
Beta Was this translation helpful? Give feedback.
-
Maybe it's just me, but I don't get it to work. I install the driver via When I then use
When I then download 4.21 from the hailo developer zone I get the following error:
|
Beta Was this translation helpful? Give feedback.
Hi, unfortunately, with the instructions provided to install the correct driver I was unable to resolve the issue.
I managed to solve using the following commands.
I started from a freshly flashed version of RaspbianOS 64 bit on Raspberry pi 5 (8GB Ram) and hailo 8L on Pci express.
I think this solution may be of interest to other users in this situation and the good thing is that you can update the entire system and then roll back only the hailo_pci driver to version 4.19, making it compatible with the version present in the frigate docker image. The downside is that with each kernel update you will have to redo the compilation, or not update the kernel.
I suggest that If in the docker i…