google-coral / edgetpu

Coral issue tracker (and legacy Edge TPU API source)
https://coral.ai
Apache License 2.0
422 stars 124 forks source link

Can not install drivers on my Raspberry CompNode and the M.2 module #423

Open ghost opened 3 years ago

ghost commented 3 years ago

I would very much like to use the M.2 - module on my RaspBerry ComputeBoard.

About the commands lsmod and lspci I see the module, but when installing the two software - packages I get the following error message:

Module build for kernel 5.10.17-v8+ was skipped since the kernel headers for this kernel does not seem to be installed.

The HEADER library for this computer are installed:

apt list linux-headers* Listing... Done linux-headers-5.10.0-7-arm64/testing,now 5.10.40-1 arm64 [installed,automatic] linux-headers-5.10.0-7-armmp-lpae/testing 5.10.40-1 armhf linux-headers-5.10.0-7-armmp/testing 5.10.40-1 armhf linux-headers-5.10.0-7-cloud-arm64/testing 5.10.40-1 arm64 linux-headers-5.10.0-7-common-rt/testing,testing 5.10.40-1 all linux-headers-5.10.0-7-common/testing,testing,now 5.10.40-1 all [installed,automatic] linux-headers-5.10.0-7-rt-arm64/testing 5.10.40-1 arm64 linux-headers-5.10.0-7-rt-armmp/testing 5.10.40-1 armhf linux-headers-arm64/testing,now 5.10.40-1 arm64 [installed,automatic] linux-headers-armmp-lpae/testing 5.10.40-1 armhf linux-headers-armmp/testing 5.10.40-1 armhf linux-headers-cloud-arm64/testing 5.10.40-1 arm64 linux-headers-rt-arm64/testing 5.10.40-1 arm64 linux-headers-rt-armmp/testing 5.10.40-1 armhf

What else can I do, because there is not the HEADER library for the kernel 5.10.17-v8+.

I would be very happy if someone could help me here. Best regards from Berlin

Matthias

hjonnala commented 3 years ago

Hi, can you share the output of following commands:

magic-blue-smoke commented 3 years ago

Are you using Raspberry Pi CM4? CM4 PCIe has compatibility issues with Coral TPU that don’t seem to be fixed: google-coral/edgetpu/issues/280

ghost commented 3 years ago

Hello together and sorry for my delay, but I had a little timeout with holiday over my weekend.

uname -r: 5.10.17-v8+

but name -a: 5.10.17-v8+ #1421 SMP PREEMPT Thu May 27 14:01:37 BST 2021 aarch64 GNU/Linux

I think, that is the problem, why no driver was installed or compiled, or?

lsmod | grep apex -> nothing!

But, lspci -v: 01:00.0 System peripheral: Global Unichip Corp. Coral Edge TPU (prog-if ff) Subsystem: Global Unichip Corp. Coral Edge TPU Flags: fast devsel Memory at 600100000 (64-bit, prefetchable) [disabled] [size=16K] Memory at 600000000 (64-bit, prefetchable) [disabled] [size=1M] Capabilities: [80] Express Endpoint, MSI 00 Capabilities: [d0] MSI-X: Enable- Count=128 Masked- Capabilities: [e0] MSI: Enable- Count=1/32 Maskable- 64bit+ Capabilities: [f8] Power Management version 3 Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?> Capabilities: [108] Latency Tolerance Reporting Capabilities: [110] L1 PM Substates Capabilities: [200] Advanced Error Reporting

I hope, that will help you so much 👍 If you need more information, please feel free and contact me again.

And yes, I am using CM4 with an PCIe - Adapter to M.2 and using the M.2 - Coral-Model on it....

manoj7410 commented 3 years ago

@Zhexue-M We haven't been able to run Coral M.2 module on CM4 yet. Please https://github.com/google-coral/edgetpu/issues/280 for more details.

ghost commented 3 years ago

Thank you, but this is NOT the same ISSUE, like my ISSUE. You can see, that the system don't compile your driver, because you've got a wrong machine type, see:

uname -r: 5.10.17-v8+

but name -a: 5.10.17-v8+ #1421 SMP PREEMPT Thu May 27 14:01:37 BST 2021 aarch64 GNU/Linux

I am using DEBIAN 11 - Image directly, not RaspianOS.... IT IS NOT THE SAME!!! Can you check it again, please!

Best regards

Matthias