The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0answers
22 views

How to automatically deactive a linux kernel module after kernel panic?

I need to connect the Linux kernel module in such a way that if a kernel panic occurs the module would not be active after rebooting. Probably I am looking for tricky way with modprobe/instmod ...
0
votes
0answers
10 views

Compile kernel module and insert on-the-fly

is it possible to take a kernel compiled without a module (I mean not compiled with that module as builtin [*] nor as a module [M]), and compile just that module (let's say as [M]) and then insert it ...
0
votes
0answers
22 views

Updating HP bios (that comes packaged as rpm)

So, I'm trying to update the bios of my HP Z230 workstation (don't ask why..). It comes as a one-two punch: the 'xwbios' kernel module as a source rpm named hp-lxbios-mod..src.rpm and the 'lxbios' ...
1
vote
0answers
22 views

How to rebuild gcc plugins for kernel module

I've been working on the gcc plugins included in the kernel headers. I have a Manjaro Linux distribution, and I'm trying to get the system to rebuild the gcc plugins. Unfortunately, I can't seem to ...
0
votes
1answer
24 views

Ansible Search for kernel module loaded

I am trying to write an ansible playbook to check to see if a particular module is loaded for the current kernel running. if I do an lsmod | grep my_module_$kernelVer I would see something like ...
0
votes
0answers
22 views

How to correctly create and stop kthreads?

I wrote the following kernel module: #include <linux/module.h> #include <linux/kernel.h> #include <linux/delay.h> #include <linux/kthread.h> #include <...
3
votes
1answer
25 views

PCI hardware access speeds - Kernel vs user space [closed]

Hi there Linux experts! I'm trying to find the best way possible to control and stress a PCI device. I've started off with writing a simple bash script that uses the commands from pciutils (lspci &...
1
vote
0answers
147 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); ...
2
votes
1answer
47 views

Realtek Firmware Installation Error

Im working on an odroid HC2, which runs Debian 9 "Stretch". In my logs, I can see that there is a driver missing for Wifi: usb 1-1: request_firmware(rtlwifi/rtl8192eu_nic.bin) failed So i ...
2
votes
1answer
70 views

How to find official documentation about Linux kernel namespaces?

I've been using Docker for a while and I'm interested in learning its internals. I've read about kernel namespaces it uses. But I don't understand how they are used. So my problem is: I haven't found ...
1
vote
1answer
30 views

How to autoprobe block devices in initramfs?

I am building a custom Alpine image based on isolinux. Basically, I am squashing rootfs, and mounting it as overlayfs. Bootloader does its job fine, kernel loads, but I am stuck at initramfs. Let ...
0
votes
0answers
42 views

How Linux links driver with device file?

I have a question about device file and drivers, based on ULK hence 2.6.11 kernel. My understanding is the following: When user does syscall open() on some device file, at some point kernel will ask ...
0
votes
0answers
76 views

Buttonless Elantech Touchpad Issues

Recently, my touchpad has broken a few different ways: No "area" functionality for Mouse Click Emulation No click-and-drag with one finger click and another finger drag libinput has incorrect ...
0
votes
0answers
23 views

What would happen if we didn't map the kernel's memory in the virtual memory of every process, and force a context switch instead? [duplicate]

So can someone explain to me that what will happen if they did this and how much overhead will this cause, to have a seperate process for the kernel part of the virtual memory, and make a context ...
0
votes
0answers
24 views

x_tables: exports duplicate symbol xt_alloc_entry_offsets (owned by kernel)

I have enabled Xtables in my kernel but I get this error whenever I try to modprobe $ sudo modprobe ip_tables modprobe: ERROR: could not insert 'ip_tables': Exec format error dmesg tells me ...
1
vote
1answer
47 views

How do proprietary modules work for majority of kernel versions?

A question has been bugging my mind recently. Since virtually all proprietary modules are out of tree (and therefore not compiled against any kernel versions), I'm wondering how exactly they are ...
0
votes
0answers
25 views

How can I build linux kernel module with multiple c file?

I'm trying to build some kernel module acts like simple firewall for practicing kernel programming. I'm trying to build my module split to multiple c and header files but it won't finish build with ...
0
votes
0answers
22 views

Eject live CD on reboot/shutdown

This problem has been posted before but didn't seem fully resolved (link: Eject CD on shutdown). So the problem is booting off of live CD then I want to eject the CD on reboot or shutdown. I have ...
0
votes
0answers
49 views

Wifi not working on any Linux distro

I have a HP 255 G2 notebook PC. I stuck with Linux Mint 17.1 after a hopping through a few distros. After I upgraded to LM 18, WiFi wasn't working anymore. Being the noob that I am, I just tried ...
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 ...
0
votes
0answers
39 views

how to make the Debian9 load amdgpu module other than vesa

buddies! I have a hybrid laptop(sorry) with AMD A10 cpu (integrated with R5 graphic) and isolated Radoen R7 Topaz graphic. The Ubuntu 16.04.6 was run on this box more than 2 years.Ubuntu just ...
0
votes
1answer
157 views

Manjaro displays “Failed to load Kernel Modules” on boot but still boots

So I've installed Manjaro on my sandisk SSD. Every time I boot up, before the login screen when the system boots and show a lot of text on the screen, I see 1/2/3 (I don't know the exact amount) times ...
3
votes
0answers
105 views

Is there any tool to generate kernel .config file?

I watched a clip on customizing kernel, rebuilding, installing, etc. where the gentleman suggested to use an existing .config file with make menuconfig or make xconfig. I wanted to use one that comes ...
1
vote
1answer
40 views

