Questions tagged [dkms]
31 questions
9
votes
2 answers
Virtualbox 6.1.10, Ubuntu 20.04 bad return status build on kernel 5.8.0, package virtualbox-dkms error
Not so much as a question as a documentation.
This is regarding a failing apt-get install or update related to virtualbox 6.1.10, Ubuntu 20.04, and virtualbox-dkms package failing to build.
I had an issue recently with Ubuntu 20.04 and Virtual Box…

will
- 108
- 1
- 6
8
votes
7 answers
Why virtualbox fails to install on Ubuntu20.04
I am trying to install virtualbox. I had it installed previously and it worked. Today I tried to add another virtual machine and it started complaining about problems with dkms so I tried to purge and install everything with the following failure.
$…

ruby_object
- 1,229
- 1
- 12
- 30
6
votes
1 answer
When is it necessary to rebuild the initrd (Linux initial ramdisk)?
Background: I'm developing a DKMS package for my kernel module. The DKMS manpage contains the following sentence:
REMAKE_INITRD =
This directive specifies whether your initrd should be remade after the module is installed onto the…

sergej
- 17,147
- 6
- 52
- 89
5
votes
2 answers
VirtualBox to share clipboard and files
I use VirtualBox 5.2.6 on Windows 10. There is an Ubuntu virtual machine, from which I would like to access to host's clipboard and files.
I tried to use
Machine>Settings >> General>Advanced>Shared Clipboard
I also tried
Devices>Shared…

plaidshirt
- 5,189
- 19
- 91
- 181
4
votes
2 answers
How to make DKMS pass the right ARCH to 'make'?
I'm trying to use DKMS to build a module. My problem is that I cannot seem to make DKMS pass the right ARCH to 'make'. It keeps using the architecture of the my OS's kernel which is armv7l. But there's no map
/usr/src/linux/arch/armv7l
It needs to…

Yuri Borges
- 315
- 4
- 14
4
votes
1 answer
Creating a DKMS package for a kernel module, dependency on kernel header
Background
I have developed a Linux device driver (ASoC). Now I would like to release it as a DKMS package. The target machine is a Raspberry Pi with Raspbian.
Problem
My source code depends on a header file from the Linux /sound/soc/codecs/…

sergej
- 17,147
- 6
- 52
- 89
3
votes
1 answer
How can I delete a dkms module in (arch) linux?
I have a dkms module. I wanted to remove it. I did sudo dkms remove .... But when I update to a newer kernel, my package manager tries to build that module and failed, so it added it again.
How do I prevent that and remove the module?
user13526499
3
votes
1 answer
How to build device-tree overlays using DKMS?
I am trying to build a device-tree overlay using DKMS for a running kernel (4.4). My naive Makefile is as follows:
PWD := $(shell pwd)
dtbo-y += my-awsome-overlay.dtbo
targets += $(dtbo-y)
all:
make -C /lib/modules/${kernelver}/build…

sergej
- 17,147
- 6
- 52
- 89
2
votes
2 answers
Prefix getting added to license information during Linux Kernel module build
I am trying to build a single Linux Kernel module from multiple source files. I am using the following Makefile:
obj-m := mymodule.o
mymodule-y := mymodule_a.o mymodule_b.o mymodule_c.o
all:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean:
…

ysonishi
- 21
- 3
2
votes
0 answers
dkms module not loaded in debian 12
When I installed the driver by dkms in debian 12, everything goes without errors.
root@debian:/home/sw/Linux_DRM_1.14.1_4/DKMS# dpkg -i ast-drm-deb12.deb
(Reading database ... 169202 files and directories currently installed.)
Preparing to unpack…

JHT
- 72
- 5
2
votes
0 answers
How are Linux kernel headers that point outside include/ meant to be used?
My attempt at compiling a kernel module failed. Missing a header file pulled from include/net/netfilter/br_netfilter.h. Its just not there. I do not see how it possibly could.
What I expected to see:
filename: …

user
- 21
- 1
2
votes
0 answers
invoke-rc.d: could not determine current runlevel by running sudo dpkg-reconfigure virtualbox-dkms
I am trying to execute the vagrant up command in Ubuntu. After some recommendations here on StackOverflow, I tried running other commands to try and solve this, but now I'm stuck and I don't know what I should do. This is what I have done until…

marily
- 21
- 1
2
votes
2 answers
ROS Melodic Install dkms error in Ubuntu 18.04 - Error! Bad return status for module build on kernel: 5.4.0-89-generic (x86_64)
I was trying to install ROS Melodic, and got this error:-
(ROSMelodic) (system) t@tsd:~/git/ROSMelodic$ sudo apt install ros-melodic-desktop-full
Reading package lists... Done
Building dependency tree
Reading state information...…

OneWorld
- 163
- 2
- 12
2
votes
1 answer
Build dkms module for specific kernel versions only
How do you define dkms.conf such that a DKMS module will only be built for specific kernel version or range of versions?
Background:
A buggy driver is present in the the current kernels we are using (eg 4.4) but fixed in 4.10. I produced as dkms…

Greg
- 2,549
- 2
- 24
- 30
2
votes
1 answer
Patch existing kernel module with dkms
Creating a debian package with a kernel module seems fairly easy as described here and elsewhere. I want to update an existing module with a patch. How would I go about this? I don't really have a source tarball to unpack, but rather I would use the…

vidstige
- 12,492
- 9
- 66
- 110