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.

268 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
184 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
30 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 ...
0
votes
1answer
31 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
29 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
58 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 ...
0
votes
0answers
176 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
41 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
112 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 ...
0
votes
0answers
51 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 ...
0
votes
2answers
533 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
2answers
1k 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 ...
0
votes
1answer
40 views

Persistent module loading not working

Red Hat 6 2.6.32-754.el6.x86_64 I've been working away on two drivers, one is a DMA driver that talks to a PCIe FPGA card. The other, a network driver. The network driver has a dependency on the DMA ...
0
votes
1answer
297 views

copy driver include file to linux folder

I'm using buildroot for my embedded socfpga system. I have successfully written a driver and an app to test it, following BR usermanual : my_driver_dma : the driver my_dma : the app The ...
0
votes
0answers
159 views

How to find modules used in initrd?

Is there a way to see all the kernel modules/drivers put in the initrd/intramfs?
0
votes
0answers
506 views

How do you prevent uas and usb_storage kernel modules from being automatically loaded when a USB flash drive is connected?

I generate a kernel Image using buildroot that I put onto an SD card to boot from. In buildroot I modularized USB Mass Storage. When I boot up my board without a USB connected to it I can see that ...
0
votes
0answers
101 views

Cross compiling Linux kernel module

On Ubuntu Trusty x86_84, I have successfully been able to compile Linux kernel v3.7.1 for x86, 32 bit. However, as I am trying to build a simple kernel module by feeding the same kernel sources, it ...
0
votes
1answer
282 views

How to use ubifs image with modprobe? To extract ubifs image

I try to do something like this - link. All examples in the web are not working at all. modprobe ubi mtd=0 modprobe: module ubi not found in modules.dep modprobe ubi modprobe: module ubi not found ...
0
votes
0answers
159 views

how to optimize Ubuntu for older hardware

Partly to go with the herd, partly to be more towards the cutting edge, I'd prefer Ubuntu 18.04 over Bodhi Linux. Bodhi boots reasonably quickly, logs in well, etc -- everything it's intended for. ...
0
votes
0answers
45 views

Start module before boot

Is there a way to start a module (framebuffer display driver, fbtft_device) before boot so that it can be used for boot-time splash screen? Its like issuing a modprobe command before boot. I want to ...
0
votes
0answers
165 views

How to setup nvmetcli for FC loopback mode?

I have a NVMe SSD, KC1000, from Kingston and a HBA, QLE2672 2-port 16Gb Fibre Channel Adapter, from QLogic and are installed on Linux kernel 4.16.6. Then I would like to set up a scenario which has ...
0
votes
0answers
610 views

How do I change the value of module.sig_enforce the Fedora kernel uses?

I am running a Fedora kernel ver: 4.15.3-300.fc27.i686). I am trying to load a custom device driver. When I try to use the device (via an open() call in a C program) the call errors out with errno ...
0
votes
0answers
111 views

Wrong kernel module getting loaded for fiber interfaces

I have an HP Gen 9 server running RHEL 7.4, with 3 network interface kernel modules, ixgbe, bnx2x, and tg3. Whenever the system gets rebooted, bnx2x and ixgbe seem to get randomly assigned to ...
0
votes
0answers
61 views

how to redirect from stdin to dev driver

I am writing a device driver and have implemented file_operations write method. I would also like to be able to just redirect to the device driver, e.g.: echo "this text is sent to driver" > /dev/...
0
votes
1answer
714 views

How to replace one kernel module in the Linux kernel tree

I would like to update/exchange a single kernel module in a Linux kernel tree that I got from an embedded device vendor (Hardkernel) with the latest version from the Torvalds Linux kernel. Could ...
0
votes
2answers
157 views

insert module during bootup

Few modules are inserted during the startup of the kernel. systemd-modules-load[367]: Inserted module 'lp'$ systemd-modules-load[367]: Inserted module 'ppdev'$ systemd-modules-load[367]: Inserted ...
0
votes
0answers
286 views

How to change kernel without breaking .ko modules / symbols

First off I'm not a kernel hacker so apologies if I've got terms wrong and such like. Second, I must explain our environment: A small single-board computer (no, NOT a Raspberry pi, but similar style) ...
0
votes
1answer
483 views

How to install module rt18723be in Ubuntu 16?

I gave sudo modprobe -rv rt18723be But I am getting modprobe: FATAL: Module rt18723be not found.
0
votes
0answers
320 views

Add platform device to kernel

I want to add a platform device file to my kernel (arch/arm/plat-mxc/devices/platform-spi_imx.c). Kernel 2.6.35, Freescale iMX53 processor. My device driver uses functions and structs defined in this ...
0
votes
0answers
76 views

How to fix the error “make sure the kernel module is loaded”?

I am trying to setup a iSCSI envrionment on Xubuntu with iSCSI Enterprise Target. I choose this impelmentation because I need the iSCSI redirection feature. First, I installed below 2 pacakges: Then ...
0
votes
0answers
568 views

Boot time kernel parameter to ignore module version check

I'm testing some custom kernels. But each time I rebuild the bzImage and copy it to /boot directory, it refuses to boot and stuck at initramfs. I recognised the problem as previously built kernel ...
0
votes
1answer
2k views

