Open MadhuriPatil1694 opened 1 year ago
nvidia@ubuntu:~$ sudo apt-get install gasket-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup-bin dpkg-repack gdal-data gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common libaec0 libarmadillo9 libarpack2 libavcodec-dev libavformat-dev
libavresample-dev libavresample4 libavutil-dev libcfitsio8 libcharls2 libdap25 libdapclient6v5 libdc1394-22-dev libdebian-installer4 libepsilon1 libexif-dev libfreexl1 libfyba0 libgdal26 libgdcm-dev
libgdcm3.0 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgl2ps1.4 libgphoto2-dev libhdf4-0-alt libhdf5-103 libhdf5-openmpi-103 libilmbase-dev libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libkmlbase1
libkmldom1 libkmlengine1 liblept5 liblzma-dev libminizip1 libnetcdf-c++4 libnetcdf15 libodbc1 libogdi4.1 libopencv-calib3d4.2 libopencv-contrib4.2 libopencv-dnn4.2 libopencv-features2d4.2 libopencv-flann4.2
libopencv-highgui4.2 libopencv-imgcodecs4.2 libopencv-imgproc4.2 libopencv-ml4.2 libopencv-objdetect4.2 libopencv-photo4.2 libopencv-shape4.2 libopencv-stitching4.2 libopencv-superres4.2 libopencv-video4.2
libopencv-videoio4.2 libopencv-videostab4.2 libopencv-viz4.2 libopencv4.2-java libopencv4.2-jni libopenexr-dev libpng-dev libpq5 libproj15 libqhull7 libraw1394-dev libsocket++1 libspatialite7 libsuperlu5
libswresample-dev libswscale-dev libsz2 libtesseract4 libtiff-dev libtiffxx5 libtimezonemap-data libtimezonemap1 liburiparser1 libvtk6.3 libxerces-c3.2 odbcinst odbcinst1debian2 os-prober proj-data
python3-icu python3-pam rdate tasksel tasksel-data
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed
gasket-dkms
0 to upgrade, 1 to newly install, 0 to remove and 284 not to upgrade.
Need to get 0 B/48.0 kB of archives.
After this operation, 256 kB of additional disk space will be used.
debconf: Delaying package configuration, since apt-utils is not installed.
Selecting previously unselected package gasket-dkms.
(Reading database ... 191886 files and directories currently installed.)
Preparing to unpack .../gasket-dkms_1.0-18_all.deb ...
Unpacking gasket-dkms (1.0-18) ...
Setting up gasket-dkms (1.0-18) ...
Loading new gasket-1.0 DKMS files...
It is likely that 5.10.104-tegra belongs to a chroot's host
Building for 5.10.104-tegra and 5.4.0-146-generic
Building initial module for 5.10.104-tegra
Done.
gasket.ko: Running module version sanity check.
apex.ko: Running module version sanity check.
depmod.....
Backing up initrd.img-5.10.104-tegra to /boot/initrd.img-5.10.104-tegra.old-dkms Making new initrd.img-5.10.104-tegra (If next boot fails, revert to initrd.img-5.10.104-tegra.old-dkms image) update-initramfs........
DKMS: install completed. Building initial module for 5.4.0-146-generic Done.
gasket.ko: Running module version sanity check.
apex.ko: Running module version sanity check.
depmod...
Warning: Unable to find an initial ram disk that I know how to handle. Will not try to make an initrd.
Hi @MadhuriPatil1694 please reboot the machine and share the below command outputs:
Hi @MadhuriPatil1694 please reboot the machine and share the below command outputs:
* sudo dmesg |grep apex * sudo lspci -vvv | grep MSI-X * sudo lspci -vvv
$ sudo dmesg |grep apex prints nothing $sudo lspci -vvv | grep MSI-X Capabilities: [b0] MSI-X: Enable- Count=8 Masked- Capabilities: [b0] MSI-X: Enable+ Count=16 Masked- Capabilities: [b0] MSI-X: Enable- Count=1 Masked- Capabilities: [b0] MSI-X: Enable- Count=1 Masked- Capabilities: [70] MSI-X: Enable+ Count=5 Masked- Capabilities: [70] MSI-X: Enable- Count=5 Masked- $ sudo lspci -vvv 0000:00:00.0 PCI bridge: NVIDIA Corporation Device 1ad0 (rev a1) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 24 Bus: primary=00, secondary=01, subordinate=ff, sec-latency=0 I/O behind bridge: 0000f000-00000fff [disabled] Memory behind bridge: 40000000-400fffff [size=1M] Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff [disabled] Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR- BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- Capabilities: [40] Power Management version 3 Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+) Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+ Address: 0000000000000000 Data: 0000 Masking: 00000000 Pending: 00000000 Capabilities: [70] Express (v2) Root Port (Slot-), MSI 00 DevCap: MaxPayload 256 bytes, PhantFunc 0 ExtTag- RBE+ DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+ RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ MaxPayload 128 bytes, MaxReadReq 512 bytes DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr+ TransPend- LnkCap: Port #0, Speed 16GT/s, Width x8, ASPM not supported ClockPM- Surprise+ LLActRep+ BwNot+ ASPMOptComp+ LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk- ExtSynch- ClockPM- AutWidDis- BWInt+ AutBWInt- LnkSta: Speed 8GT/s (downgraded), Width x4 (downgraded) TrErr- Train- SlotClk+ DLActive+ BWMgmt- ABWMgmt+ RootCap: CRSVisible+ RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna+ CRSVisible+ RootSta: PME ReqID 0000, PMEStatus- PMEPending- DevCap2: Completion Timeout: Range ABCD, TimeoutDis+, NROPrPrP+, LTR+ 10BitTagComp+, 10BitTagReq-, OBFF Not Supported, ExtFmt-, EETLPPrefix- EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit- FRS-, LN System CLS Not Supported, TPHComp-, ExtTPHComp-, ARIFwd- AtomicOpsCap: Routing- 32bit- 64bit- 128bitCAS- DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR+, OBFF Disabled ARIFwd- AtomicOpsCtl: ReqEn- EgressBlck- LnkCtl2: Target Link Speed: 16GT/s, EnterCompliance- SpeedDis- Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS- Compliance De-emphasis: -6dB LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete+, EqualizationPhase1+ EqualizationPhase2+, EqualizationPhase3+, LinkEqualizationRequest- Capabilities: [b0] MSI-X: Enable- Count=8 Masked- Vector table: BAR=2 offset=00000000 PBA: BAR=2 offset=00010000 Capabilities: [100 v2] Advanced Error Reporting UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol- UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol- UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol- CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr- CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+ AERCap: First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn- MultHdrRecCap+ MultHdrRecEn- TLPPfxPres- HdrLogCap- HeaderLog: 00000000 00000000 00000000 00000000 RootCmd: CERptEn+ NFERptEn+ FERptEn+ RootSta: CERcvd- MultCERcvd- UERcvd- MultUERcvd- FirstFatal- NonFatalMsg- FatalMsg- IntMsg 0 ErrorSrc: ERR_COR: 0000 ERR_FATAL/NONFATAL: 0000 Capabilities: [148 v1] Secondary PCI Express LnkCtl3: LnkEquIntrruptEn-, PerformEqu- LaneErrStat: 0 Capabilities: [168 v1] Physical Layer 16.0 GT/s <?> Capabilities: [190 v1] Lane Margining at the Receiver <?> Capabilities: [1c0 v1] L1 PM Substates L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2- ASPM_L1.1- L1_PM_Substates+ PortCommonModeRestoreTime=60us PortTPowerOnTime=40us L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1- T_CommonMode=10us L1SubCtl2: T_PwrOn=10us Capabilities: [1d0 v1] Vendor Specific Information: ID=0002 Rev=4 Len=100 <?> Capabilities: [2d0 v1] Vendor Specific Information: ID=0001 Rev=1 Len=038 <?> Capabilities: [308 v1] Data Link Feature <?> Capabilities: [314 v1] Precision Time Measurement PTMCap: Requester:+ Responder:+ Root:+ PTMClockGranularity: 16ns PTMControl: Enabled:- RootSelected:- PTMEffectiveGranularity: Unknown Capabilities: [320 v1] Vendor Specific Information: ID=0004 Rev=1 Len=054 <?> Kernel driver in use: pcieport
0000:01:00.0 Non-Volatile memory controller: Silicon Motion, Inc. Device 2263 (rev 03) (prog-if 02 [NVM Express])
Subsystem: Silicon Motion, Inc. Device 2263
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
0001:00:00.0 PCI bridge: NVIDIA Corporation Device 1ad2 (rev a1) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
0001:01:00.0 SATA controller: Marvell Technology Group Ltd. Device 9171 (rev 13) (prog-if 01 [AHCI 1.0])
Subsystem: Marvell Technology Group Ltd. Device 9171
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
0003:00:00.0 PCI bridge: NVIDIA Corporation Device 1ad2 (rev a1) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
0003:01:00.0 PCI bridge: Pericom Semiconductor Device b304 (rev 01) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
0003:02:01.0 PCI bridge: Pericom Semiconductor Device b304 (rev 01) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
0003:02:02.0 PCI bridge: Pericom Semiconductor Device b304 (rev 01) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
0003:03:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
0003:04:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
attaching Some more logs incase it helps $ dpkg -l | grep gasket ii gasket-dkms 1.0-18 all DKMS source for the gasket driver $ sudo modinfo apex filename: /lib/modules/5.10.104-tegra/updates/dkms/apex.ko author: John Joseph jnjoseph@google.com license: GPL v2 version: 1.2 description: Google Apex driver srcversion: 700E8BBBE9CC23C6EC17712 alias: pci:v00001AC1d0000089Asvsdbcsci* depends: gasket name: apex vermagic: 5.10.104-tegra SMP preempt mod_unload modversions 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
Thanks! can you please share the output of below command as well..
sudo groups $USER
You didn't installed PCI driver for edgetpu device and because of that it is not working and lspci doesn't list it From end of first log is seen that driver is not installed because of some issue with initrd. You should install and use edgetpu as root or it can't install and run. login as root and repeat installation steps. Also make sure you have installed linux header files for your kernel image version and gcc before to run driver installation
sudo groups $USER
@hjonnala ,Yes it is as follow nvidia@ubuntu:~$ sudo groups $USER [sudo] password for nvidia: nvidia : nvidia adm cdrom sudo audio dip video plugdev render i2c lpadmin gdm gpio weston-launch sambashare apex
You didn't installed PCI driver for edgetpu device and because of that it is not working and lspci doesn't list it From end of first log is seen that driver is not installed because of some issue with initrd. You should install and use edgetpu as root or it can't install and run. login as root and repeat installation steps. Also make sure you have installed linux header files for your kernel image version and gcc before to run driver installation
@easy-and-simple, gcc and linux headers both are installed and the versions are as follow $ gcc --version gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
nvidia@ubuntu:~$ ls -l /usr/src/linux-headers-5.10.104-tegra-ubuntu20.04_aarch64/ total 16 drwxr-xr-x 22 root root 4096 Apr 26 12:39 kernel-5.10 drwxr-xr-x 3 root root 4096 Apr 26 12:39 nvgpu drwxr-xr-x 4 root root 4096 Apr 26 12:39 nvidia drwxr-xr-x 3 root root 4096 Apr 26 12:39 nvlink
Description
I am having issues with my Coral M2 dual edge TPU the host won't detect it.
I have followed the setup instructions, but lspci -nn | grep 089a returns nothing.
Click to expand!
### Issue Type Build/Install ### Operating System Linux ### Coral Device Mini PCIe ### Other Devices _No response_ ### Programming Language _No response_ ### Relevant Log Output ```shell nvidia@ubuntu:~$ uname -r 5.10.104-tegra nvidia@ubuntu:~$ lspci -nn | grep 089a nvidia@ubuntu:~$ ```