[开发杂项][编译]linux driver dkms
Posted xcy6666
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[开发杂项][编译]linux driver dkms相关的知识,希望对你有一定的参考价值。
what is dkms
- Dynamic Kernel Module Support (DKMS) is a program/framework that enables generating Linux kernel modules whose sources generally reside outside the kernel source tree.
- written by the Linux Engineering Team at Dell in 2003
- included in many distributions, such as Ubuntu, Debian, Fedora, SUSE, Mageia and Arch
- supports both the rpm and deb package
- GNU General Public License (GPL) v2
source required
source code + out-of-tree Makefile + dkms.conf
PACKAGE_NAME="v4l2loopback"
PACKAGE_VERSION="0.12.5"
# Items below here should not have to change with each driver version
MAKE[0]="make KERNEL_DIR=${kernel_source_dir} all"
CLEAN="make clean"
BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
DEST_MODULE_LOCATION[0]="/extra"
REMAKE_INITRD="no"
AUTOINSTALL="yes"
usage
version=0.12.5
# download and extract the tarball (tar requires superuser privileges)
curl -L https://github.com/umlaeute/v4l2loopback/archive/v${version}.tar.gz | tar xvz -C /usr/src #ls /usr/src/v4l2loopback-0.12.5/
# build and install the DKMS-module (requires superuser privileges)
dkms add -m v4l2loopback -v ${version}
dkms build -m v4l2loopback -v ${version}
dkms install -m v4l2loopback -v ${version}
more links
https://help.ubuntu.com/community/DKMS
https://help.ubuntu.com/community/Kernel/DkmsDriverPackage#Configure_DKMS
https://wiki.kubuntu.org/Kernel/Dev/DKMSPackaging
https://docs.01.org/clearlinux/latest/guides/kernel/kernel-modules-dkms.html#build-install-and-load-an-out-of-tree-module
以上是关于[开发杂项][编译]linux driver dkms的主要内容,如果未能解决你的问题,请参考以下文章
基于platform_driver 实现的misc 杂项设备
基于platform_driver 实现的misc 杂项设备
基于platform_driver 实现的misc 杂项设备