Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
3
votes
2answers
4k views

Debian does not detect serial PCI card after reboot

I have installed a PCI card with two serial and one parallel port on it. the chipset is MCS9865. I downloaded the latest driver(V1.0.12) from here. I ran make and make install. now the two serial ...
48
votes
4answers
57k views

How to find the driver (module) associated with a device on Linux?

On Linux, given: a device, for example /dev/sda, and its major and minor numbers, for example 8, 0, how can I know which module / driver is "driving" it? Can I dig into /sys or /proc to discover ...
14
votes
2answers
12k views

Are driver modules loaded and unloaded automatically?

On Ubuntu 14.04, I found that when I don't plug in my external wireless adapter, its module rt2800usb is still shown in lsmod. when does automatically loading a driver module happen? Is it when the ...
25
votes
5answers
125k views

Determining cause of Linux kernel panic

I'm running an Ubuntu 12.04 derivative (amd64) and I've been having really strange issues recently. Out of the blue, seemingly, X will freeze completely for a while (1-3 minutes?) and then the system ...
66
votes
6answers
60k views

What is the difference between kernel drivers and kernel modules?

When I do a lspci -k on my Kubuntu with a 3.2.0-29-generic kernel I can see something like this: 01:00.0 VGA compatible controller: NVIDIA Corporation G86 [Quadro NVS 290] (rev a1) Subsystem: ...
34
votes
4answers
62k views

Find out which modules are associated with a usb device?

Could you recommend a way to figure out which driver is being used for a USB device. Sort of a usb equivalent of lspci -k command.
99
votes
1answer
111k views

What is a tainted kernel in Linux?

Under certain conditions, the Linux kernel may become tainted. For example, loading a proprietary video driver into the kernel taints the kernel. This condition may be visible in system logs, kernel ...
30
votes
1answer
43k views

How to assign USB driver to device

This question is two-fold: First, how do you manually detach a driver from a USB device and attach a different one? For example, I have a device that when connected automatically uses the usb-...
8
votes
2answers
16k views

What is the sequence loading linux kernel module on startup? How priority is set to them?

I have a Linux kernel module which I compiled dynamically. How is it added to startup? There are lot of .ko files in /lib/modules. How is priority set for loading these modules?
7
votes
2answers
3k views

How to block drivers built-into Kernel, i.e. drivers who are not a module

I configured and compiled Linux kernel with nouveau driver built-into kernel, i.e. with <*> as opposed to <M> when doing make menuconfig inside Linux kernel source directory. Now, I ...
4
votes
1answer
4k views

Are Modules listed under /sys/module all the Loaded Modules?

I'm wondering if I can use the directory listing of /sys/module instead of lsmod to get a list of currently loaded modules. Is that the list of loaded modules only? Or maybe that combined with /sys/...
1
vote
2answers
1k views

Debian Jessie Wireless Driver Broadcom Restart (rmmod modprobe) BCM43142 [14e4:4365]

My Dell laptop, running Debian 8 (Jessie), has this wireless device: $ lspci -nn -d 14e4: 02:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01) And it ...
65
votes
4answers
111k views

How to list all loadable kernel modules?

I'm looking for a few kernel modules to load i2c-dev and i2c-bcm2708. But the modprobe command returns: sudo modprobe i2c-dev modprobe: module i2c-dev not found in modules.dep How can I list all the ...
26
votes
9answers
37k views

How to unload kernel module 'nvidia-drm'?

I'm trying to install the most up-to-date NVIDIA driver in Debian Stretch. I've downloaded NVIDIA-Linux-x86_64-390.48.run from here, but when I try to do sudo sh ./NVIDIA-Linux-x86_64-390.48.run as ...
8
votes
1answer
14k views

Cannot compile kernel: error, kernel does not support PIC mode

I have troubles recompiling my Kernel. Downloading the source package, decompress it and running fakeroot make-kpkg kernel_image leads me to the error [...] CHK include/...
6
votes
1answer
14k views

Excluding kernel modules through /etc/modprobe.d/blacklist.conf does not work

I don't want to load the kernel module nouveau on my debian box at startup, so I put the following in /etc/modprobe.d/blacklist.conf: blacklist ttm blacklist drm blacklist nouveau I even did a ...
10
votes
1answer
14k views

