Anyone find a solution besides switching to a Hailo8L detector? I ended up here while searching for a way to get Frigate to work with a PCIe (Pineboards AI Hat) Coral TPU (single A+E) on Linux 6.12 on the Raspberry Pi 5. Note it works perfectly on the older RPi OS with Linux 6.6 (same everything, just re-image with an older RPi OS image). With 6.12, I am able to successfully get through installing a modified gasket driver. The /dev/apex_0 device is online and ready to go. However, Frigate still throws an error when I use the Coral TPU as a detector.
What in the world else can I try to get the RPi5 working for Frigate and a PCIe Coral??
Running `uname -a`
`Linux tm-81 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux`
I have the following lines in `/boot/firmware/config.txt`:
The Frigate error follows:
What in the world else can I try to get the RPi5 working for Frigate and a PCIe Coral??
Running `uname -a`
`Linux tm-81 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux`
I have the following lines in `/boot/firmware/config.txt`:
Code:
[all]# Enable the PCIe External connector.dtparam=pciex1kernel=kernel8.img# Enable Pineboards Hat Aidtoverlay=pineboards-hat-aidtoverlay=pciex1-compat-pi5,no-mipdtoverlay=pcie-32bit-dma-pi5Code:
2025-05-05 21:59:29.515323072 Process detector:coral0:2025-05-05 21:59:29.515324405 [2025-05-05 21:59:29] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as pci2025-05-05 21:59:29.515351979 [2025-05-05 21:59:29] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found2025-05-05 21:59:29.518894156 Traceback (most recent call last):2025-05-05 21:59:29.518920489 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate2025-05-05 21:59:29.518921841 delegate = Delegate(library, options)2025-05-05 21:59:29.518923082 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__2025-05-05 21:59:29.518923934 raise ValueError(capture.message)2025-05-05 21:59:29.518924637 ValueError2025-05-05 21:59:29.5189296192025-05-05 21:59:29.518930749 During handling of the above exception, another exception occurred:2025-05-05 21:59:29.5189313602025-05-05 21:59:29.518932212 Traceback (most recent call last):2025-05-05 21:59:29.518950804 File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap2025-05-05 21:59:29.518952342 self.run()2025-05-05 21:59:29.518953434 File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run2025-05-05 21:59:29.518954323 self._target(*self._args, **self._kwargs)2025-05-05 21:59:29.518955416 File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector2025-05-05 21:59:29.518956471 object_detector = LocalObjectDetector(detector_config=detector_config)2025-05-05 21:59:29.518963156 File "/opt/frigate/frigate/object_detection.py", line 53, in __init__2025-05-05 21:59:29.518964156 self.detect_api = create_detector(detector_config)2025-05-05 21:59:29.519295050 File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector2025-05-05 21:59:29.519299383 return api(detector_config)2025-05-05 21:59:29.519300550 File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__2025-05-05 21:59:29.519301698 edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)2025-05-05 21:59:29.519302920 File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate2025-05-05 21:59:29.519303957 raise ValueError('Failed to load delegate from {}\n{}'.format(2025-05-05 21:59:29.519334772 ValueError: Failed to load delegate from libedgetpu.so.1.02025-05-05 21:59:29.519335643Statistics: Posted by glitteryio — Tue May 06, 2025 5:46 am