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
1 answer
13 views

Using Debian Stretch to build 5.15.x kernel with zstd compression fails with incorrect parameters

I had to move from Jessie to Stretch as kernel 5.15.49 requires gcc 5.x version (Jessie had 4.9 version Stretch 6.x). I decided to try the ZSTD module compression option in 5.15.x. I ensured to apt-...
user avatar
0 votes
0 answers
15 views

Reconnecting USB device quickly crashes the system

I am trying to reconnect several USB devices (ZTE MF823 modems) on the debian server and sometimes it makes the system crash , this is the output of dmesg -Hw P.s It is using USB2 Any related ...
user avatar
  • 1
3 votes
1 answer
34 views

How to fix an apparenlty missing kernel module dependency declaration?

I've encountered a relatively common problem with ASIX AX88179 USB 3.0 Gigabit Ethernet adapter, where it was not working at all, or was working sporadically, and dmesg was showing errors like [23552....
user avatar
  • 1,691
1 vote
0 answers
11 views

Complete kernel hang after adding bluetooth to system devicetree

I am working right now at adapting yocto distro to run on custom, imx8mm-evk based hardware. I was mostly changing linux devicetree to fit new board needs and everything was fine, but when I added ...
user avatar
  • 11
0 votes
1 answer
38 views

Driver for AX88179 Gigabit Ethernet

I have the following Ethernet to USB-C adapter: $ lsusb | grep Ethernet Bus 002 Device 003: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet Currently it is not working when plugged into ...
user avatar
  • 1,691
0 votes
0 answers
13 views

Raspberry Pi CM3 UART1 kernel modules not loading

I am trying to build a Raspberry Pi cm3 Yocto image. I am current on the sumo branch of yocto and my kernel version is rpi-4.9y. I want to uart1 on pin 32 and 33 for which I updated my device tree ...
user avatar
1 vote
2 answers
51 views

Start a graphical application from kernel module?

My current problem is that: on my Acer Nitro laptop keyboard, there is a Nitro key - which is a special key that no other laptop brand has. You see in the image below that there is a weird N key next ...
user avatar
0 votes
0 answers
33 views

init.h not installed

So, I am trying to build a simple kernel module in manjaro. The following is the code #include <linux/kernel.h> #include <linux/init.h> #include <linux/module.h> static int __init ...
user avatar
3 votes
1 answer
27 views

Writing a kernel driver - knowledge of specific interrupt pins

I don't have knowledge about writing Linux kernel modules / drivers. Let's take a basic example. I have an input device of my own which is connected to a microcontroller on one of the interrupt pins. ...
user avatar
1 vote
0 answers
49 views

Where in the kernel init code the static modules are loaded?

Looking at init/main.c#start_kernel it's not clear where the statically linked kernel modules are loaded, neither how the kernel gets a list of them. So, where are the statically linked kernel modules ...
user avatar
  • 13
0 votes
0 answers
10 views

Reading from a Parallel Port Tape Drive using paraide

I have some old QIC-80/DC-2120 tapes in storage that I wanted to pull the data off of. Although the original Colorado 250MB drives can be found on eBay, I didn't have any machines with a floppy ...
user avatar
  • 800
0 votes
0 answers
11 views

btusb.ko file missing...Getting "Module not found error" [duplicate]

I have the issue of not being able to use my USB Bluetooth adapter(It is a CSR 4.0) on my Ubuntu OS 20.04.4 LTS with GNOME version 3.36.8... Normally this USB stick works perfectly on my Windows but ...
user avatar
0 votes
1 answer
23 views

What's the difference between kmap and page_address in x64 system?

kmap() allows you to map a page to some address that functions in kernel or modules can access. While page_address() also allows you to retrieve the address to access the page. It says that kmap() is ...
user avatar
0 votes
0 answers
144 views

Kernel 4.15.0-177-generic on Ubuntu 18.04.6 causing slow login and device boot

I recently got upgraded from kernel 4.15.0-176 to 4.15.0-177. I am running Ubuntu 18.04.6. The upgrade seems to have caused some issues; Boot up is slow. I get "A start job is running for /boot/...
user avatar
  • 143
0 votes
0 answers
73 views

Use v4l2loopback in docker, /dev/video0 missing in docker

I have installed v4l2loopback in the docker container using the following commands apt update apt install -y apt-utils apt install sudo sudo su root - apt-get install -y module-assistant m-a prepare m-...
user avatar
0 votes
0 answers
21 views

PCIe kernel module UIO PCI GENERIC