How to disable keyboard?

Without unplugging my keyboard I'd like to disable it from the terminal; I was hoping that this could be done using rmmod but based on my currently loaded modules it doesn't look like it is possible. ...
9
votes
1answer
4k views

Custom kernel: fails to load firmware when module built-in

I'd like to have all my modules built-in, but this fails with iwlagn: iwlagn 0000:03:00.0: request for firmware file 'iwlwifi-6000-4.ucode' failed. iwlagn 0000:03:00.0: no suitable firmware found! ...
7
votes
1answer
4k views

Kernel module blacklist not working

I'm trying to figure out how to blacklist modules, and I'm trying it on the USB storage. Unfortunately it seems to have no effect, and I get the module in even if it's not used (apparently). My ...
6
votes
2answers
6k views

Can I detect if my custom made kernel was built with module support?

I have been provided with a vendor supplied minimal linux installation. From an answer to a previous question I discovered that it is possible to build a kernel with or without module support. I have ...
4
votes
2answers
8k views

How to make EDID

I read the post here and I tried to make do with what I understood from the post but here are some questions: Where is the /lib/firmware located in for example /usr/src/linux/lib/firmware or /usr/lib/...
3
votes
0answers
549 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 ...
2
votes
2answers
53 views

Automatic rmmod / modprobe based on dmesg parsing

I am using a MacBooPro10,1 Debian stable (default install with rsyslogd) system for which the trackpad eventually fails (pointer stop working) from time to time as can be seen : $ dmesg [...] [...
0
votes
2answers
180 views

What ELF types do kernel itself and kernel modules have?

https://linux-audit.com/elf-binaries-on-linux-understanding-and-analysis/ says The type field tells us what the purpose of the file is. There are a few common file types. CORE (value 4) DYN (...
26
votes
5answers
20k views

Is USB-to-USB data transfer between two Linux OSes possible?

I want to create a USB-to-USB data transfer system in Linux (preferably Ubuntu). For this I want to use no external hardware or switch (except this cable). It's going to be like mounting a USB drive ...
19
votes
2answers
48k views

systemd: automate modprobe command at boot time

My distribution is Fedora 17 Gnome. Every time I reboot/restart my computer I need to run this command as root: modprobe rt2800usb How can I make it permanent?
3
votes
2answers
7k views

VirtualBox Kernel Module Installing Issue

I installed VirtualBox, in the first run i got this warning: WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (3.10.0-...
10
votes
2answers
11k views

Cannot start archlinux after update: Cannot find uuid

I updated archlinux with "pacman -Syu" and then when I've restart, the system can't start. This is the report: Warning: /lib/modules/4.11.9-1-ARCH/modules.devname not found - ignoring version 232 ...
9
votes
1answer
7k views

Sound not working when both the sound card and HDMI use the Intel HDA driver. How to exchange their device loading order?

I have an Acer Aspire One 522 netbook which has an Intel HDA sound card based on the Conexant CX20584 chipset. Although KDE does output sound when starting up, flash and probably many other apps which ...
12
votes
1answer
54k views

Unable to load module: Disagrees about version of symbol module_layout

Following this tutorial to write my first driver. The Makefile is: # Makefile – makefile of our first driver # if KERNELRELEASE is defined, we've been invoked from the # kernel build system and can ...
7
votes
3answers
4k views

How do I disable I2C Designware support when it's not built as a module?

I have an Alienware Aurora R7, running Arch Linux. On shutdown, the kernel panics, with something like this in the panic message (omitting timestamps): BUG: Unable to handle kernel NULL pointer ...
7
votes
1answer
6k views

bdl_pos_adj: set IRQ timing workaround for hda-intel

I get following errors in my logs: kernel: snd_hda_intel 0000:00:1b.0: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj Google found some old posts here and here ...
6
votes
5answers
3k views

Disadvantages of linux kernel module?

I am trying to understand the disadvantages of using Linux kernel modules. I understand the benefits of using them: the ability to dynamically insert code into a running system without having to ...
6
votes
2answers
13k views

Prevent usbhid from claiming USB device

Directly related: Prevent claiming of novelty usb device by usbhid so I can control it with libusb? I want to access an RFID reader (works as HID device) from a program that uses libusb-0.1. In the ...
5
votes
1answer
26k views

rtl8723be Realtek Wifi-Card driver not working on Ubuntu 14.04

I installed Ubuntu 14.04 on my new Lenovo G50-70. The wifi works perfectly in windows, however it behaves strangely on Ubuntu. It is slow, doesn't load heavier sites at all, and after a while, ...
4
votes
3answers
29k views

Ubuntu make fails with No such file or directory /lib/modules/3.4.0/build

I am trying to build the CP210x driver for the 3.x.x kernel on ChrUbuntu. Build instructions: Ubuntu: make ( your cp210x driver ) cp cp210x.ko /lib/modules/<kernel-version>/kernel/drivers/usb/...
8
votes
1answer
2k views

Automatically apply module patch and compile kernel when updated?

I've recently applied a one-line patch to drivers/bluetooth/btusb.c in order to enable compatibility with my Bluetooth device. However, whenever I get a kernel upgrade, the patch will be lost until ...
3
votes
2answers
5k views

Build kernel in one machine, install in another

I want to build my Linux kernel on my host and use it in my VWware virtual machine. They both use the same Ubuntu kernel now. On my Host, I do make and make configure. Then, what files should I copy ...
3
votes
0answers
384 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 ...
9
votes
1answer
64k views

insmod: ERROR: could not insert module 8188eu.ko: Invalid module format

I'm trying to use the TL-WN725N as an USB WiFi-Adapter with Fedora 20. I followed these insructions and the adapter worked fine and even survived two updates during the last few weeks. Then I did a ...
8
votes
3answers
32k views

How to remove kernel module if it's still in use?

[rootSERVER ~]# rmmod -f cifs ERROR: Removing 'cifs': Resource temporarily unavailable [rootSERVER ~]# modprobe -r cifs FATAL: Module cifs is in use. [root@SERVER ~]# lsb_release -a LSB Version: :...
8
votes
2answers
3k views

lsmod shows -2 in the “Used by” column

This is what happens when i run lsmod on an arm board (banana pi) running on kernel 4.3.0 # lsmod Module Size Used by async_raid6_recov 1434 -2 async_pq 5548 -...
7
votes
1answer
5k views

Webcam on Angström

I am running Angström on my BeagleBoard-xm. I want to use a webcam (I have Microsoft LifeCam Cinema and Logitech C310). I installed v4l-utils, libv4l-dev and kernel-module-uvcvideo with opkg. But the ...
6
votes
1answer
3k views

Booting without initrd

Is it possible to boot linux without a initrd.img ? I am planning to add default drivers as a part-of-kernel itself and avoid initrd completely. What are the modules that should be made part-of-the-...
6
votes
1answer
1k views

Compile Linux kernel module without Module.symvers

I have this embedded Linux devices. I would like to add kernel-level functionality to it, but would highly prefer not to compile my own kernel to do so. (If the kernel doesn't load and get to user ...
5
votes
1answer
155 views

Get all ioctl code and which module they map

By doc. , ioctl signature is int ioctl(int fd, int request, ...) . request is the code of ioctl. Is there any way to know what are all the possible ioctl request code that available in my linux? And ...
2
votes
1answer
9k views

I need a step by step guide to build kernel modules in ChrUbuntu

I don't have experience building kernel modules. And worse, I'm trying to do it on ChrUbuntu, so it seems that I cannot follow the existing Ubuntu guides. For example, this command fails: # apt-get ...
2
votes
1answer
5k views

Trouble “activating” the SDIO Broadcom BCM43430 Wifi chip on Linux 4.8.0

I have an Intel Z3735F (Bay Trail) platform running a current 64Bit kernel 4.8. on UEFI32. From lines in dmesg and hwinfo I found, that on this particular device the on-board "Broadcom BCM43430 WLAN ...
2
votes
0answers
804 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
184 views

Standard way to expose device file to userland applications running on an unprivileged user account?

I just finished the first version of a Linux kernel module I've written in C. The module creates a device file (/dev/wn0) that controls a USB device with three LED lights. For example, running as root,...