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.

266 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
409 views

Shell script for automated kernel compilation

I am trying to write a shell script to build a custom kernel on Arch Linux. I have succeeded to do write all the steps described in the Arch Linux kernel compilation page: https://wiki.archlinux.org/...
2
votes
0answers
314 views

How are network and SCSI kernel modules handled differently from other kernel modules?

I used modprobe to load the 8021q.ko module on a server. I expected to have to do this every time the server rebooted until I made it persistent. However, to my surprise, it was loaded automatically ...
2
votes
0answers
664 views

Failing to load a module on udev event

I have a pretty simple udev rule which is executed when a USB is plugged into my Debian machine: SUBSYSTEMS=="usb", KERNEL=="sd?", ACTION=="add", RUN+="/usr/local/bin/USB/t.sh \ %k" My t.sh is also ...
2
votes
2answers
923 views

rts5139/rtsx_usb borked in 3.15+

Some time in 3.15, someone moved the rts5139 driver out of staging (I cannot find a changelog of this) and it got renamed to rtsx_usb. This, unfortunately, broke support for at least the RTS5139 card ...
2
votes
2answers
873 views

How can I install Fedora with a newer kernel?

I want to install Fedora on my computer with a netinstall, but it seems that the kernel doesn’t support my ethernet chip (Intel I218V). I tested Ubuntu 14.04 and Arch Linux and the ethernet chip ...
2
votes
0answers
356 views

How can I set up an offbrand display link (Trulink) to work with arch linux?

I recently bought a USB to DVI adapter and it works great in Windows. However, I wanted to use it on Arch since that's where I do most of my work. Unfortunately it doesn't work. I've installed all ...
2
votes
0answers
293 views

kernel build: why does 'make install' complain about missing modules?

I'm building a 3.2.x kernel on a RedHat Enterpise system. During 'make install' it takes a very long time and is complaining: ERROR: modinfo: could not find module xxx I assume its probing ...
2
votes
0answers
1k views

Can only initialize Ad-hoc mode after restarting iwlwifi mod and network manager

I am running Ubuntu 12.04.4 with network interface: *-network description: Wireless interface product: Centrino Advanced-N 6235 vendor: Intel Corporation ...
2
votes
1answer
456 views

Debian 6 NDISwrapper doesn't install correctly

I'm using Debian 6. I've been trying to set up the Netgear N300 WiFi (model number WNA3100) adapter but haven't been successful. The Ndiswrapper was installed from .deb packages which I downloaded on ...
2
votes
0answers
673 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 ...
2
votes
0answers
762 views

Debian Wheezy USB2 ehci_hcd

I have a friend who decided to switch to Linux from Windows. I was helping her to get up and running as quickly as possible but we ran into a problem which I can't seem to solve. She uses Debian ...
2
votes
0answers
803 views

How to load kernel module in Chromium OS?

I've installed the Chromium Vanilla by Hexxeh to a USB drive, but I can't use it on my computer because it lacks the carl9170 driver, which is needed by my adapter (a D-Link DWA-160.) I've managed to ...
2
votes
1answer
1k views

How to configure buildroot to add a sound device?

I've used a given board configuration to reconfigure it for my individual board. My board has a CS4270 sound device of Cirrus Logic. My uImage is booting successfully on my target hardware, but an ...
2
votes
0answers
401 views

How to find where driver.mod.c links to?

I'm trying to port the webcam composite gadget from kernel 2.6.37 to 2.6.32. I don't have a choice on this since I depend on other drivers and a SDK which only compile for this version. My train of ...
1
vote
0answers
124 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 ...
1
vote
0answers
17 views

Set i'th value of kernel module array with command line arguments

Given a kernel module arraymod.c with the following array declaration: static int myintArray[2] = { -1, -1 }; static int arr_argc = 0; module_param_array(myintArray, int, &arr_argc, 0000); ...
1
vote
0answers
20 views

How to find the changes done to a particular kernel module through all releases

I need to access source code of all past versions of read_write.c under /fs/ from 3.10 to 5.3. So far I had to go through https://elixir.bootlin.com/ repeatedly and look at every single version that ...
1
vote
0answers
42 views

Distributing a Module.symvers