Linux Kernel Development Support for RSA Encryption [closed]

I am working on a prototype, and I'm new to Linux Kernel Development. I see that the Linux Kernel has a crypto module, but I am not sure if it supports Asymmetric Encryption such as RSA.
0
votes
0answers
11 views

DSL/knoppix linux appends 0 to port names. How to remove?

I just installed the latest version of "Damn Small Linux". It uses kernel 2.4 and knoppix. When I boot the PC and look at dmesg, I noticed the following entry for the serial port on my system: <...
4
votes
2answers
733 views

Are Linux kernel modules a sort of Linux system paged pool?

I always read that Linux kernel isn't pageable. If I'm not mistaken Windows, instead, divedes system virtual memory in a paged part (paged pool) and non-paged part (non-paged pool). The non-paged part ...
1
vote
0answers
44 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. ...
0
votes
0answers
37 views

Passthrough of GTX 1070 to linux guest crashes host, so does unbinding from nouveau

After successfully using an NVIDIA GTX 1070 passed though to a Windows guest under KVM, I now want to pass it to a linux guest, and that is proving to be a problem. First, I tried creating a VM with ...
1
vote
1answer
76 views

How to build a specific kernel module?

I installed a kernel source from the official Linux kernel repository (http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.15.tar.bz2) and I recompiled it with some needed options to support the ...
0
votes
0answers
17 views

How to compile kernel in XU4 (armv7l)? Error compiling kernel 4.14.127: “sha512_block_data_order” undefined

I'm trying to compile the 4.14.127 kernel for my XU4 obtained here (https://wiki.odroid.com/odroid-xu4/os_images/linux/ubuntu_4.14/ubuntu_4.14) as I need the USP/IP related modules and, unfortunately,...
0
votes
0answers
92 views

Strange wpa_supplicant logs about SIOCSIWAP and SIOCSIWENCODEEXT

I am interested in strange log entries and I would like to understand their nature. Why there are ioctl errors when using the r8188eu driver? Can I resolve these errors? Logs Jul 09 02:34:00 tower ...
1
vote
2answers
51 views

How to cause kernel panic by deleting a device driver (module)?

Is it possible to cause kernel panic by removing a device driver and then making a system call that uses that driver so that kernel goes in panic?
0
votes
0answers
48 views

Failing to load kernel module

So, I have just started going through Designing BSD Rootkits and I seem to have ran into a problem right away. hello.c: #include <sys/param.h> #include <sys/module.h> #include <sys/...
1
vote
1answer
36 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?
2
votes
0answers
42 views

Why do some devices generate DRIVER==“” in udevadm info?

The goal was actually quite simple, I was trying to get a USB camera to work on Linux. After installing uvc, uv4l (bcm2835 kernel module I guess), it still doesn't work. Currently, I got the ...
2
votes
0answers
42 views

Ubuntu 14.04 inserting a custom kernel module on boot

I would like to know how to insert a custom kernel module into the kernel during boot time? Also, would also like to ask how to ensure that this kernel module is always inserted earlier than all the ...
0
votes
1answer
33 views

Kernel Modules loaded when boot

Would like to know if there is a specific list or location for the name of the kernel modules that are loaded when the system is booted. Commands like lsmod or cat /proc/kallsyms only show those that ...
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 ...
2
votes
1answer
281 views

How to remove VirtualBox vboxdrv kernel module?

I previously was using VirtualBox on Fedora 30, but recently moved to using Boxes (review) and am quite happy with the switch. I've removed VirtualBox, but upon booting up my system, I still get a ...
0
votes
0answers
396 views

“Required key not available” error when trying to load signed module

I made a module and compiled it with make modules_install. I ran these commands following this gist: openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -subj "...
0
votes
0answers
177 views

Automatic module signing for distribution in Linux

I'm new to writing Linux modules (drivers) and digital signatures, so please correct me if any of my understanding is incorrect. When I run make modules_install on my module, I get the following ...
2
votes
1answer
62 views

Not able to remove loadable module

I am trying to learn about Linux device drivers. I am trying to install the module using insmod from the command line. After insertion, I try to remove the loaded module, which fails with the error, ...
1
vote
1answer
81 views

Failed to find module nf_nat_proto_gre

When starting Xubuntu 19.04 get this in boot.log: [[0;1;31mFAILED[0m] Failed to start [0;1;39mLoad Kernel Modules[0m. See 'systemctl status systemd-modules-load.service' for details. I run ...
0
votes
1answer
39 views

Synology NAS insmod unknown symbol

I'm trying to follow this guide to setup NAT on my Synology NAS. It worked great for me! I had everything working perfectly. But when I came back the next morning, the NAS had done a system update [...
0
votes
0answers
28 views

Compiling module crc32_intel_glue fails

I have two CentOS hosts and want to install the kernel module crc32_intel_glue.  I don't find it in the official repo, so I tried to build it from source, and failed. I downloaded crc32c-intel_glue.c ...
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 [...] [...
5
votes
1answer
152 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 ...
0
votes
0answers
47 views

Unload running kernel module

With lsmod I can watch all kernel modules that running in my linux. How can I suspend and resume spesific kernel module? I tried use modprobe -r <module_name> but got error can't change ...
1
vote
1answer
174 views

Deleted /lib/modules/<kernel version> by mistake. How to recover?

I accidentally deleted my /lib/modules/<kernel version directory>. Here's the full output of sudo rm -rfv /lib/modules/4.14.98+ : pastebin Is there a way to restore the modules keeping the ...