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.

429 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
1 answer
413 views

Understanding linux Ethernet devices

I have a small, embedded, completely self cross-compiled installation on a mips SoC. SoC is based on a Mediatek MT7628 sporting a Wifi interface (2.4MHz only), a 100Mbps Ethernet MAC and an internal ...
ZioByte's user avatar
  • 870
6 votes
1 answer
6k views

load module via /etc/modules

I want to load my kernel module hello.ko on boot in Ubuntu 12.04. I placed it in /lib/modules/3.8.0-31-generic/kernel/ubuntu/hello.ko, ran depmod -a, and added "hello" to /etc/modules. However, when ...
Andrey Romanchev's user avatar
5 votes
0 answers
1k views

Kernel module remove not permitted for some sudo users

I use a sudoers file, which (besides other items) contains following lines: homebridge ALL=(ALL) NOPASSWD: /sbin/modprobe -r bcm2835-v4l2, /sbin/modprobe bcm2835-v4l2, /sbin/reboot %sudo ...
Erik Theoboldt's user avatar
5 votes
0 answers
381 views

How can I prevent USB drivers (EHCI) from loading on specific USB controller (PCIe card)?

I'm using Debian 10.8 with Linux Kernel 4.19.0-14. I'm trying to use IOMMU to passthrough an entire USB controller (PCI Express card), but I'm having problems. The kernel is loading the ohci_pci and ...
SofaKng's user avatar
  • 323
5 votes
1 answer
2k views

Scaling issues of i7 3520M with intel_pstate module on Kernel 3.10.0

Few days ago I updated my openSUSE 12.3 system from Kernel 3.9.8-1.gf3348a8-desktop to 3.10.0-1.g3dcd746-desktop and since then, turbo mode of my i7 3520M is enabled by default and it does not ...
Torbjörn's user avatar
  • 308
4 votes
1 answer
433 views

Compiling external kernel module fails on Debian bookworm due to missing resolve_btfids

