[How To]: PCI Coral M2 in Truenas Scale with jlmkr #13926
JasSuri
started this conversation in
Show and tell
Replies: 1 comment
-
That was very helpful. Just a comment: the docker will not see the apex_0 however, if I swap the order around
Frigate can see both TPU without any problem |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to build a single server to act as a NAS and NVR. It led me to use Truenas Scale, as my priority was NAS.
PC Spec (HP Elitedesk G4 800 SFF):
Steps to get Coral working in Frigate:
Install jlmkr in Truenas Scale
Follow this link: https://www.youtube.com/watch?v=S0nTRvAHAP8
In the docker template file, adjust the bindings to passthrough the Coral TPU device (apex_0).
Install Coral drivers in Truenas scale
Enable dev mode
You require to enable apt in Truenas Scale to install the packages.
To install the Coral driver, follow the steps here:
https://coral.ai/docs/m2/get-started/#2a-on-linux
This seems to fail with gasket error. I found more info here to repair.
google-coral/edgetpu#808
Then check for the device
You should see something like this:
Reboot Truenas scale, and check
/dev
forapex_0
.Install Coral TPU in jlmkr
Enter docker shell
jlmkr shell docker
Follow: https://coral.ai/docs/m2/get-started/#2a-on-linux
Exit the docker shell and restart it.
Now setup Frigate in Dockage using the docker compose file, within the jlmkr docker shell. Everything should work! Incl iGPU HW Accel.
You can get into the Frigate docker container shell, and check for
/dev/apex_0
too.And moment of truth:
Beta Was this translation helpful? Give feedback.
All reactions