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 ...

learn more… | top users | synonyms

0
votes
0answers
10 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 ...
1
vote
1answer
34 views

VirtualBox kernel modules will not load via systemd

I am using akmods from RPMFusion for VirtualBox. The packages listed by rpm -qa are: kmod-VirtualBox-4.6.4-301.fc24.x86_64-5.0.24-1.fc24.x86_64 VirtualBox-5.0.24-1.fc24.x86_64 VirtualBox-kmodsrc-5.0....
0
votes
1answer
10 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/.... ...
1
vote
0answers
11 views

Trying to build (a)kmod package for acpi_call on Fedora, cannot be installed

I want to package a simple kernel module, acpi_call, for Fedora. For this I have followed the kmods2 instructions on RPM Fusion and got the following SPEC file: # Copyright © 2016 Martin Ueding <...
1
vote
1answer
25 views

How to connect FLIR thermal camera to Raspberry Pi?

I've been trying to connect a FLIR thermal camera to my Raspberry Pi for the past three days. The code is being provided by the manufacturer and can be found here. I've downloaded the kernel and ...
2
votes
1answer
37 views

How to compile against a custom kernel (Debian)?

There is a file version.h in /usr/include/linux. Many header files include this file and use the defines in there for their own ifdefs. However, when I compile my own kernel, I cannot see how this ...
0
votes
0answers
32 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
0answers
14 views

Kernel module crashes when reading memory [migrated]

If I know the physical memory of data, because it was placed there by a memory mapped peripheral, how do I access it in a kernel module? My first instinct is to make a pointer int * addr; and ...
0
votes
1answer
25 views

How to allow access to memory in a kernel module? [closed]

Suppose I have a memory-mapped peripheral which can be read from or written to at some address, say 0x43C00000. I want to be able to read from that same memory location in my Linux OS in order to ...
1
vote
2answers
26 views

Can initramfs programs access all memory - do they run in real or protected mode?

