alliedvision / linux_nvidia_jetson

Allied Vision CSI-2 camera driver for NVIDIA Jetson Systems.
103 stars 41 forks source link

How to build module with DKMS? #24

Closed isnullxbh closed 2 years ago

isnullxbh commented 2 years ago

Hello! I'm trying to build a module for the BME280 using DKMS and got the following error:

ERROR (dkms apport): binary package for bme280: 1.0 not found

A build log provides the following details:

make -C /lib/modules/4.9.201-g180da76c98e2/build M=/var/lib/dkms/bme280/1.0/build modules make[1]: /lib/modules/4.9.201-g180da76c98e2/build: No such file or directory. Stop. Makefile:13: recipe for target 'default' failed make: [default] Error 2

/lib/modules/4.9.201-g180da76c98e2/build - is a symlink to /home/flo/linux_nvidia_jetson/kernel/kernel-4.9 and this resource is available on the one PC in the world :)

Is there a way to build modules for your kernel with DKMS? Thanks.

Env.: kernel - 4.9.201-g180da76c98e2, arch - aarch64