Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TPU is no longer available - '/dev/apex_0': No such file or directory #820

Open
luxapana opened this issue Jan 17, 2024 · 8 comments
Open
Labels
Hardware:Mini PCIe Coral Mini PCIe Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug

Comments

@luxapana
Copy link

luxapana commented Jan 17, 2024

Description

I installed tpu driver in to a fresh ubuntu installation by following instruction here: https://coral.ai/docs/m2/get-started/#2a-on-linux

Everything worked as expected and then used the TPU with Frigate CCTV for detection tasks with zero issues for few days. Today, with no apparent reason Frigate started to complain. Figured out that the command 'ls /dev/apex_0' returns ls: cannot access '/dev/apex_0': No such file or directory.

Outputs of few more commands are given below.

during this time I did not do any changes to the system, rather just observing how frigate does object detection with TPU - which worked perfectly. Only thing that happened may be that laptop abruptly shutdown due to a power failure (This has no battery).

Both gasket-dkms and libedgetpu1-std are already installed.
appex group exists and my user is part of that group.

Appreciate some help to diagnose this further.

Thank you.

uname -a out:
Linux cctvserverlap 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

lspci -nn | grep 089a:
12:00.0 System peripheral [0880]: Global Unichip Corp. Coral Edge TPU [1ac1:089a]

modinfo gasket:
modinfo: ERROR: Module gasket not found.

modinfo apex:
modinfo: ERROR: Module apex not found.

Click to expand!

Issue Type

Bug

Operating System

Ubuntu

Coral Device

Mini PCIe

Other Devices

No response

Programming Language

No response

Relevant Log Output

No response

@google-coral-bot google-coral-bot bot added Hardware:Mini PCIe Coral Mini PCIe Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug labels Jan 17, 2024
@rbnswartz
Copy link

I've run into the same issue. Maybe a problem with a recent kernel update?

@libussa
Copy link

libussa commented Jan 24, 2024

definitely a kernel version issue. I had the issue after upgrading to 6.5.0-14, went back to 6.2.0-39 and it's working fine

@keptin
Copy link

keptin commented Jan 25, 2024

I'm also in this boat. Ubuntu 22.04 w/ Frigate NVR running in docker-compose flawlessly for over a year and suddenly throwing errors related to the TPU not being found at pcie:0 in the config as of a week ago maybe.

Using the grub menu to boot from 6.2.0-39 did not fix the issue. ls /dev/apex_0 is still returning a no directory error. lspci -nn | grep 089a: returns the device is detected.

Anything else I can try?

@feranick
Copy link

Installing gasket-dkms fails on kernel 6.5, which appears no longer supported. Log of the apt install gasket-dkms attached.

log.txt

@feranick
Copy link

Basically, edgeTPU is no longer supported, with outdated drivers.

@feranick
Copy link

Actually, gasket-dkms is open-source and support for kernel 6.4+ has been added. One can recompile gasket-dkms from the source below.

https://github.com/google/gasket-driver

@keptin
Copy link

keptin commented Jan 30, 2024

I was in this same boat, with a Coral TPU running Frigate NVR on Ubuntu 22.04.

This thread helped me solve it: #808

@luxapana
Copy link
Author

luxapana commented Feb 1, 2024

These instructions worked for me to rebuild the driver:
#808 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware:Mini PCIe Coral Mini PCIe Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug
Projects
None yet
Development

No branches or pull requests

5 participants