This is in the context of current 64-bit processors and current linux kernels (I'm using 4.6.4.) Is it possible for me to write a program that during boot can examine base memory, 640k and under, ...
1
vote
0answers
45 views

Unable to upgrade a kernel module using modprobe: after reboot dmesg indicates the old version (but modinfo shows the new one)

I cannot upgrade e1000e driver in Ubuntu 16.04. At least not according to the output of dmesg after reboot. After downloading the latest version 3.3.4 and running make install in the src/ directory, ...
0
votes
1answer
23 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 ...
1
vote
0answers
39 views

how to install module in correct location or say /lib/modules/`uname -r`

I have one package for which I want to create debian Package instead of compiling it every time. I tried creating it using dh_make and fakeroot but problem is it just hardcode the location where ...
0
votes
0answers
25 views

3.10 kernel changed how it handles scsi / udev behavior

This is a nfs booted kernel and custom initramfs to execute code on bootup. Here is dmesg after that piece completes and pivots into the running file system. https://paste.fedoraproject.org/387110/...
0
votes
0answers
16 views

Make a bootable ubuntu-core for Raspberry pi2

I've been trying to build a minimal Ubuntu system for my raspberry pi2, based on an Ubuntu 14.0.4 core (base) image. here: wiki.ubuntu.com/Core I deployed the image to the SD card, Cross compiled a ...
0
votes
0answers
17 views

Error with modprope and ndiswrapper

I'm trying to install a wireless usb dongle driver using ndiswrapper but I'm getting a modprobe error. Output from ndiswrapper -l: vnwl: driver installed device (1106:3253) present Output ...
0
votes
0answers
50 views

I would like to unload kernel modules that show as busy

I want to unload the modules "gsch and redirfs" from kernel on RHEL 7.2 , which is causing frequent kernel panic. But when I try to unload , I am getting below error. # modprobe -r gsch modprobe: ...
1
vote
1answer
23 views

modprobe events not logged in /var/log/messages

I'm trying to understand Linux better, specifically driver registration and such so I'm trying to follow what happens when I insert modules and drivers. From what I thought I understood, kernel ...
0
votes
1answer
66 views

How to load custom Linux kernel module that is not Linux kernel version dependant using RPM

I have a 3rd party library which provides a kernel module (module.ko) and is required to be loaded automatically on bootup. However, module.ko is not tied to a specific version of the Linux kernel and ...
2
votes
0answers
17 views

Build and install kernel module into a defined /lib/module/*kernel directory

I hope someone can help. I had problems with my distribution's kernel, so I built a kernel (same version) to build my modules. My modules would be compatible. However, if I install the modules, the ...
3
votes
1answer
38 views

Makefile: installing external Linux kernel module

I am writing a simple Makefile for an external kernel module. Building it with: obj-m += usbtherm.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules compiles only the ...
0
votes
1answer
52 views

How to turn off stack protector in linux kernel easily? [duplicate]

I wrote a simple module for the Linux Kernel and it has a stack buffer overflow vulnerability. I want to exploit the module, but I have to turn off the stack protector in the kernel first. How could I ...
1
vote
0answers
16 views

Package additional in-tree modules

Targeting an up to date Fedora whose kernel unfortunately lacks a module: Is it possible to package the module (using kmod or whatever existing infrastructure), so that the module package has the ...
1
vote
2answers
217 views

No wifi-interface on ThinkPad T460P with debian

I've just installed a new Debian 8.4.0 on my ThinkPad T460P and now I need to config WIFI. I've installed the intel driver with apt-get install firmware-iwlwifi but the kernel module won't load on ...
1
vote
1answer
86 views

Udev rule setting up SocketCAN socket only works correctly only when run manually

I want to start slcand (the userspace daemon for the serial line CAN interface driver) when my Lawicel CanUSB dongle is plugged in. I followed Pascal Walter's step-by-step guide and all seems to work (...
1
vote
0answers
8 views

Manually Select Driver (AHCI/SATA Drive)

I am wondering if there is a way to bypass the default driver when using a SATA Host Bus Adapter (I want it to use my LKM). The other way of doing this is black listing the default driver so mine ...
0
votes
1answer
48 views

psmouse kernel module recompiling

I have a ultrabook and its touchpad doesn't work. Linux mike 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux touchpad doesn't work and it is also not listed in output of ...
0
votes
0answers
53 views

Do I need to install vxlan.ko to get vxlan support?

I am trying out vxlan on an ubuntu with kernel version - 3.18.3-031803-generic. I see that there is a kernel module vxlan.ko that is not loaded. I however have been able to get vxlan to work without ...
2
votes
1answer
56 views

How to prevent a kernel module from opening a specific device?

I am using two devices, one of which requires usbserial for proper operation (a GPS, using gpsd; this guide specifies that usbserial is required), and one of which requires usbserial to be unloaded (...
1
vote
0answers
20 views

Load NVIDIA module for X and load nouveau module for framebuffer: automatically

NVIDIA driver doesn't have support for framebuffer console. I want Linux kernel to automatically load NVIDIA for X window system, and nouveau for framebuffer console. There should be a method to ...
2
votes
1answer
27 views

Can module loading be globally disabled on modern Linux kernels?

Once upon a time (before kernel 2.6.25), one could use /proc/sys/kernel/cap-bound to drop CAP_SYS_MODULE system-wide, and be assured that the set of code that was presently loaded into kernel space ...
0
votes
0answers
48 views

MT7601 WiFi drivers on uClinux

I have an ARM based board running uClinux on it. It had a working ra0 interface (MT7601 WiFi module) before I recompiled and installed new kernel on it. Before writing new kernel and filesystem to it, ...
1
vote
1answer
39 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 ...
2
votes
2answers
44 views

Saving time while compiling Kernel

I have to demonstrate a practical where I have to make my own module, add this module to a kernel's source and implement the system call. I'm using 3.16 kernel on Ubuntu but it takes around 2 hours to ...
0
votes
2answers
1k views

Linux/compiler-gcc5.h: No such file or directory

I run into problem compiling a kernel scheduler for testing the compiling error linux-2.6.32-rc3/include/linux/compiler-gcc.h:86:30: fatal error: linux/compiler-gcc5.h: No such file or directory ...
0
votes
1answer
13 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
0answers
10 views

it terms of terminology is there an accepted difference between a kernel agent and a kernel module or a kernel driver?

In terms of terminology is there an accepted difference between the concept of a kernel agent, kernel module, or a kernel driver?
2
votes
1answer
252 views

How to compile kernel module for different kernel version?

I have the following kernel installed: [root@localhost ~]# uname -r 2.6.32-573.el6.x86_64 And the following kernel source: linux-2.6.32-573.1.1.el6.x86_64 I am trying to compile a kernel module ...
0
votes
1answer
162 views

Avoiding a buggy kernel version with “Oops” in radeon module

I have exactly the same problem as described here. I can find the same "Oops" messages in /var/log/kern.log. I also have an older Radeon HD (so I have to use the free driver). I downloaded the current ...
1
vote
0answers
72 views

How to know when I could reactivate HWP (Hardware PStates)

I have a x1 carbon 4gen, and my computer hangs during boot on "HWP enabled" message. For now the solution is to disable HWP (Hardware PStates) with the option intel_pstate=no_hwp on boot. There is a ...
0
votes
0answers
26 views

Kernel make install error for RTAI 3.8 on CentOS 6.5

Before posting I have read almost every similar post I could find on this and other websites but I haven't found an useful answer. I have to install a custom software that needs RTAI 3.8 on top of ...
1
vote
0answers
31 views

Invalid module format

I try to install a module using this command: sudo insmod mymod.ko [arg1] [arg2] but I get this error while loading the module: insmod: error inserting 'mymod.ko': -1 Invalid module format my ...
1
vote
0answers
133 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
0answers
33 views

How to trace the life cycle of kernel threads by following creation and switching?

How to trace the life cycle of kernel threads by following creation and switching ? kernel_thread() and schedule() are the 2 functions I know that but have no idea how to implement it..
1
vote
1answer
36 views

Is there a linux fs kernel driver for NTFS R/W and how does it compare to the fuse solution?

Is there an out of tree linux kernel NTFS kernel driver that provides R/W capabilities? I know there's fuse+NTFS-3G, but I've had it consume way too many CPU cycles. My question is: is there a (...
1
vote
1answer
99 views

Wifi stopped working, “Unknown symbol wireless_nlevent_flush”

As of this afternoon the wifi on my Dell XPS 13 stopped working (running Debian sid with kernel 4.4.0-1-amd64). lspci detects my wifi card, but ifconfig -a shows only the loopback interface. I tried ...
1
vote
1answer
35 views

Temporarily enabling a blacklisted kernel module from the cli

I have disabled a kernel module on my system >> uname -a Linux zyx 4.3.0-1-amd64 #1 SMP Debian 4.3.5-1 (2016-02-06) x86_64 GNU/Linux >> cat /etc/modprobe.d/blacklist.conf # Disable ...
1
vote
1answer
102 views

Why do the Linux kernel headers contain references to nonexistent headers?

I'm trying to build IBCS (source here) on Ubuntu 15.10 (Linux 4.2.35). This module is obviously pretty old, because its CONFIG.i386 file gives gcc an option -m486, which doesn't exist anymore, but ...
1
vote
1answer
337 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 ...
0
votes
1answer
12 views

Add symbols of LKM to kernel

I am trying to get my android kernel working but I have a kernel module that is needed in order to get access to the file system of the device. Unfortunately there is no source code available so there ...