Coral.ai on Fedora/RH

wpiman

Getting comfortable
Jul 16, 2018
437
318
massachusetts
I moved my Google dual TPU to my Rocky Linux 9 machine. I see the TPUs just fine with lspci.

[mike@nas src]$ lspci|grep TPU
08:00.0 System peripheral: Global Unichip Corp. Coral Edge TPU
09:00.0 System peripheral: Global Unichip Corp. Coral Edge TPU

I installed the COPR driver for Fedora from here..


I rebooted and I don't see any /dev/apex devices.... Any clues? Did I miss a step.
 
  • Like
Reactions: viable885
Just in case you haven't figured it out yet - or if anyone else is stuck on the same thing - the issue is that the Coral kmods (aka gasket/apex) from gasket-dkms are not building for the kernel.


Solution is simply to switch to a kernel (I chose LTS) which is supported by gasket, and then use kernel-devel for that kernel:
Code:
sudo dnf install kernel-devel
Then reinstall gasket-dkms to induce it to rebuild. Then, try loading the modules again:
Code:
sudo modprobe gasket && sudo modprobe apex
You should then see the devices in /dev/apex.
 
Last edited:
Nice one getting the Coral drivers working on Rocky!

Frigate with the Coral TPU is highly efficient and the AI is lots of fun. But use anything else and you're going to end up with high load and a very warm server room.

It smokes my Dahua NVR-5216-XI, but I still run it on top of the NVR as I don't quite yet consider Frigate to be production ready.

I haven't tried Blue Iris yet, although I do see it mentioned here a lot!

What type of device/adapter do you use to get both TPUs? I have the same model, but can only use one TPU until my adapter arrives.