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
1answer
23 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 <...
1
vote
1answer
1k views

Your kernel headers for kernel 2.6.32-504.e16.x86_64 cannot be found

I have centos 6.6 installed on virtualbox. In order to use features like copy/paste, being able to share folders, etc, I need to install Guest additions on it. I've clicked Device -> Insert Guest ...
1
vote
2answers
270 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 ...
3
votes
1answer
25 views

PCI hardware access speeds - Kernel vs user space [on hold]

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
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 ...
0
votes
2answers
531 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 ...
3
votes
1answer
1k views

Scaling issues of i7 3520M with intel_pstate module on Kernel 3.10.0

Few days ago I updated my openSUSE 12.3 system from Kernel 3.9.8-1.gf3348a8-desktop to 3.10.0-1.g3dcd746-desktop and since then, turbo mode of my i7 3520M is enabled by default and it does not ...
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 ...
1
vote
2answers
1k views

Disable bridge module insert?

I have Fedora 20 setup with default kernel configuration, where bridge feature is enabled as a module (CONFIG_BRIDGE=m), and the bridge module loads as the system starts. I don't understand who ...
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
46 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 ...
1
vote
1answer
2k views

How to make Realtek nic use r8168 driver

I've been trying (unsuccessfully) for the last few days to make my Realtek ethernet card to work. I have no problems with my wireless connection: only the ethernet connection doesn't work. I have ...
0
votes
1answer
59 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 ...
2
votes
1answer
3k views

Adding IPVS to the kernel

I am trying to setup keepalived on a pair of VPS load balancer servers. I have hit the road block of IPVS not being included with the kernal. IPVS: Can't initialize ipvs: Protocol not available I am ...
0
votes
0answers
72 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 ...
2
votes
1answer
69 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 ...
2
votes
2answers
2k views

What and How to install Ethernet adapter drivers

I'm currently trying to set a computer with Ubuntu Server (version: 16.04.3). I believe the drivers for the wireless adapter are installed, but I need the iwconfig utility/command to configure it. ...
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?
3
votes
1answer
6k views

WiFi not working - wlan0 FAILED

My Arch (3.6.5-1) is exhibiting a rather peculiar problem: when wifi is set up, all logs indicate that the setup was successful and that the interface is up and functional. However, when attempting to ...
2
votes
3answers
7k views

After upgrading to Fedora 28: broadcom-wl installed but WiFi doesn't work

This is another one in a long line of problems of this sort. After a recent upgrade from Fedora 27 to Fedora 28, broadcom-wl stopped working. The Broadcom adapter in question is an older BCM4312. To ...
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 ...
2
votes
3answers
597 views

Mediatek MT7630e not working on Linux 5.0.2 & 4.20

Under Elementary OS Juno, I am trying to use Mediatek M7630e WiFi, which doesn't work. I know that in Fedora 29 with the officially supported Linux 4.20 it does instead, even if not perfectly - I ...
3
votes
3answers
787 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 ...
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 ...
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 ...
2
votes
2answers
13k views

How to install Realtek RTL8723BE wireless driver on debian?

I installed Debian Wheezy 7.8 on a Lenovo G50-70 x64, it seems that I don't have the driver for my wireless card installed, the output of iwconfig: lo no wireless extensions. eth0 ...
0
votes
1answer
2k 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 ...
0
votes
0answers
23 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 ...
5
votes
1answer
3k views

How to enable kernel pstore?

I'm trying to enable the kernel persistent storage (pstore) in order to help debug a module which malfunctions and freezes my laptop on suspend, but I'm having difficulties doing so. My kernel (4.1.20)...
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
47 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 ...
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 ...
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
1answer
57 views

/proc in Kernel 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 a chapter titled as "/proc File System", I have learnt how modules ...
0
votes
1answer
147 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 ...
0
votes
0answers
37 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 ...
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
40 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 ...
1
vote
1answer
448 views

empty modules.dep for new kernel compilation

i've got empty modules.dep file after compiling new kernel from source after kernel compile, and then kernel module compile and then make modules_install to modules directory, i checked modules.dep ...
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-...
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 ...
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 ...
1
vote
1answer
37 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.
1
vote
2answers
49 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?
7
votes
1answer
1k views

How to restart a failed amdgpu kernel module

My video card crashes from time to time. It's quite annoying but I live with it -- usually I just restart the graphics with sudo systemctl restart lightdm.service, or if needed reboot the whole system....
0
votes
2answers
2k 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 ...
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 ...