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.

Filter by
Sorted by
Tagged with
2
votes
1answer
12 views

How to bind the hid-generic driver to an hid interface that's taken by a different hid driver?

Short background on the issue I'm facing. I'm working on implementing a simultaneous UART/I2C operation using a usb bridge, the FT260. The chip relies on HID reports to provide these functionalities. ...
0
votes
1answer
28 views

Compile kernel module targeting different kernel version

I have a simple "hello world" Linux kernel module that I would like to compile for a different host. My host is on a 5.x kernel version and the target is on 4.x. I do not want to update the ...
0
votes
1answer
28 views

Cannot install any specifc version of `kernel-headers` on Fedora

my goal is to make my kernel-headers to have the same version as my kernel and kernel-devel. Currently I have: $ sudo yum install kernel-headers Last metadata expiration check: 1:55:19 ago ... Package ...
2
votes
1answer
46 views

CentOS 7: after reboot, zfs module won't load, no /dev/zfs

After 959 days a reboot was needed on the CentOS 7 system which has used ZFS flawlessly for the past years. I have run yum update once a month during that time. The rebootet system is apparently ...
0
votes
0answers
14 views

what are the kernel options for usb console debugging?

I would like to attach an USB to Serial Adapter on my laptop to read out the errors while putting the computer into suspension mode. I am on Pop!_OS, so the closest instructions I could find where in ...
0
votes
2answers
95 views

How to load kernel modules for current hardware in init of minimal Busybox-based system

In a minimal Busybox-based Linux system, which commands must be invoked as part of the init script to ensure all kernel modules for the current hardware are loaded?
0
votes
0answers
24 views

Why does dkms install fail with "incompatible pointer type" on Debian but not Ubuntu?

My system is an Intel nuc (NUC6CAYH), running Debian 11. I'm trying to install a kernel module to interact with the programmable LEDs via acpi. I have successfully installed this module on an ...
0
votes
0answers
29 views

Touchscreen module (chipone_icn8505) not recognized

(Previously made post but rewritten) TL;DR I'm not clear about the touchscreen driver install process, although I've looked at several guides but I feel that they're very unclear, so I'd like to ask ...
0
votes
0answers
11 views

How to pass multiple instances of the same option to a kernel module via `/etc/module.d/<module>` config file?

I'm configuring an external USB-to-SATA adapter in OpenWRT (Linux 4.14.221). The hub works only if I bind the device to the usb-storage module (preventing it to bind to usb-storage-uas). To do that I ...
1
vote
0answers
22 views

How can I pass a parameter to a module that is not built-in to the kernel using GRUB2?

If I choose to have a module built-in (Y), I can choose "e" to edit the boot entries on GRUB2 and modify the kernel command line to include "module.variable=whatever" and it works ...
1
vote
0answers
28 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 ?
0
votes
0answers
45 views

Having trouble installing TP-Link AC1300 in Redhat 7.9

I am having trouble installing the driver for TP-Link AC1300 dongle in Red Hat. I followed this procedure for Ubuntu and it ultimately worked. Have been trying to follow the same steps in Red Hat, to ...
2
votes
1answer
96 views

Load Kernel module at boot time with options

I have a device that uses Qualcomm Atheros drivers that I have reinstalled. In order to use the device properly, I need to load the modules with options: sudo modprobe -r ath10k_pci # remove ...
0
votes
1answer
73 views

VirtualBox installation problem under Debian 11

I tried installing VirtualBox 6.1 under Debian 11 Bullseye. I followed the tutorial from this answer to Sign virtual box modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) Centos 8. However, I can not ...
0
votes
1answer
33 views

In Linux kernel - is commenting out a line in .config file equal to set it to "=n"?

In the Linux kernel .config file, is setting a configuration to "n" having the same effect as commenting out the entire row? for example: CONFIG_TEST=n and # CONFIG_TEST
0
votes
2answers
65 views

Two different function prototypes for Linux kernel module ioctl

As pointed out in this question, the prototype for the ioctl function inside a Linux kernel module is: (version 1) int ioctl(struct inode *i, struct file *f, unsigned int cmd, unsigned long arg); or (...
0
votes
1answer
44 views

Intercept keyboard input by X11 in a kernel module

I am building a kernel module that overwrites read system call. In there I want to replace a key press from keyboards. I successfully was able to do that for terminal inputs by replacing scan codes of ...
0
votes
0answers
27 views

Building android kernel module without exact kernel source and configs

I'm building a very simple android kernel module (returns with no operation in init_module) for my android emulator(that's not a AVD emulator, is a vm on VirtualBox.) Problem Unfortunatly, I've no ...
0
votes
1answer
56 views