I build petalinux 18.03 for PICe application for zcu102 Xilinx card. When I debug simple PCI read/write I get an error saying he can't load this driver from Linux file system: uio_pci_generic So the ...
user avatar
2 votes
0 answers
52 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 ...
user avatar
1 vote
1 answer
29 views

PPS on focal/20.04 timed out and never recovers

we recently have upgraded to a new industry PC from Vecow/Plugin and to Ubuntu 20.04 from 18.04. From the BIOS (build date BIOS ~17.02.2022) and the IO chip according to it is a SuperIO 8786: https://...
user avatar
0 votes
0 answers
116 views

ksmbd on Ubuntu 22.04

I'm running Ubuntu 22.04 desktop, and I heard about the new ksmbd kernel module. I've upgraded the system from version 21.10. As of right now I have samba server and I want to migrate to the new ksmbd....
user avatar
  • 103
0 votes
0 answers
38 views

Invalid module format and dmesg errors

Every time I try to insert a Linux kernel module, I get the error "Invalid module format". When I enter dmesg, I get the following message: [43862.487726] module: x86/modules: Skipping ...
user avatar
0 votes
0 answers
15 views

How could Linux kernel driver get output from the other module or command?

I'm writing a new driver that need to get some output from the other kernel driver. For example, Driver A need to get the physical dma address from Driver B. I think, I could write a ioctl char device ...
user avatar
0 votes
0 answers
30 views

Who loads bridge.ko modules when Linux system starts?

When my CentOS Linux system starts, bridge.ko and ebtable_broute are loaded, I'd like to know which module is loading these modules. [root]# lsmod | grep bridge bridge 266240 0 stp ...
user avatar
  • 1
0 votes
0 answers
30 views

Why does device registration not create a device file?

I'm currently learning about Linux device drivers and feel as if I have a fundamental misunderstanding on how devices are instantiated in Linux. Within a Linux module, I can call alloc_chrdev_region() ...
user avatar
  • 597
0 votes
1 answer
154 views

Lenovo USB-C "hybrid" dock connected during boot: Boot hangs and zpool does not get loaded

I am trying to make a Lenovo Thinkpad P52 work with an Lenovo USB-C Hybrid Dock (40AF, see docks to avoid ...) on Linux Mint 20.3 Una a.k.a. Ubuntu 20.04. What a ... journey ... The laptop has its /...
user avatar
  • 405
4 votes
1 answer
172 views

How come Fedora ignores `module.sig_enforce` kernel parameter if SB is enabled but Arch does not?

I recently secure-booted Arch and Fedora on my RTX3050 equipped laptop. As is the common knowledge, I had to sign my Nvidia modules on Fedora for the kernel to load them. However, I find that same is ...
user avatar
  • 43
1 vote
0 answers
181 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: ...
user avatar
0 votes
0 answers
56 views

Many "cannot determine ksym provides" errors when packaging vanilla Kernel (git tag v5.17)

I am trying to build a RPM package for openSUSE Leap 15.2, because I need some special drivers, which are not implemented (or not back-ported) to Kernel v5.3. Cloned the GitHub repository from Linus ...
user avatar
  • 101
0 votes
1 answer
320 views

update-initramfs does not fully create initrd for new kernel

I seem to be having a bizarre problem installing a new custom kernel. update-initramfs fails during dpkg -i with: update-initramfs: Generating /boot/initrd.img-5.15.7-hardened1-test1 find: ‘/tmp/user/...
user avatar
  • 43
0 votes
1 answer
85 views

USB Wifi no available hardware connection

Just received a USB Wifi adapter Tp-Link Archer T4U and it is not shown in the available network connections. Running Fedora 35. # lsusb -v -d 2357:0115 Bus 003 Device 004: ID 2357:0115 TP-Link ...
user avatar
  • 306
1 vote
1 answer
77 views

Can't compile Kernel module with KBUILD_CFLAGS_MODULE

I'm having trouble to compile kernel modules with KBUILD_CFLAGS_MODULE with new kernel. The compiler shows me a weird error. Such builds used to work with my older kernel (5.5) but does not work ...
user avatar
  • 133
1 vote
0 answers
18 views

Can I use udev to control which kernel module is loaded for a device

I have 2 devices (TM-S1000 cheque scanner, TM-70/TM-70II receipt printers) that I need to support. Unfortunately both of these devices have the same vendor and product ids: 04b8:0202 and the same ...
user avatar
0 votes
0 answers
41 views

external module entry is not present in modules.builtin

I am trying to build the 'xyz' external module which is present in drivers/leds/. Also added the module in drivers/leds/Kconfig as well as in Makefile. The 'xyz' module is able to compile and also xyz....
user avatar
2 votes
1 answer
50 views

