google-coral / edgetpu

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

Install gasket-dkms not supported on linux kernel 5.15 (Ubuntu22.04) #802

Open ivanivanivanivanivanivan opened 8 months ago

ivanivanivanivanivanivan commented 8 months ago

following the https://coral.ai/docs/m2/get-started/#1-install-the-pcie-driver guide.

result display:\

Error! Bad return status for module build on kernel: 5.15.78 (aarch64) Consult /var/lib/dkms/gasket/1.0/build/make.log for more information. dpkg: error processing package gasket-dkms (--configure): installed gasket-dkms package post-installation script subprocess returned error exit status 10 Errors were encountered while processing: gasket-dkms E: Sub-process /usr/bin/dpkg returned an error code (1)

make.log

DKMS make.log for gasket-1.0 for kernel 5.15.78 (aarch64) Mon Oct 16 10:48:14 AM CST 2023 make: Entering directory '/usr/src/linux-headers-5.15.78' CC [M] /var/lib/dkms/gasket/1.0/build/gasket_core.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_ioctl.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_interrupt.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_page_table.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_sysfs.o CC [M] /var/lib/dkms/gasket/1.0/build/apex_driver.o LD [M] /var/lib/dkms/gasket/1.0/build/apex.o LD [M] /var/lib/dkms/gasket/1.0/build/gasket.o MODPOST /var/lib/dkms/gasket/1.0/build/Module.symvers make[2]: No rule to make target 'scripts/module.lds', needed by '/var/lib/dkms/gasket/1.0/build/apex.ko'. Stop. make[2]: Waiting for unfinished jobs.... CC [M] /var/lib/dkms/gasket/1.0/build/apex.mod.o make[1]: [scripts/Makefile.modpost:163: __modpost] Error 2 make: [Makefile:1888: modules] Error 2 make: Leaving directory '/usr/src/linux-headers-5.15.78'

feranick commented 5 months ago

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