Creating LKM using Makefile

As of lately, I have decided to begin learning about OS kernels and came across a few resources to aid in my learning process. Following the tutorial, I setup an Loadable Kernel Module and Makefile, ...
1
vote
0answers
35 views

How do I find out what is loading a given kernel module?

I an using Armbian on an orange pi zero SBC uname -a Linux orangepi 4.19.57-sunxi #5.90 SMP Fri Jul 5 17:58:43 CEST 2019 armv7l armv7l armv7l GNU/Linux This is in relation to displaying Armbian ...
-1
votes
1answer
33 views

Linux kernel register_chdev returned value

This video shows an example Raspberry Pi Linux kernel module which creates a new character device. It uses the kernel API register_chdev. In a comment to the video (I can not generate a direct link to ...
1
vote
2answers
130 views

how to make changes to /sys/module/*/parameters persistent?

I recently had an issue where after boot, my keyboard would not work. I needed to plug it out and in again to use it. The problem was that my usb went into autosuspend, which can be disabled with echo ...
1
vote
1answer
31 views

Unable to build Linux kernel module out of static driver code

I am trying to build a kernel module (.ko) out of a driver that doesn't have module configuration by default. I want to avoid having a built-in driver because I get firmware loading errors. I did the ...
0
votes
1answer
84 views

Disable Analog Audio, Force Default HDMI Audio - Disable / Blacklist snd_hda_intel Module

Im having trouble with my Debian 11 install reverting back to 3.5mm analog audio output, though HDMI is plugged in and where I want the audio to come out of. Debian GUI has no stock way to disable a ...
1
vote
0answers
41 views

The strange power consumption behaviour of a Quadro card when `vfio-pci` has been removed an `nvidial` reattached

I have built a system with a Geforce GTX 960 and a Quadro M4000 graphics card, that I usually pass through to a virtual machine. The GTX 960 card is only used by the host. Normally, the Quadro card ...
5
votes
1answer
1k views

No temperature reading on Ryzen 5700G?

I've built a new computer with a AMD Ryzen 5700G and to my surprise, no sensor information is picked up whatsoever. I thought perhaps the new AMD chips would not yet be recognized by Linux, but the ...
0
votes
1answer
44 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 ...
3
votes
0answers
250 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 ...
0
votes
1answer
119 views

insmod coult not insert module invalid module format

I'm trying to build and install a linux kernel driver for the mcp251xfd. The build appears to be successful (I get the .ko file), but when I call insmod to install it, I get: insmod: ERROR: could not ...
0
votes
0answers
50 views

Kernel Module Removal Crash

I have a custom kernel module that inserts fine with either insmod or modprobe xyz. When modprobe -r is run with xyz kernel module as in modprobe -r xyz, the machine segfaults or otherwise crashes. ...
0
votes
3answers
66 views

How do I make Linux aware of a network interface?

I have a computer on which I've installed a custom linux system (created using Yocto). On a previous computer using this build, the network interface worked fine, but on this new computer, eth0 doesn'...
1
vote
1answer
57 views

I've "bound" an entire IPv6 /64 - now how do I get my kernel to respond to ARP to accept packets?

I'm on CentOS 8 stream. My IP is 2001:570:1:b86::12, and I ran this:- ip -6 route add local 2001:570:1:b86::/64 dev lo and built and ran one of these, and i can now connect (locally) to my server on ...
0
votes
0answers
23 views

How to list built-in kernel modules usage stats as lsmod does?

As lsmod can be executed to result the installed modules that are built with M or externally and their stats (usage), how would the same happen to the built-in kernel modules, I'm curious. I hope ...
0
votes
0answers
16 views

/dev/vsock missing on the Slackware 14.2 VM guest

I have a problem with the missing /dev/vsock device on Slackware 14.2 virtual machine guest. I tried to append to the mkinitrd command vsock kernel module but this device isn't still present on the ...
0
votes
0answers
19 views

Slackware 14.2 huge kernel cannot load 9pnet_virtio module

I am running Slackware 14.2 virtual machine running a huge kernel 4.4.14 on UEFI mode and I have a problem with loading the 9pnet_virtio module. This module is needed for my init script. root@...
1
vote
0answers
108 views

How to load custom kernel module?

How to force linux kernel to load my custom module instead of default one ? There is a file: /lib/modules/$(uname -r)/modules.order Seems like it is responsible to load modules in specific order. How ...
0
votes
1answer
78 views

Are DRM/TTM Linux kernel module needed for a virtual machine with no graphical interface?

In a VMware virtual machine, I have a Debian 11 with no graphical interface (but with an SSH server). I try to blacklist some unneeded kernel modules, like everything related to Bluetooth, HDMI, ...
0
votes
0answers
25 views

When ever new i2c device(slave) is inserted/poweredON, kernel/host has to detect slave device dynamically just like USB. How to achieve it?

The power conditions are that the i2c device(slave) is powered off and the host controller is on. And kernel module should be loaded while booting. When ever new i2c device(slave) is inserted/...
0
votes
0answers
25 views

How can I make a section of initramfs conditional so that I can choose a different graphics card driver from a menu at each boot?

On Debian 11, I would like to have a menu option at boot up time (like on the GRUB menu) that gives the following options: Debian 11 (vfio) Debian 11 (nvidia) And then I want to have a configuration ...
12
votes
3answers
2k views

Debian kernel - why do I need the firmware file if the driver is compiled in the kernel?

I am using this usb wifi device on Debian running on my DE10-Nano board. Looking at the product details, it seems like this uses the RT5370 chipset which is included in the RT2800USB driver. I have ...
0
votes
0answers
23 views

make a linux builtin driver

Recently, i started to work on Linux Device drivers, i want to make a hello world driver builtin the kernel, that is loaded from the boot... i followed this tutorial, [https://hardikpatelblogs....
0
votes
1answer
66 views

Built-in module enabled at kernel configuration is missing

I configured a debian kernel 5.10.57 to add the HSR/PRP module. I enabled it as built-in <*>. Then i compiled and installed the kernel using make deb-pkg and dpkg -i *.deb respectively. The new ...
0
votes
0answers
25 views

How can I add symbols to Module.symvers?

When building a driver from source against 5.14.0-rc5+, I'm getting an error: MODPOST /home/m/repos/bcwc_pcie/Module.symvers ERROR: modpost: "vb2_ioctl_reqbufs" [/home/m/repos/bcwc_pcie/...
0
votes
0answers
76 views

Compatible custom firmware for TL-MR3220 V2 with upgraded 8/64MB memory

First bit of background: I have been using OpenWrt since 2015 on TL-MR3220 V2 with 4/32MB memory. It was running great. Recently, after buying a MI 4A gigabit router I stoped using the TP-Link router. ...
0
votes
1answer
2k views

How do I fix a "module not found" error?

I want to get a bluetooth-usb-stick running. In the terminal, I enter sudo modprobe btusb, but the output is: FATAL: Module btusb not found in directory /lib/modules/5.11.0-25-generic. I am on a ...
0
votes
1answer
172 views

brcmfmac, brcmfmac_module_init No platform data available

I've update my kernel version from 4.11 to 5.4.3-g9c2490ac8-dirty #3 SMP PREEMPT Sun Aug 8 12:11:16 UTC 2021 armv7l GNU/Linux I have an issue with brcmfmac kernel module. I have enabled brcmfmac debug ...
0
votes
0answers
153 views

rmmod fails with 'module abc is in use' message

I've tried several methods in other answers including this one but couldn't find a solution. After my driver crashed, and after the shell comes back, normally I could remove the module and insert the ...
1
vote
0answers
105 views

how to write logs to specific file from kernel space?

I have a kernel module that uses printk() for debugging. printk() logs to /var/log/messages. /var/log/messages contains information of other modules too. I am trying to implement dynamic tracing for ...
0
votes
1answer
100 views

how to get the version of a loaded kernel module in docker container

lsmod can list the loaded modules inside the container. Module Size Used by pci_hyperv_intf 16384 1 mlx5_core igb_uio 20480 2 uio 20480 5 ...
0
votes
1answer
29 views

How does one misc driver control all this different hardware?

I'm learning driver development and according to the book I read, all Linux devices of same type have same major number are controlled by same driver so for example if we have a computer with multiple ...

1
2 3 4 5
21