Questions tagged [kernel-modules]

Use this tag for questions about loading, configuring, or compiling them. See also /drivers for questions about which modules to use for specific hardware. A kernel module is a bit of code that can be added into the kernel by the administrator while the system is running, typically providing one feature such as a filesystem.

A kernel module is a collection of code that can be loaded into the kernel at runtime, without recompiling the kernel. Each one typically provides one "feature", such as a single device driver, file system, or communication protocol. Additionally, some modules provide library functions to aid in implementing other modules.

This tag covers questions about loading, configuring, and compiling kernel modules. Questions about which module to use for a particular piece of hardware should instead be tagged .

A module typically conforms to one or more well-defined interfaces -- usually one from the user-side of the module (e.g., the Unix read/write/ioctl interface) and one or more from the upstream-side of the module (e.g., the USB I/O subsystem interface).

1202 questions
19
votes
2 answers

List of packages managed by DKMS

How do I get a list of packages (and their versions) managed by DKMS so I can easily add/remove them?
Clinton
  • 729
10
votes
2 answers

Kernel Modules: .o vs .ko

It seems that files containing kernel modules are called .o, at least that's what I figure when looking at a tutorial like this one. However, on my debian squeeze box, these files seem to be called .ko. Does it depend on the distribution (or verison…
zebonaut
  • 1,125
9
votes
1 answer

Module marked (F) in /proc/modules

On my 3.10 system some of modules listed in /proc/modules are marked (F). I'd like to find the cause of this (F). I am sure modules were not forcefully loaded and were built with the Kernel. Could you, please point what kernel code creates the…
8
votes
1 answer

Compile Linux kernel module without Module.symvers

I have this embedded Linux devices. I would like to add kernel-level functionality to it, but would highly prefer not to compile my own kernel to do so. (If the kernel doesn't load and get to user space the device is bricked; I can't access the…
Billy
  • 665
4
votes
1 answer

Emulating usb device with a file using g_mass_storage => udc-core: couldn't find an available UDC - added [g_mass_storage] to list of pending drivers

I would like to emulate an USB from an image file. I am using Centos7 with the Kernel 4.11.7 installed through kernel-ml and kernel-ml-devel elrepo 4.11.7-1.el7.elrepo.x86_64 (actually I tried with 3.10.* 4.10.* 4.11.1 too) We have 2…
None
  • 647
3
votes
1 answer

Portability of kernel modules

If I have a Linux module that was compiled for kernel x, can I expect the compiled module to also work with kernel y or is that generally not the case?
3
votes
1 answer

How can I find which module driver holds of i2c address?

I want to communicate over a I2C bus using Python. But the address cannot be used because it is used by another driver. # i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: --…
OrangeTux
  • 1,063
2
votes
1 answer

lsmod returns error unless called with sudo

Fixed: The install README for libusb suggests added a call to export LD_PRELOAD=/path/to/libusb-driver.so It was this .so file that was getting called and interefering with lsmod (and it turns out some other commands as well). To fix this I moved…
Camille
  • 31
2
votes
1 answer

Failed to find module nf_nat_proto_gre

When starting Xubuntu 19.04 get this in boot.log: [[0;1;31mFAILED[0m] Failed to start [0;1;39mLoad Kernel Modules[0m. See 'systemctl status systemd-modules-load.service' for details. I run systemctl status systemd-modules-load.service which…
Adrian
  • 701
  • 1
  • 8
  • 29
2
votes
2 answers

Signed kernel modules - "not signed with trusted key"

Issue: I'm trying to use signed kernel modules, but getting a failure for the insmod command: PKCS#7 signature not signed with a trusted key There is a potentially related error message during Linux boot: [ 3.342888] Loading compiled-in X.509…
2
votes
1 answer

Is there a command line option or single resource to determine the module(s) required for a piece of hardware?

During my Linux studies, I came up with this question which I've thus far been unable to find a satisfactory answer. Suppose I have a computer and I've just installed a Linux OS. A certain piece of hardware is not working because the required…
user271967
2
votes
0 answers

loading module 8812au fails

Why is this not loading my module? y9@y9-aspire:~$ sudo modprobe 8812au.ko [sudo] password for yannik: modprobe: FATAL: Module 8812au.ko not found in directory /lib/modules/4.13.0-26-generic y9@y9-aspire:~$ cd…
Kashif
  • 265
2
votes
2 answers

Get base address and size of a loaded kernel module?

How can I get the base address and size of a loaded kernel module?
user
  • 163
1
vote
1 answer

how to stop adding unused module to loadable kernel module?

Is there any way how to stop unused module to loadable kernel module other than putting them in the mod probe blacklist.
subbarao
  • 477
1
vote
1 answer

Remove and load module during boot

I'm running Ubuntu Mate on a raspberry pi 4 and this kernel compiles seem to set a very high polling rate for the mouse, making a wireless mouse like the one I'm using extremely laggy. The polling rate can be changed removing the usbhid module and…
1
2