Frigate under EE

Hi All,
I am running EE Beta on proxmox to test before moving it to my prod box. This setup does not have NVIDIA and Coral USB that I need for Frigate. I see there is a community Frigate in catalogue for EE. Had anyone tested if GPU access and Coral work in this app with EE?

I cannot comment on Frigate, but wanted to note that EE RC1 will drop today and has additional support for docker. This may not be point-and-click, but would likely give you the tools to get it to work.

This isn’t me, but another forum user reported success with Frigate and Coral USB: TrueNAS Scale - Coral USB Accelerator with the Frigate app. It doesn’t mention nVidia, however.

The Community Frigate in DF works fine with Coral (I’m using it). I can’t see any reason why it wouldn’t work in EE. I can’t comment on nvidia.

Yes I am currently running it on Dragonfish-24.04.2.2 with Coral and Nvidia, was just wondering if with EE Nvidia access got “optimized” - I have no way of testing it on my current EE setup …

Now that EE is out and docker under the hood… will it be possible that TPU Coral M2 o PCIe will be supported?

I have a PCIe Coral and I can’t use it with frigate.

:pensive:

Hey @Emo

We have an open ask in the Feature Requests forum for the Coral M.2 TPU driver - if you want to throw a vote behind it that will help us triage the requests into priority order. :slight_smile:

Frigate chart has been updated, now we can use “Devices” inside de container, for example: mount /dev/apex/0 as /dev/apex/0 inside the container.

Anyone can try to get M2/PCIe Coral work inside frigate?

Cheers!!!

I have a truenas 24.10 build with an old TrueCharts Frigate app which I am in the process of switching to the TrueNas Frigate app. I am able to install the app but not get it to run because I have a Coral TPU.
I did follow updated instructions to build the Coral drivers which was successfull (the Truecharts app works fine), however the TrueNas app is missing the Security Context configuration section which includes Prviledged mode which would expose the Coral to the app.

Is there a way to manually edit the app to enable priviledged mode?

I can’t see any privileged mode but there is a new section called “Device” where you can link the host device “/dev/apex_0” with container device “/dev/apex_0” for a PCI passthrough.

What TrueNas version are you on? in 24.10 I dont see that section in the Frigate app settings.

Refresh Catalog (Apps → Discover Apps → Refresh Catalog)

actually im still on 24.04, so maybe that is why.

Yes, that’s for 24.10 (new Docker charts)

mapping /dev/apex_0 works with pcie Coral TPU

Trying to make my coral work with Frigate app under Scale 24.10 EE.

06:00.0 System peripheral: Global Unichip Corp. Coral Edge TPU
07:00.0 System peripheral: Global Unichip Corp. Coral Edge TPU

This is how it looks in shell. It’s a dual TPU connected on a PCI card.

What should i enter at devices in the Frigate app please ?
image

I tried /dev/apex_0 and it just fails with a message from which i can’t understand anything.
ls /dev doesn’t show apex

Thank you !

You have to install first the drivers for TPU Coral, more info here: Coral gasket dkms drivers.

After installing drivers you’ll have the /dev/apex_0 device then you can map as “Host Device” and “Container Device” as /dev/apex_0 and hopefully TPU should work.

Keep in mind: You’ll have to use dev-mode, the drivers will be removed after a Truenas Scale update, you’ll have to reinstall again and it’s not officially approved method.

1 Like

Ahhh, i was afraid that was the way… i’m not gonna get there, will stick to my USB Coral until the drivers for the PCI Coral will be available.
At my current skill level if i try to install them myself, i’ll brick the whole machine :laughing:

2 Likes

There’s an open feature request to add the drivers to the install → Coral gasket-dkms drivers - #7 by Emo

I’ve done it, it’s nothing crazy, but yeah it requires install-dev-tools and a fix for the Google instructions since those are old

Hi again,

I have noticed in the logs:

Dec 24 22:50:23 truenas kernel: usb 2-3.1: reset SuperSpeed USB device number 7 using xhci_hcd
Dec 24 22:50:23 truenas kernel: usb 2-3.1: LPM exit latency is zeroed, disabling LPM.

This is the USB Coral. Tried searching the net for this, seems it’s related to powering down the USB.
I have tried all the USB3 ports plus a PCIE USB3 card. I tried multiple USB 3 cables. No luck.
In all cases the same message shows as soon as i start Frigate.

Any thoughts please ?