I'm creating a set of kernel modules. Each module is its own project. One of these modules provides an interface to many child modules. ie. One parent module has exports and the child modules import. ...
1
vote
1answer
35 views

modinfo on running module without the corresponding .ko file

I can use modinfo on a .ko file. Is there any way to use modinfo on module that already running, that I can see with lsmod, but I don't have the .ko file for?
1
vote
0answers
29 views

New loopback device module does not show trace in wireshark

I am trying to write a network device driver that can duplicate the functionality of the loopback device. I modified the code available at the link. I am testing on Linux 4.8. I removed code related ...
1
vote
0answers
75 views

Why is my gpio access from user space slower?

I did some research on how good I am able to access a gpio while other heavy tasks are executed. With a first test I toggeled a gpio pin from user space using the libgpiod API. With a second test I ...
1
vote
0answers
363 views

ASUS USB-AC68 not connecting in Linux Mint

I recently bought a ASUS USB-AC68 which uses the Realtek RTL8814AU chipset, to replace the outdated WiFi card of my (new) PC, but there are no downloadable Linux drivers from the OEM. At the directive ...
1
vote
0answers
40 views

How do I build the mainline kernel with all default Ubuntu modules?

My normal way of building a mainline kernel has been: $ sudo apt build-dep linux $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $ cd linux $ make localmodconfig $ make -...
1
vote
0answers
51 views

Can I replace bzImage and ko files in installed modules separately?

I'm currently trying to debug a kernel module. After installing the kernel, I'm trying to change the kernel a little and a single module a little and see how things work. When I changed the kernel ...
1
vote
0answers
124 views

Trying to use local APIC timer

I'm trying to use the local APIC timer to send interrupts after a certain interval (for a kernel module I am writing). This is not related to scheduling in Linux. I set the clocksource in Linux to ...
1
vote
0answers
72 views

How are Linux kernel modules installed into the Android system.img

I have a question relating to building OS images for devboards such as the Hikey960 and Hikey970. When building a Debian image one has to install the kernel modules built in the kernel into the ...
1
vote
1answer
161 views

“OOPS” kernel message when unloading a module

