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
0 votes
0 answers
11 views

ath11k_pci: failed to connect to HTT: -110

I have Qualcomm QCNFA765 wifi card. I am using custom-compiled kernel 6.1.55 and I have ath11k_pci in the kernel, and all firmware files are loaded successfully. Yet, when booting, I see on the ...
Martin Vegter's user avatar
1 vote
0 answers
17 views

eBPF vs verified Linux Kernel Modules

In what way is eBPF superior to a kernel module verified on the user-side? I'm not disputing the value of verified code; both approaches would be fully statically verified. Both approaches require ...
charmoniumQ's user avatar
1 vote
1 answer
74 views

What exactly does the br_netfilter kernel module control?

I'm trying to get a clear understanding of what exactly the br_netfilter Linux kernel module does (I know it has something to do with networking). My simple question I'm posing here is as follows: ...
user1015214's user avatar
0 votes
0 answers
30 views

What does it take to update kernel from 3.x to 5.X on qualcomm fsm99XX small cells platform

As of now qualcomm fsm99xx is on 3.10.84. 3.10.84 is given by qualcomm after a lot of extensive changes. we are trying to update it to 5.10 without support of qualcomm (as they don't support any more)....
Pavana varanasi's user avatar
2 votes
1 answer
521 views

What's the reason to add a symlink to /dev directory with udev rules?

I understand that you can write custom udev rules to create a symlink in /dev directory. But what is the use of having a symlink in /dev? What is the symlink linking to? I know you can interact with ...
Dr. Chocolate's user avatar
0 votes
1 answer
25 views

How can install and load mods related to videodev and others?

Same hardware,two debian-11.7 installed in the same pc ,one is on /dev/sda1,other is on /dev/ada2. For the debian on /dev/sda1: uname -a Linux debian 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-...
showkey's user avatar
  • 99
0 votes
0 answers
17 views

ext4:disagress about version of symbol dquot_alloc,ext4:unknown symbol dquot_alloc(err -22)

I am customizing a Linux system and I am not sure why. I have entered the following interface:
ABeginner's user avatar
  • 101
0 votes
0 answers
62 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
  • 193
1 vote
0 answers
17 views

tlv320aicx(audio codec) device tree

I'm trying to get solve a kernel message that I'm getting from the tlv320aicx driver. (linux-5.4) The original error was Invalid supply voltage(s) AVDD: -22, DVDD: -22 I was able to locate to the ...
Dukel's user avatar
  • 11
0 votes
0 answers
27 views

"rmmod g_hid" causes kernel crash: "Device 'hidg.0' does not have a release() function, it is broken and must be fixed"

I am getting the below kernel crash when I try to rmmod the g_hid module. Can someone provide me with a lead? [ 261.125986] ------------[ cut here ]------------ [ 261.130656] Device 'hidg.0' does ...
Ajita's user avatar
  • 1
0 votes
1 answer
105 views

modprobe: ERROR: could not insert 'efivarfs': No such device

when I run efibootmgr command: efibootmgr --create --disk /dev/sdb --part 1 --loader /EFI/syslinux/syslinux.efi --label "Syslinux" --unicode I get this error: EFI variables are not ...
Martin Vegter's user avatar
0 votes
0 answers
23 views

How to add a signing key for modules in OpenSUSE Leap 15?

Well, I thought I could use openSUSE Leap 15.5 "out of the box" (in my case: after upgrading from 15.4), but I have the problem that a kernel module (WLAN driver) is not accepted by the ...
U. Windl's user avatar
  • 1,104
0 votes
0 answers
12 views

Linux kernel function 'lookup_page_ext' returning NULL

I am new to Linux kernel programming. I am writing a kernel module for Linux kernel-6.0 Here is the below code static int count_wired_pages(unsigned long start_pfn, unsigned long end_pfn) { ...
Parth Gangar's user avatar
0 votes
2 answers
151 views

Keyboard stopped working on Lenovo Yoga Slim 7 ProX (AMD) 14ARH7 (EndeavourOS)

After a recent system update, the built-in keyboard stopped working propperly. I googled the issue, but there seems not to be any known issue. The problem arose on July 29, 2023 after upgrading the ...
T_Torture's user avatar
  • 121
0 votes
0 answers
25 views

Using Strongswan IPSEC in Nvidia Jetson Device causes kernel crash - BUG: scheduling while atomic: swapper

I have an Nvidia Jetson Orin Nano with Linux for Tegra kernel 5.12. I'm trying to use Strongswan which requires some modules to be set, which I did. However, it seems that it is missing other kernel ...
Spider's user avatar
  • 101
2 votes
1 answer
71 views

Linux kernel module softdeps that don't have pre: nor post: specified

CIFS has a softdep dependency generated by kmod in /lib/modules/*/modules.softdeps that goes like this: softdep cifs gcm softdep cifs ccm softdep cifs aead2 softdep cifs sha512 softdep cifs sha256 ...
konsolebox's user avatar
  • 1,245
-1 votes
1 answer
89 views

Why are drivers compiled into the kernel? Why aren't more drivers distributed as dynamic kernel modules?

I'm still new to understanding the Linux kernel so please forgive the basic question. If you could point me to resources that I could read/watch that would be greatly appreciated. Coming from Windows, ...
David Alsh's user avatar
1 vote
0 answers
24 views

xorg server crashes because of custom kernel

I did compile custom linux kernel, without using modules, but when I try to start x server, screen freezes, it even does not allow switch to other tty. The major difference in logs of X server is the ...
CalmTechie's user avatar
1 vote
0 answers
8 views

Using 1.69" spi display with NanoPi M1 Plus

for quite a few days I've been trying to get this TFT display to work with my NanoPi M1 Plus and I used the zip file provided in the link which actually worked but only for using it with the python ...
Muhammad Mirab Br.'s user avatar
2 votes
1 answer
971 views

Insmod causes key rejected by service

I am running AlmaLinux 9 (RedHat 9 clone) and have compiled a new kernel module. I am running in a VM with UEFI and secure boot enabled. When I insert the module I get the following error: insmod: ...
TSG's user avatar
  • 1,630
1 vote
1 answer
276 views

How can I create the kernel headers for ARM on X86?

I have an ARM-based board, which I used with factory kernel (5.10.110). To manually build a kernel module, I needed the kernel-header package. To install this package it was explained in the ...
Daniel's user avatar
  • 319
0 votes
1 answer
43 views

Load kernel modulebusing qemu

I have a kernel module (ko) file that is designed for the aarch64 architecture. I'm currently attempting to use qemu on a non-aarch64 system to utilize this aarch64 kernel module for mounting a ...
Polo1990's user avatar
0 votes
0 answers
106 views

Linux Kernel Memory Leak with Mediatek mt76x0u USB WiFi Chipset Related to skbuff_head_cache

I am running Linux 6.1 on a 32-bit ARM Microchip SAMA5D27 processor. The board has 256 MB of RAM. I am attaching a USB dongle to the board with the Mediatek mt76x0u chipset. On bootup I use SystemD to ...
PhilBot's user avatar
  • 79
0 votes
1 answer
263 views

pwmconfig can't find fans, which are modifiable in uefi Bios

I would like to change the fan speeds on my PC. In the Asus BIOS settings, this is possible with PWM and DC (three of them are connected with 4 pins), but the running operating system seems to have ...
user7954302's user avatar
0 votes
1 answer
102 views

zfs-2.1.12 with kernel 6.3.8-200.fc38.x86_64

zfs latest version is supposed to run on 6.3, but on fedora 38 (after installed zfs-2.1.12-1.fc38.x86_64) I get this after issued modprobe zfs: modprobe: FATAL: Module zfs not found in directory /lib/...
Tiutto's user avatar
  • 1
0 votes
0 answers
17 views

Debian based arm SBC can not use bluetooth

I have arm64 SBC with Debian 11 installed on it. As a communication I need to use bluetooth, for which sparkfun WPEQ-261ACNI(BT) was provided. it uses qualcomm chip on it and Debian 11 detect the wifi ...
silent-mobius's user avatar
0 votes
0 answers
105 views

Installing matching kernel-headers

I am trying to install kernal-headers for the kernel 6.0.7-301.fc37.x86_64 on fedora, but dnf only gives me these options: Name : kernel-headers Version : 6.3.3 Release : ...
user7954302's user avatar
0 votes
0 answers
83 views

Failed to unload kernel module: Resource temporarily unavailable

I am working on an embedded Linux (kernel-5.10.24). I hit an error when I tried to unload RTC driver module, it was: # lsmod rtc_test 6490 1 - Live 0xc02f5000 # modprobe -r rtc_test modprobe: remove '...
wangt13's user avatar
  • 327
0 votes
0 answers
33 views

run max3421 on device with 3.18 Linux kernel

I need to run USB over SPI on the board which supports only 3.18 kernel. We use MAX3421 because driver for it is in kernel source. I add to device-tree : &spi_1 { status = "ok"; ...
ulad.by's user avatar
0 votes
1 answer
120 views

Buildroot kernel module reports invalid module format

I am working on building a test kernel module in Buildroot for a Raspberry Pi target. My host machine is x86, running Ubuntu 22.04.1. I have been following along with several tutorials, including this ...
Chris Fernandez's user avatar
0 votes
0 answers
35 views

usbip on centos 7 x32

I'm trying to enable kernel module to support usbip functionality, but unlike the 64 bit version x32 hasn't relevant section in elrepo repository to download and install necessary packages. Are there ...
Clock's user avatar
  • 13
0 votes
0 answers
82 views

Unable to parse HTTP packet using netfilter hooks in kernel module

I am trying to parse HTTP packets using netfilter hooks in my kernel module. I came across this code snippet on How to print data from TCP packets which I modified to make it build. However, I am ...
goodman's user avatar
  • 101
0 votes
0 answers
284 views

Error when building kernel module using dkms

I have a notebook running Kubuntu 22.04.2 LTS with a rtl8852be network card. I installed the source of the driver in /usr/src/rtl8852be-5.15 and added the following dkms.conf file to the directory: ...
FrankZ's user avatar
  • 141
0 votes
1 answer
82 views

How can I enable RTW88_8723Du driver when realtek sub options aren't being shown in Menuconfig

I am building linux kernel 6.3 with localyesconfig. Then, I am trying to enable CONFIG_RTW88_8723DU=y or CONFIG_RTW88_8723DU=m When running menuconfig i can see the option to enable in Linux Kernel ...
Bret Joseph's user avatar
0 votes
1 answer
99 views

How can I remotely debug linux module using GDB?

I searched all over the internet but couldn't find proper steps to debug linux module remotely using gdb. I am tring qemu but facing many issues there. Is there any other tool that I can use or if not ...
Sumit Patil's user avatar
0 votes
0 answers
251 views

Persistent Arch Linux USB installation only (automatically) bootable on USB 2.0 ports

Short form: Booting Arch Linux from USB Device is possible without problems using a USB 2.0 port. Some custom persistent Windows Installation from another identical USB Device also bootable without ...
Jonas Dedden's user avatar
1 vote
0 answers
138 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
1 vote
1 answer
415 views

Intel wifi card not using iwlwifi module

I just installed debian bullseye on a lenovo Thinkpad X1 Carbon Gen 10. The installation process was pretty straightforward. Except for one part: networking. During the installation, it said the wifi ...
Jbb's user avatar
  • 111
3 votes
0 answers
203 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
1 vote
1 answer
302 views

OpenZFS and Linux Kernel versions compatibility question

Each new release of openZFS has a range of supported linux kernel versions (for example openZFS v2.1.9 supports kernels versions between 3.10 and 6.1) But when I run zfs version I get: root@pve:~# zfs ...
Héctor's user avatar
  • 258
0 votes
1 answer
154 views

information regarding can, can-dev kernel modules on Debian GNU/Linux 10 (buster) Linux 4.19.94-ti-r42

I seem to be missing a couple of kernel modules. Specifically, can and can_dev. The modules don't load when I run modprobe can or modprobe can-dev. The reason for this I believe is because the modules ...
HPVoxx's user avatar
  • 1
1 vote
0 answers
36 views

Determine minimum kernel options for your hardware

I know this is totally unnecessary, but I like the idea of determining exactly what modules my hardware needs and running a kernel with only those in it and no more. However, in the massive plethora ...
ScottishTapWater's user avatar
2 votes
0 answers
46 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
0 votes
0 answers
114 views

how to install vfat module in centOS8? (it got lost in upgrading from centOS 7)

In the process of upgrading from centOS 7 to 8 something went wrong. At the moment my system boots only in recovery mode, because it cannot mount /boot/efi. Other people has discussed issues on boot/...
Rho Phi's user avatar
  • 287
1 vote
1 answer
188 views

How to use gettimeofday in the kernel module?

I'm trying to use the following code in the kernel module struct timeval now; gettimeofday(&now, NULL); But getting following error while compiling kernel drivers/media/i2c/ox05b.c:776:17: error:...
Omkar Dixit's user avatar
1 vote
1 answer
305 views

Linux Traffic Control (tc) not working without reboot

When trying to run tc qdisc add dev $INTERFACE root handle 1: prio priomap 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 tc qdisc add dev $INTERFACE parent 1:1 handle 10: netem loss "${LOSS}"% I ...
dsuma's user avatar
  • 111
0 votes
0 answers
43 views

How to simulate a PC speaker?

I bought a modern laptop which seems to lack a hardware speaker. Is there some kernel module to simulate it over ALSA instead or so? I could find only some very old patched modules from late 90s which ...
bodqhrohro's user avatar
1 vote
1 answer
316 views

Reading PHY MII registers beyond 0x1F

I am having some issues with a DP83826 PHY and therefore I want to read some configuration registers. I have used mdio-tool and mii-diag for it, but I just realized that I can only read the first 32 ...
ldd3's user avatar
  • 71
0 votes
0 answers
336 views

Shared memory between user module and kernel module

I'm kind of new to kernel development. I have a custom kernel module that needs to "communicate" some tcp network parameters to a user-level module (a python script). I don't want to rely on ...
Lorenzo Pappone's user avatar
0 votes
0 answers
79 views

How to build kernel after modifying specific files?

I'm new in kernel development and I modified two kernel files for a research project. Now, I already know how to do a fresh building of the kernel source code and that is what I did. I'm asking if I ...
Lorenzo Pappone's user avatar

1
2 3 4 5
24