build is missing for compiling kernel module

this is my first time trying to create a kernel module, apparently after creating a module I need to follow these steps to compile it: echo "obj-m := Hello.c" > Makefile make -C /lib/modules/`...
0
votes
0answers
56 views

entries in /proc/modules with respect to removable devices

I was looking at my /proc/modules and to saw some wild entries in the file with regards to a usb stick, but is commented out ! Can anyone tell me, how can such an entry come into the /proc/modules? ...
0
votes
1answer
43 views

initramfs configuration fails new modules are added

I'm trying to passtrought PCI via OMVF. The manual states to That means adding, in this order, vfio, vfio_iommu_type1, vfio_pci and vfio_virqfd to mkinitcpio and regenerate initramfs ...
0
votes
1answer
235 views

can't find CONFIG_CRYPTO_ABLK_HELPER option in menuconfig

I am trying to activate the CONFIG_CRYPTO_ABLK_HELPER module while custamizing the 4.8 kernel. But after the search in menuconfig get the message: Symbol: CRYPTO_ABLK_HELPER [=n] Type : tristate ...
0
votes
0answers
2k views

“No rule to make target `clean'. Stop.” issue

Trying to install drivers for NIC and getting error: [root@london r8169-6.023.02]# make clean modules make -C src/ clean make[1]: Entering directory `/home/av/r8169-6.023.02/src' make -C /lib/modules/...
0
votes
1answer
568 views

Fuse not being enabled in gentoo

I'm on Gentoo 201512 (KDE). I installed Fuse, but running the fuse example "passthrough" program as ./passthrough /mnt/test gives me a message fuse: device not found, try 'modprobe fuse' first. So I ...
0
votes
1answer
625 views

Linux kernel module that kills process

I'm looking forward to build my first linux device driver and it's goal is to detect when a combination of keys is pressed, such as CTRL + ALT and then receive a number, such as 103, that should ...
0
votes
0answers
519 views

How can I compile Linux kernel modules without compiling the kernel?

I want to embed an initramfs into my kernel at build time, but to create the rootfs image I need access to a number of modules for the kernel I'm about to build. What is the proper way to resolve ...
0
votes
1answer
110 views

Load cfg file in kernel driver

I have a touch panel (goodix) and I need to send the device configuration to the firmware. I have a *.cfg file but I neither know nor find how to load this file. Do you know what is the way to load ...
0
votes
0answers
108 views

How to to insmod a module build with linux-headers-generic?

I have been trying to make a kernel module, but have run into problems due to the non-standard kernel I am using. I cannot find the headers using repositories, and have not yet been able to get help ...
0
votes
1answer
632 views

Dropped in (initramfs) after installing Zorin OS 11

I am trying to install Zorin OS on Fujitsu Lifebook AH530. The installation runs smoothly, but when system reboots, it drops into (initramfs) shell, with the message: ALERT~ /dev/disk/by-uuid/.... ...
0
votes
0answers
559 views

both USB ports randomly stop working

the problem usually occurs about once per day, seemingly at random, but occasionally two times, and occasionally zero times. devices connected are: a new STAR printer with it's own power supply, ...
0
votes
1answer
31 views

After modifing the source code of existing file system (such as ext2), how to rebuild and install it?

I am now learning the source code of ext2. I think the best way to understand it is to play with it, but I never built a Linux kernel before, so I was wondering if somebody could give me some detailed ...
0
votes
1answer
51 views

Is there a module for a DS28CM00 serial chip?

A google search reveals a patch for this Maxim/Dallas chip was added in 2008, but I can't track it down in Linux 4.1. Does this module still exist in the 4.1 version of the kernel?
0
votes
1answer
664 views

Execute Terminal Command in Linux Kernel Hook

How do I execute the following command from a loadable Linux kernel hook: echo 5 > /sys/kernel/debug/ieee80211/phy0/ath9k/AggregationLimit
0
votes
1answer
298 views

Attaching a phram mtd0 device to gadget serial mass storage

I'm using a Atmel SAMA5D3, I have created two phram devices /dev/mtd0 and /dev/mtd1 I am trying to attach them to a gadget mass storage module. insmod g_acm_ms.ko file=/dev/mtd0,/dev/mtd1 The ...
0
votes
0answers
551 views

Is it possible to hide processes from ps or top on modern day kernels?

I'm looking for a way to build a kernel module that can hide processes from ps and top commands. The kernel I'm working with is 3.13.0. I'm not sure what kind of kernel data structure I should be ...
0
votes
1answer
321 views

Dummy Network Driver

I have failed to come up with a dummy network driver through google search.i am planning to write a network driver in C that is linked to protocol stack but not linked to any hardware The online ...
0
votes
0answers
1k views

How to downgrade VirtualBox after a kernel upgrade to 4.1.4-1?

I run Arch Linux and did a complete pacman sync and upgrade of my entire system. One of the updates was a kernel upgrade that I am happy with and had no other problems with. One of the packages that ...
0
votes
0answers
137 views

Why am I able to compile kernel modules without “#include”ing the relevant header files?

Based on the common practices shouldn't I have to include <linux/stat.h> and <linux/module_param.h> in the following program? #include<linux/module.h> char str[7] = "hello"; int ...