Is it possible to set up a new device with an existing driver on linux when the modalias doesn't match?

I have a USB device that I am using with Ubuntu 20.04.3. The manufacturer provided a library and a driver. I can install the driver and get the device to work, but every time the kernel updates I must ...
user avatar
0 votes
1 answer
57 views

Out-of-tree kernel module won't load

I'm trying to get an out-of-tree kernel module working. The module is the usbtm module from Epson for their TM-70/TM-70II slip printers and the TM-S1000 cheque reader. (The code is GPL licensed, so if ...
user avatar
0 votes
0 answers
99 views

booting after emergency mode in debian

My laptop stopped booting after (I think) an update. I'm saying think, because booting with the previous kernel version does not work either. I'm running Debian with kernel 5.10.0-10-amd64. After ...
user avatar
0 votes
0 answers
107 views

Errors installing nvidia-driver from buster-backports

I have been using proprietary NVIDIA drivers for my GTX 1650s graphics card with Debian 10. I wish to install nvidia-driver from buster-backports however I am encountering errors. First, I removed the ...
user avatar
0 votes
0 answers
22 views

What is the difference between kernel feature and kernel module

I'm trying to understand seccomp and I understood it is a kernel's feature. On the other hand, I know we could see kernel modules by running lsmod. So, the question is, Why can't I see seccomp in ...
user avatar
  • 31
1 vote
1 answer
131 views

Strange error message when I boot my Debian Buster AMD64 - sep5_30

I can ssh via another pc but I can't get the login page of the Debian, the boot seems to be stopped. I suspect "Intel vtune" from oneAPI Intel driver to put the mess but I don't know how to ...
user avatar
2 votes
1 answer
511 views

What is the equivalent packages build-essential and linux-headers-<xxxx> in alpine?

I want to build kernel modules in Alpine, I know how to do it in Ubuntu. In Ubuntu I used to install kernel headers by running: apt install -y build-essential linux-headers-$(uname -r) What is the ...
user avatar
  • 301
0 votes
1 answer
23 views

kernel config, CONFIG_CRYPTO_RSA, what is this config for?

I checked: https://cateee.net/lkddb/web-lkddb/CRYPTO_RSA.html The help text is: Generic implementation of the RSA public key algorithm. Is this driver for an encryption HW device, ex: from Intel/AMD ...
user avatar
  • 391
0 votes
1 answer
208 views

request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module xxxxxx, throttling

I am seeing this log: request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module foo, throttling... I don't understand what does it mean? auto load too many modules?
user avatar
  • 391
0 votes
0 answers
229 views

How do I get VirtualBox to run on Arch?

When I try to start up a Windows 7 VM, I get 2 popup error windows. The first says: Failed to open a session for the virtual machine Windows7Box. The virtual machine 'Windows7Box' has terminated ...
user avatar
0 votes
0 answers
326 views

Kernel module build can't find find symlink folders: Makefile: No such file or directory

I have a simple kernel module that creates a reverse shell. I created my Makefile like that: cat << EOF > Makefile obj-m +=${module_name}.o all: make -C /lib/modules/$(uname -r)/build ...
user avatar
  • 301
0 votes
0 answers
25 views

Reconfigure module dynamically without unloading

I want to change parameters of the loaded modules without unloading them. For example, I have loaded snd_aloop module with the following command line: modprobe snd_aloop index=3 id=fx enable=1 ...
user avatar
0 votes
0 answers
37 views

dummy_hcd loopback webcam. Impossible?

I've been trying to create a loopback USB Webcam device with the help of dummy_hcd kernel module. Steps I've taken: I load libcomposite via modprobe libcomposite. Then I load dummy_hcd via modprobe ...
user avatar
  • 111
0 votes
0 answers
42 views

How do I recompile a single device driver

Okay, on Debian I'm trying to make some changes to a single module (parport_pc.c) but when I recompile the kernel, the .ko is not remade. I'm following the build instructions published by Debian (...
user avatar
1 vote
0 answers
40 views

Load kernel modules from neighbor kernel

I use Manjaro Linux based on Arch. It has several kernels. The regular kernel is 5.15.15-MANJARO works fine with VitualBox. The second one is 5.15-AnboxMod. I need to share vboxdrv.ko.xz and other ...
user avatar
  • 371
3 votes
1 answer
314 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. ...
user avatar
  • 41
0 votes
1 answer
281 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 ...
user avatar
0 votes
1 answer
359 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 ...
user avatar

1
2 3 4 5
22