I am new to linux and I am trying to compile an external kernel module on a Debian bookworm virtualization (UTM). Makefile obj-m += hello_world.o PWD := $(CURDIR) all: make -C /lib/modules/`...
giannisl9's user avatar
4 votes
0 answers
880 views

/tools/build/Build.include: No such file or directory while compiling

I am trying to compile kernel module 4.18.0-240.el8.x86_64. On running make prepare getting the following error DESCEND objtool /usr/src/kernels/4.18.0-240.el8.x86_64/tools/build/Makefile.build:37: ...
curious_coder's user avatar
4 votes
0 answers
2k views

xhci restart needed

I have a laptop with usb 3.0 ports, ryzen processor, linux 5.14.3 kernel, and an external keyboard and mouse connected via a usb hub. Occassionally, the usb devices stop functioning, both keyboard and ...
possumkeys's user avatar
4 votes
2 answers
7k views

module: x86/modules: Skipping invalid relocation target

I tried to compile a module on Debian 10 (v4l2loopback) like this: sudo apt-get install linux-headers-$(uname -r) git clone https://github.com/umlaeute/v4l2loopback.git cd v4l2loopback/ make -j4 sudo ...
Markus's user avatar
  • 311
4 votes
0 answers
2k views

Is there any tool to generate kernel .config file?

I watched a clip on customizing kernel, rebuilding, installing, etc. where the gentleman suggested to use an existing .config file with make menuconfig or make xconfig. I wanted to use one that comes ...
user avatar
4 votes
0 answers
727 views

How to additional public keys to .secondary_trusted_keys?

I am trying to add additional keys to .secondary_trusted_keys. Documentation says, to do so the additional keys has to be signed by a key which is already a resident in either .builtin_trusted_keys or ...
Prashant's user avatar
4 votes
0 answers
3k views

Audio Port: ASoC: no backend DAIs enabled for Audio Port

I have installed Arch Linux (x86-64) on a tabled, which is Chuwi Hi12. I have downloaded this sound codec specific for this tabled here: https://github.com/kernins/linux-chwhi12/tree/master/sound/soc/...
class_OpenGL's user avatar
4 votes
1 answer
527 views

Loading WiFi driver results in the whole system becoming unstable. How to debug?

I am not a linux kernel expert, but I got this new laptop and it's WiFi(RT3290LE) is not working. I tried solutions from various sources and they are not working. So it is upto me to solve it, and I ...
daltonfury42's user avatar
4 votes
0 answers
2k views

Broadcom wireless driver source vs dkms

I've a MacBook Air 6.2 with a BCM4360 wireless chip with PCI-ID 14e4:43a0 (rev 03) running Debian Jessie. I installed the wl driver from Broadcom to make the wifi card work, but it crashes ...
Jeff Burdges's user avatar
4 votes
0 answers
888 views

How can I automatically include all firmware needed by selected Linux kernel modules

I have certain modules which I need compiled into the kernel. Some of these modules require firmware, which used to be automatically included from /usr/src/linux/firmware/. However, no new firmware ...
dataless's user avatar
  • 1,719
3 votes
0 answers
444 views

USB audio driver not getting built

I am having a problem with driver support for a USB sound card on an embedded system based on Raspberry Pi and Yocto Kirkstone. The sound card is enumerated correctly by the USB subsystem, but doesn't ...
TheAG's user avatar
  • 305
3 votes
0 answers
1k views

What is the modern way of creating devices files in /dev/?

tl;dr If I want my module do adhere to modern practices, should I create devices in /dev/ via mknod in a shell script or via class_create and device_create C functions directly in the module source ...
Enlico's user avatar
  • 1,555
3 votes
0 answers
100 views

What driver to use with a keyboard that has the wrong vendor/product ID?

So, I recently bought a new mechanical keyboard, and I've been having trouble with the F1-F12 keys. After some investigation, I discovered that this is happening because the keyboard, for some ungodly ...
Maveth's user avatar
  • 31
3 votes
0 answers
1k views

Platform driver's probe function isn't called

I am developing a simple platform driver for beaglebone (but currently running on my virtual machine running Ubuntu) that uses device tree, but it doesn't seem like the probe function is being called. ...
xyf's user avatar
  • 141
3 votes
0 answers
956 views

Secure Boot - how does Linux revoke/blacklist vulnerable boot loaders/boot managers/kernel/modules signed with shim's built-in key?

Background Shim can have a certificate built into it during compilation (see "Shim keys" paragraph here). The corresponding private key can then be used to sign the boot loader/manager and ...
wmjdgla's user avatar
  • 131
3 votes
0 answers
10k views

RTNETLINK answers: Operation not supported when start wireguard

when I using this command to start wireguard: $ sudo yum install epel-release https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm $ sudo yum install yum-plugin-elrepo $ sudo yum install ...
Dolphin's user avatar
  • 609
3 votes
0 answers
5k views

Centos 8 - VirtualBox 6.0 Install - kernel module issues

I recently installed a fresh copy of Centos 8 and am attempting to install VirtualBox-6.0 and ran into the following: WARNING: The `vboxdrv` kernel module is not loaded. Either there is no module ...
Radu Borzea's user avatar
3 votes
0 answers
2k views

Failure removing module, still in use/not found

I'm trying to remove a module I have created, but it doesn't work for me. Assuming my module name is xyz : When I try to run rmmod xyz I get the following error: rmmod: ERROR: Module xyz is in use ...
Mickey's user avatar
  • 131
3 votes
0 answers
596 views

Loading a kernel module at run time using "compatible" property of device node in device-tree

If I know the "compatible" property string of a device(from the device tree), can I use it at runtime to load the corresponding kernel driver module? I do not have access to the driver source. I am ...
wishywashy's user avatar
3 votes
0 answers
1k views

Hooking sys_execve on Linux kernel 4.6 or higher

Kernels lower than 4.6 use assembly stubs to harden the hooking of critical system calls like fork, clone, exec etc. Particularly speaking for execve, the following snippet from Kernel-4.5 shows entry ...
Usman Riaz's user avatar
3 votes
0 answers
127 views

Required kernel modules / configuration for OTG host on OMAP3 based device

I'm trying to figure out what kernel modules that I need to load in order correctly configure an TI OMAP3 based device (DM3730) as a USB host via the on-chip OTG controller. Without loading any ...
Jeffrey P's user avatar
  • 141
3 votes
0 answers
53 views

Is there a way to defer a transition to S3 power state?

I'm wondering if there's a way to defer transition to S3 power state, for instance due to pending results from some external module, e.g. crypto-engine? Picture example scenario: user-space client ...
Marek Niepiekło's user avatar
3 votes
1 answer
2k views

How do I change the modules directory that the kernel searches

I am new to rebuilding the kernel and kernel modules and such, so I apologize if this is a poor question. I am running Centos 6.8 , 2.6.32.642.el6.x86_64. I am trying learn about device drivers and ...
Jotorious's user avatar
  • 131
3 votes
0 answers
722 views

Is it normal that a modalias matches various devices?

Recently another user asked why they were loading the fjes module. While I was trying to understand that question, I realized that Linux is also loading the same module for me. Now, this is the ...
giusti's user avatar
  • 1,737
3 votes
0 answers
843 views

r8169 stops working after a while

This issue appeared after the CentOS installation. Server becomes unavailable completely neither through ssh nor through smb protocol. It happens randomly and there is no exact regularity. It can ...
Robert's user avatar
  • 75
3 votes
0 answers
496 views

Link library with common symbols in kernel module

I have a somewhat unusual situation, where I am trying to port a Linux kernel module that was designed for 2.4.9 to the latest kernel. The module consists of two parts, an open source wrapper, and a ...
lopsided98's user avatar
3 votes
0 answers
133 views

how to install module in correct location or say /lib/modules/`uname -r`

I have one package for which I want to create debian Package instead of compiling it every time. I tried creating it using dh_make and fakeroot but problem is it just hardcode the location where ...
ondway's user avatar
  • 81
3 votes
0 answers
301 views

How to switch static drivers like switching kernel module drivers?

I have a linux embedded device that I need to switch between USB file storage gadget driver and USB Ethernet gadget driver at runtime. The approach I use now is to build both drivers into kernel ...
user3528438's user avatar
3 votes
0 answers
194 views

Problem in making Perf Kernel Counter work

I have written a kernel module which creates a performance counter via "perf_event_create_kernel_counter" API and then periodically reads its value. My application works on Kernel version-4.0.9 (and ...
Skidro's user avatar
  • 31
3 votes
0 answers
172 views

Verifying kernel modules using a list of hashes

I'm interested in preventing replay attacks on kernel module verification. I feel that using a list of hashes of kernel modules would be better for this than using digital signatures. My Motorola ...
Melab's user avatar
  • 4,018
3 votes
0 answers
661 views

Binding/unbinding GPU between host OS and pci stub while host OS is running

Using a Debian 8 host, I'm interested in setting up a Windows VM guest which gets direct access to my dedicated/discrete graphics card, to see what sort of performance I can get out of it for games (...
Mouse'nKeyboard's user avatar
3 votes
0 answers
373 views

Signing a module for prebuilt kernel

I am developing linux driver for my own PCI device. I am stuck on starting my module: [14941.205599] mymod321: module verification failed: signature and/or required key missing - tainting kernel I ...
nondefaultname's user avatar
3 votes
0 answers
58 views

How to work with a kernel one has no information about?

I'm working with a system to automatically assemble Live CDs. It came packaged with a kernel (seemingly based on 3.13.11), that has been working without problems so far. I noticed that, when I try ...
Minix's user avatar
  • 5,845
3 votes
0 answers
750 views

How to insert a modified ELF loader given the current ELF loader is present?

I need to modify the ELF loader's kernel implementation of an Ubuntu 14.04 distribution. Having downloaded the sources using: sudo apt-get source linux-image-$(uname -r) I ran the configuration ...
Sebi's user avatar
  • 1,009
3 votes
1 answer
1k views

RNDIS Server to make a computer as a peripheral

First of all my goal is this, have a computer as a peripheral device to connect it to anyone's computer with ssh protocol or web. The idea is doing this by using a plug and play USB cable . Facts ...
mavillan's user avatar
  • 3,097
3 votes
2 answers
6k views

WiFi not working - wlan0 FAILED

My Arch (3.6.5-1) is exhibiting a rather peculiar problem: when wifi is set up, all logs indicate that the setup was successful and that the interface is up and functional. However, when attempting to ...
norfavrell's user avatar
3 votes
0 answers
1k views

How to load HID kernel module from the kernel command line?

While upgrading a server from kernel 3.2.9 to kernel 3.5 I had a problem with the network (ifconfig eth0 up won't work) so I updated the system to get a newer userspace, but in the process something ...
Claudio's user avatar
  • 572
2 votes
0 answers
435 views

Why do_exit() undefined?

I was building a kernel module for trying kthreads. A thread function after doing its works exits by calling do_exit(0). But when I am trying to compile the module, it is showing the error that ...
arka's user avatar
  • 253
2 votes
0 answers
224 views

Unable to resolve sphinx-build on ArchLinux VM (installed via pacman)

I'd like concise information on kernel-internal functions, structures, and macros at hand while I develop kernel modules. I have the Linux-kernel repo cloned on my ArchLinux VM, and I would like to ...
user129393192's user avatar
2 votes
0 answers
50 views

How Best to Identify Kernel Module Functionality?

Some Background While I realize that my question is related to my original post over on Ask Ubuntu, it was never answered there, and I'm really hoping to refocus my question here (as it's really no ...
richbl's user avatar
  • 121
2 votes
0 answers
389 views

Finding the right drivers in the linux kernel

I have an ELAN touch-pad with vendor id 04F3:3128 and I'm trying to find the right Linux kernel drivers to support it. I will start by noting that the touch-pad works with live CDs, like for example ...
spinosarus123's user avatar
2 votes
0 answers
366 views

Virtualbox: WARNING! Diff between built and installed module

After I signed Virtualbox for secure-boot on Debian I typed dkms status. I've got that message :WARNING! Diff between built and installed module. Is that because I signed the module ?
Mikey's user avatar
  • 21
2 votes
1 answer
1k views

driver install: module: x86/modules: Skipping invalid relocation target

My situation: I have a prebuilt kernel running fedora already installed and running. Now, I want to install the mcp251x and mcp25xfd driver modules, which depends on the can-dev driver module, so I ...
Sittin Hawk's user avatar
2 votes
0 answers
153 views

what is linux kernel module dm_bio_prison?

A kernel module name dm_bio_prison and descripted with "device-mapper bio prison" is loaded on a linux system. It is used by the modules dm_cache and dm_thin_pool. #lsmod | grep ...
humanityANDpeace's user avatar
2 votes
1 answer
731 views

What's the logic behind generation of Module.symvers file?

As far as I understood Module.symvers file provides list of symbols exported by modules plus license these are exported under and optionally a CRC. Other modules can depend on these symbols for their ...
schuk's user avatar
  • 21

1
2 3 4 5
9