Sometimes I receive the flollowing logs from kernel when trying to unload a module using delete_module system call: static inline int delete_module(const char *name, int flags) { return syscall(...
1
vote
0answers
163 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 ...
1
vote
1answer
84 views

Order of kernel upgrade commands for gentoo

I have simple bash script to update the kernel. It includes building the kernel, rebuilding external modules, building initramfs with genkernel and updating grub config, here is the script: #!/bin/...
1
vote
0answers
140 views

Compiling module on OpenWRT: make can't find build directory

My setup: OpenWRT 18.06.1 Raspberry Pi 2 B Kernel 4.9.120 Attempting to build a very simple hello world kernel module results in the following error: # make make -C /lib/modules/4.9.120/build M=/...
1
vote
0answers
159 views

How to insert a module in qemu where module is in guest system?

I am running qemu first time so I don't have much knowledge of it. I am having a kernel module hello.ko and I want to insert it in kernel using insmod in an OS running in qemu and this module is ...
1
vote
0answers
142 views

Crypto CBC module doesn't show up in /proc/crypto

I want to decrypt an old volume that's using aes-cbc-plain So I am on arch linux kernel 4.9.130 I enabled the cbc as modular in the kernel and installed the modules and the kernel. CBC shows up in /...
1
vote
0answers
330 views

Cannot load compressed Kernel module?

I tried to load "hid-a4tech," but I got error the messages below: [net_client@netarchwork ~]$ modprobe hid-a4tech modprobe: FATAL: Module hid-a4tech not found in directory /lib/modules/4.18.7-...
1
vote
0answers
81 views

what is inside weak-update folder?

First, installed a driver package to OS (ex: CentOS ) -- foo_1.0.rpm Second, install the same driver but different version -- foo_2.0.rpm by rpm -ivh --force foo_2.0.rpm It seems an extra folder ...
1
vote
0answers
91 views

Armbian: dm-raid module has gone missing

I'm running Armbian (stretch) on an OrangePi PC 2. This is how the OS identifies itself on SSH login: Welcome to ARMBIAN 5.58.180813 nightly Ubuntu 16.04.5 LTS 4.18.0-rc8-sunxi64 I just updated my ...
1
vote
0answers
73 views

How to recompile and run a prebuilt linux kernel driver as a custom module?

I am able to create a custom basic module (hello wrold kernel) and use insmod to load it into kernel space. However what I need now is to be able to use slip.c code by its entirety (copy and paste) ...
1
vote
0answers
258 views

HWMon interface for I2C thermal device (TMP102, 3.10) - missing sysfs files

I am trying to get the TMP102 kernel module functioning on an x86_64 machine running CentOS 7.6 (kernel 3.10). The system has 3 TMP102 sensors attached to an I2C bus (Designware I2C adapter). When I ...
1
vote
0answers
556 views

Utilizing UART/Serial port driver inside another Linux module/driver

I am implementing a network module/driver in Linux which uses net_devices structure. And so far I have been able to add and remove my module to and from kernel space using insmod command. Via ifconfig ...
1
vote
0answers
316 views

how to use ftrace to function_trace a kernel modules interrupt?

I have a Banana Pi Arm device with 2 cores (1.2 GHz) running a Debian kernel which I enabled ftrace kernel debug options. I want to determine the amount of time spent in a kernel module function. The ...
1
vote
0answers
195 views

Wifi requires rmmod and modprobe commands

For some months now, I have had to run rmmod bcma wl && modprobe wl after booting to get my wifi to work on my Macbook Air from 2012. The network card is Broadcom's BCM43224. I'm using Arch ...
1
vote
0answers
314 views

`acpi=off` results in `BUG: unable to handle kernel NULL pointer dereference`

Background I have been getting spontaneous crashes on my newly built NixOS machine. I am trying out different configuration options to see if I can avoid them. Here is my journalctl -b -1 -p 3: Jun ...
1
vote
0answers
112 views

Any interface to access linux's tc flower from another kernel module?

I was looking at linux tc flower source code. I see that when a flow is modified, a netlink message is sent from user space to kernel space to create/delete/modify the flow. Rather than the userspace ...
1
vote
1answer
1k views

Radeon GPU not found after kernel upgraded to CentOS 7.5 - “[AMD/ATI] display unclaimed”

My system has a three monitor setup: Monitor 1 connected to the onboard i915 chip Monitor 2 & 3 connected to a Radeon RX 560 GPU This configuration worked until I upgraded CentOS to the 3.10.0-...
1
vote
0answers
142 views

Cannot get wireless interface to work

I cannot get my WiFi adapter to work on LMDE2 (fresh install with btrfs). # lshw -c network *-network UNCLAIMED description: Network controller product: WiFi Link 5100 vendor: ...
1
vote
0answers
2k views

Failed to insert 'vboxdrv': Required key not available

I've just installed fedora 27 with all updates on my new laptop. And I've tried to install VirutalBox. I've installed this packages: VirtualBox VirtualBox-kmodsrc VirtualBox-server VirtualBox-akmod ...
1
vote
1answer
1k views

How to find the kernel boot parameter for a given boot configuration option?

I have a Dell laptop running Debian Sid. Current kernel (4.15.4) is configured to load dell_smbios as module (CONFIG_DELL_SMBIOS=m). This produces the followning error while booting dell_smbios: No ...
1
vote
0answers
95 views

What address can i pass as a parameter to kernel module?

I'm doing kind of test, and I already have spent two weeks researching that topic + yocto. What I'm trying to do: I'm writing loadable kernel module which "watches" if address (for example, ...
1
vote
0answers
340 views

Check if Linux Kernel is real time or not from Kernel module

We have a kernel module which is used on both real time (RT) and non-real time Linux kernel. Module uses the function get_user_pages_remote. However, there is a version check since the module needs to ...
1
vote
0answers
216 views

How to interpret the crash dump

This a sample crash dump I have from the unit. Could anyone help me in understanding what these details mean? Example: [] (sys_init_module+0x0/0x1878) from [] (ret_fast_syscall+0x0/0x30) Here ...
1
vote
0answers
62 views

Tntfs.ko - How can I put it in an initrd file? Or load on boot?

I'm trying to load that specific module (for zenworks purposes), but I can't find the right command to put in my server boot. I tried insmod and modprobe commands, but I'm unsuccessful in doing that. ...