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

M2 not detected on Khadas board #547

Open brunovollmer opened 2 years ago

brunovollmer commented 2 years ago

Description

Hey,

I want to connect the dual edge tpu accelerator to my Khadas VIM 3 board. After a fresh install of Ubuntu 20.04 with the mainline kernel (5.16) I am unable to detect the borad.

Both lspci -nn | grep 089a and ls /dev/apex_0 return nothing.

Output modinfo gasket:

filename:       /lib/modules/5.16.0-rc2/updates/dkms/gasket.ko
author:         Rob Springer <rspringer@google.com>
license:        GPL v2
version:        1.1.4
description:    Google Gasket driver framework
import_ns:      DMA_BUF
srcversion:     9B6EF63F5A5FF161C4C0CF5
depends:        
name:           gasket
vermagic:       5.16.0-rc2 SMP mod_unload aarch64
parm:           dma_bit_mask:int

Output modinfo apex:

filename:       /lib/modules/5.16.0-rc2/updates/dkms/apex.ko
author:         John Joseph <jnjoseph@google.com>
license:        GPL v2
version:        1.2
description:    Google Apex driver
srcversion:     700E8BBBE9CC23C6EC17712
alias:          pci:v00001AC1d0000089Asv*sd*bc*sc*i*
depends:        gasket
name:           apex
vermagic:       5.16.0-rc2 SMP mod_unload aarch64
parm:           allow_power_save:int
parm:           allow_sw_clock_gating:int
parm:           allow_hw_clock_gating:int
parm:           bypass_top_level:int
parm:           trip_point0_temp:int
parm:           trip_point1_temp:int
parm:           trip_point2_temp:int
parm:           hw_temp_warn1:int
parm:           hw_temp_warn2:int
parm:           hw_temp_warn1_en:bool
parm:           hw_temp_warn2_en:bool
parm:           temp_poll_interval:int

Any ideas where to look for the problem?

Thanks

Click to expand! ### Issue Type Bug ### Operating System Ubuntu ### Coral Device M.2 Accelerator with dual Edge TPU ### Other Devices _No response_ ### Programming Language Python 3.7 ### Relevant Log Output _No response_
manoj7410 commented 2 years ago

@brunovollmer Can you paste the output of below mentioned commands after connecting the M.2 device: