Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
8 views

How do I Get Support for Acer E5-573-54zv Touchpad on a Custom Kernel

I'm compiling a kernel just for learning purpose, and I almost get all things working, bluetooth, hdmi, usb, card reader, webcam, wifi... etc. But I can't make touchpad works, all that I know about it ...
1
vote
0answers
16 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 -...
0
votes
0answers
10 views

Using GPIO in a kernel module

I am working on a simple kernel module for the Raspberry Pi. This involves using the GPIO. I see that the old gpio_* API is deprecated in favor of the gpiod_* API. However, all of the documentation I'...
-1
votes
1answer
29 views

I have just deleted modules.builtin.bin, and now I can not remove any module

I got this error: rmmod: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.15.0-29-generic/modules.builtin.bin'
0
votes
1answer
46 views

How to Disable Kernel module installation capability in Unix Based operating system?

As we are living in the Linux kernel rootkit era, Is there any way to Disable any additional module to load into operating system kernel by any user or any operation or command , in Unix? some sort of ...
0
votes
0answers
18 views

linux kernel auto load driver module

I want to know how linux kernel know which module must load on startup ? i know some modules must defined in /etc/modules . but what happened if i change physical hardware ? for example ...
0
votes
1answer
22 views

How can I add support for a new file system type to an existing kernel?

I have an ARM device running an OpenEmbedded-based kernel. A new requirement is going to involve mounting an ISO 9660 file system, but that file system is not currently listed in /etc/filesystems. I ...
0
votes
1answer
27 views

/proc in Kenrel Modules

Currently I am learning Kernel Module Programming reading "https://www.tldp.org/LDP/lkmpg/2.6/lkmpg.pdf" ,and in that book there is an chapter titled as "/proc File System" , I have learnt how modules ...
0
votes
0answers
17 views

How to specify GPIO port for dht11 driver?

I'm working with dht11 sensor on my raspberry pi 3. I found dht11 driver's source code in linux https://github.com/torvalds/linux/blob/master/drivers/iio/humidity/dht11.c And I successfully ...
0
votes
0answers
26 views

Linux kernel: how to load module last

I wrote a kernel simple module, and I can select my module with make menuconfig. The module compiles and executes without a problem. Is there a method to force the kernel to load my module last - ...
0
votes
1answer
73 views

Understanding a dmesg kernel warning message

I am trying to debug my kernel module. When I run it I get the following kernel warnings, but it seems that there is no informative message like other warnings I've seen. Is it possible to get any ...
0
votes
0answers
10 views

Cannot build new image with loadable kernel modules

I am trying to build an image using kernel version socfpga-4.14.73-ltsi from altera to put on my SOC and using Buildroot 2018.02.10 but I am getting an error when I include my loadable kernel driver ...
1
vote
0answers
15 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 ...
0
votes
1answer
63 views

TUN Module Loaded but OpenVPN /dev/net/tun no such file or directory

lsmod -> tun 16587 0 - Live 0xbf0e1000 Openvpn error: Cannot open TUN/TAP dev /dev/net/tun no such file or directory I tried creating a dummy directory but the error changes to Cannot open TUN/TAP ...
1
vote
0answers
23 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
27 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 ...
0
votes
0answers
27 views

bind to vfio-pci or pci-stub at startup

I'm trying to bind a NIC to pci-stub or vfio-pci at startup so my libvirt-managed VM can use it on autostart, but the NIC keeps being claimed by ixgbe. I tried inserting into /etc/initramfs-tools/...
0
votes
0answers
16 views

MAC address is removed with tainted VirtualBox modules on Fedora 29

I am getting crash reports. net/mac80211/driver-ops results in drv_remove_interface. My network interface is removed and I can't connect to the WiFi. I can recover this by shutting down or going in ...
4
votes
1answer
73 views

How to force load kernel module (modprobe -f) on startup?

I would like to load a custom kernel module upon startup on my system (Debian 9). The vermagic string of this module does not exactly match my kernel version, but I can load it using modprobe -f ...
0
votes
1answer
21 views

How to blacklist pwm_backlight?

I want to control PWM from sysfs. I have /sys/class/pwm/pwmchip0 and cat npwm gives 1. However, when I try to echo 0 >> export I am given with Device or resource busy. I checked cat /sys/kernel/...
0
votes
0answers
20 views

unload a module from another module

currently I seek for a way to unload a certain module from another kernel module. One way i think about is usage of call_usermodehelper. So basically an userspace program is prepared doing i.e. echo ...
0
votes
0answers
32 views

Compile single module for RaspberryPi3

I need to compile the Amescon's Raspicomm module. I've cloned the repository from Github obtaining the raspicomm folder with the following files : Makefile Makefile_rpi module.c module.h platform.h ...
1
vote
1answer
68 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(...
0
votes
0answers
36 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
38 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/...
0
votes
0answers
70 views

can't load iwlwifi nonfree firmware after kernel update

My hardware requires the iwlwifi nonfree firmware for working wifi. With the latest kernel version however it stopped being able to load it. The last working version is 4.9.0-7 while 4.9.0-8 does not ...
0
votes
0answers
19 views

USB/IP installation on Oracle Linux 7 for VirtualHere client

I am trying to use VirtualHere Linux console client on an Oracle Linux 7 box. However the client fails to start with an error: [root@hostname ~]# ./vhclientx86_64 modprobe: FATAL: Module vhci_hcd not ...
0
votes
0answers
25 views

Communicating between userland and kernel space (KEXT) on MacOS

In order to make it easier to develop a kernel module, I am considering Loadable kernel modules (LKMs) on MacOS. This way you have a base kernel module and your main kernel module which is an LKM ...
6
votes
1answer
345 views

How to verify a kernel module signature?

When you compile a kernel source, you can choose to sign kernel modules using the CONFIG_MODULE_SIG* options. The modinfo tool should handle the task of verifying the module signature, but there has ...
2
votes
1answer
49 views

Access grab state of evdev device

I need to retrieved the grab state of an evdev device in a program. More specifically, I need to retrieve the state of the grab pointer in the evdev struct seen here: https://elixir.bootlin.com/linux/...
3
votes
2answers
491 views

How to find kernel module for a given device?

I am trying to troubleshoot a problem: usb mouse doesn't work on a freshly installed linux. I suspect the problem is that there is no suitable kernel module/driver for my usb hardware. Indeed: $ ...
2
votes
1answer
53 views

What happens to memory that wasn't freed in a kernel module after unloading?

Suppose I called kmalloc and didn't free that memory before rmmod was called on the module, what happens to that memory? Is it a memory leak and it is completely unusable until restart, or does the ...
0
votes
1answer
57 views

mismatch between kernel version and kernel header

I use an embedded with a bit old kernel 2.6.37. Now we need to update rootfs with more update gcc than the one used on building the image (Instead of 4.3 need to use 5.1, because it will support c++11,...
0
votes
1answer
31 views

Discover WiFi driver with Ubuntu to install on CentOS 7

I installed CentOS 7 Minimal on a Yoga Pro 2. However, I'm not able to "up" the WiFi device w1p3s0 despite following numerous guides with ip link, nmcli and nmtui. The same guides work very well when ...
0
votes
0answers
26 views

Kernel driver, is pinctrl-0 property always needed with GPIO overlay?

I'm creating a kernel driver for SPI controlled display, which is meant to be working with Raspberry PI. I'm not sure about a one thing that I see sometimes in device tree overlays created by other ...
2
votes
2answers
108 views

Selinux is blocking my external kernel module

I'm trying to insert an external kernel module in permanent mode. During the boot, my module is being loaded by systemd-modules-load service so long as Selinux is permissive. But I want to keep ...
1
vote
0answers
201 views

modprobe gives: “FATAL: <module> not found in directory” error [duplicate]

I am running standard raspbian on Raspberry Pi-3. pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=...
2
votes
0answers
49 views

Does the Linux Kernel use event-loops to keep itself alive? [duplicate]

I am just wondering what mechanism does the Linux Kernel program use to keep itself alive. Any normal C program will terminate by executing its statements sequentially. If we wanted to keep that ...
1
vote
1answer
556 views

Ryzen/Threadripper temperature sensors: Which senors are related to which kernel modules and how to enable them

What sensors I can monitor on my AMD Threadripper 1950x on an ASRock x399 Taichi mobo under Linux. It was announced last year that temperature monitoring was working for Ryzen processors and that was ...
2
votes
1answer
217 views

Adding iptables to yocto causes image do_rootfs to fail

My image builds nicely with kernel 4.13 (set in local.conf) and all of my recipes. When I try to add the iptables recipe (v1.6) to my image, the do_rootfs task fails with the following error: ERROR: ...
2
votes
1answer
37 views

Find what program accessed a kernel module

How do I access a list of users/programs that accessed a certain module? I run: lsmod | grep ^uvcvideo This returns this line when no application is using my video camera: uvcvideo ...
0
votes
1answer
187 views

Could not find libmount

During compilation of customized distribution (using buildroot v. 11.2018) I have problem with libmount library (the problem appeared after I had included efl package in buildroot menuconfig - Target ...
0
votes
1answer
338 views

Unable to load SFP+

I am using CentOS7 7.5.1804. I have a Intel 82599 based 10gig SFP+ card. When I try my SFP's I get: failed to load because an unsupported SFP+ or QSFP module type was detected. I tried everything I ...
1
vote
1answer
90 views

/proc/meminfo says VmallocUsed is 0. So where are my kernel modules stored?

I thought the code for kernel modules was stored in a vmalloc() allocation? (In fact I'm sure the kernel code is using vmalloc(), not kvmalloc()). So why does /proc/meminfo say I have no zero ...
0
votes
1answer
105 views

Error building virtualbox pci-passthrough kernel module - what went wrong?

I am trying to get virtualbox working on my machine with the pci-passthrough extension. When trying to run a VM, I got this error message: Kernel driver not installed (rc=-1908) [message asking me to ...
0
votes
1answer
760 views

modprobe: FATAL: Module fbcon not found. Number of created screens does not match number of detected devices

I am using debian. I recently have purged X11 and xcfe4 and reinstalled them both but whenever I lauch Xorg --configure I get this: (++) Using config file: "/root/xorg.conf.new" (==) Using system ...
1
vote
1answer
60 views

What do “ACard AHCI SATA low-level driver” meaning? What is “ACard”? [closed]

I run on Debian Stretch,my linux-kernel version is 4.14.13 Is this module never used(real loaded) in initramfs for desktop PC? The context is for initramfs and I have a very slow usb storage device(3....
0
votes
2answers
63 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 (...
0
votes
1answer
237 views

How does Linux kernel dynamically use a module?

Understanding the Linux Kernel says The kernel has two key tasks to perform in managing modules. The first task is mak- ing sure the rest of the kernel can reach the module’s global symbols, such ...
3
votes
2answers
700 views

Reduce Boot time

I would be interested in finding ways to reduce the boot time, specially in embedded-related environments. I've read somewhere of a method to avoid the kernel to load some drivers or modules but I'm ...