Tagged Questions

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

1
vote
1answer
23 views

Debian Wheezy, issue connecting multiple monitors

I just recently migrated to Wheezy from Arch, everything has gone very well except I can't seem to get multiple monitors to work. Here is my setup: machine: Dell Latitude E6540 laptop graphics: ...
0
votes
0answers
11 views

Can I create a custom kernel module to extend functionality and use it in C code WITHOUT recompiling the kernel? [migrated]

I have a technical question. I want to write a program that can set the LED color of my DS4 controller on linux. Over USB I can already achieve this on all platforms. When the DS4 controller uses ...
1
vote
0answers
19 views

process duplication [migrated]

how to create a process at kernel level? As the functions do_fork and copy_process are static we cannot use them, so is there any way we could use their functionalities or do I have to implement ...
0
votes
0answers
31 views

custom built kernel module problems

I have been struggling to find a solution for loading module ath9k into the kernel and I have met a dead end. The kernel is 3.17.1 taken from kernel.org and I am compiling it in Ubuntu Trusty (14.04) ...
2
votes
3answers
57 views

cannot reconfigure virtualbox-dkms

I have installed vitualbox on Debian Jessie according to instructions on debian wiki. By running: apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox During installation ...
2
votes
0answers
31 views

How to determine the wordsize in Linux kernel programming? [closed]

In userspace code, the macro __WORDSIZE is used, included in <bits/wordsize.h>. However, when I do Linux kernel programming, the __WORDSIZE seems not available. If <bits/wordsize.h> is ...
1
vote
1answer
38 views

Kino error:WARNING: dv1394 kernel module not loaded or failure to read/write /dev/raw1394 on Fedora 20, dvgrab works

I want to import and work with my dv's which are from a SONY DCR-PC101E camcorder, I've installed alot of Video editing software on one of my systems, namely my Fedora 20 running on an old HP with ...
0
votes
0answers
23 views

Changing CPU frequency programmatically

I have seen that standard CPU Frequency driver(comes with default package with linux kernel) can change the CPU frequency at runtime, when being used under the supervision of "Ondemand" governor. ...
1
vote
1answer
32 views

Disable KVM Kernel Module while its still in use

In order to run a virtual machine, VirtualBox tells me to disable the KVM kernel module. I googled around and found out that KVM is included in the qemu-*-packages, but none of them is/was installed ...
0
votes
0answers
20 views

rtnetlink No such file or directory error For Red algorithm

I tried the following command on my Ubuntu 14.04 Virtual Machine: tc qdisc add dev eth0 parent 1:1 handle 10: red limit 400000 min 30000 max 90000 avpkt 1000 burst 55 ecn adaptive ...
0
votes
3answers
50 views

Linux Distro name API to get name of linux distro in a driver code?

I am writing a common code in a driver to get the distros name and host name. host name i am taking from struct utsname{nodename[]}, but how do I get the distro name?
1
vote
1answer
27 views

USB Tuner driver not detected

I am using a DVB Tuner, USB tuner. I have added driver to the kernel and it is being registered. But when the device is connected, it doesnt invoke the probe function. Is there anything I have to ...
1
vote
2answers
29 views

Removing a module from the blacklist

How do I remove a module from the blacklist? I need b43 to load on start but journalctl tells me that it is not loading because its in the blacklist. How do I remove it from the blacklist? I'm using ...
0
votes
0answers
12 views

How Do I Reset Modules to Default

Bad form, but I attempted to install a custom module from a project that didn't support an uninstall target. Now I'm getting odd behaviors with kernel panics and brightness zero on boot. How can I ...
0
votes
0answers
40 views

How to display printk messages filtered by level as they come?

I wrote a hello word module that performs a printk when it is loaded in level ALERT and another printk when it is released with level INFO: #include <linux/module.h> #include ...
0
votes
0answers
55 views

Missing macros for VSYSCALL in Linux 3.16.4

I am running Arch with kernel version 3.16.4. I need to compile a kernel module for running Intel Vtune '13 (r17). GCC reports the following: ...
1
vote
0answers
31 views

How are network and SCSI kernel modules handled differently from other kernel modules?

I used modprobe to load the 8021q.ko module on a server. I expected to have to do this every time the server rebooted until I made it persistent. However, to my surprise, it was loaded automatically ...
8
votes
1answer
384 views

Why do user space apps need kernel headers?

I'm building busy-box and iptables for an embedded device and one of the dependencies for them are the kernel headers. I have searched the whole file system for *.ko files and found none. So i ...
0
votes
0answers
98 views

vboxdrv kernel module

I'm just install virtualbox and when i try to launch the program from the terminal i got this error #virtualbox WARNING: The character device /dev/vboxdrv does not exist. Please install the ...
1
vote
1answer
45 views

Can't losetup anything on armhf NAS

I'm pretty new to linux and chrooted my NAS with armhf architecture and tried looping device: losetup -f losetup: Could not find any loop device. Maybe this kernel does not know about the loop ...
1
vote
0answers
51 views

How can I properly reload a kernel module?

Related Question I can't reload a kernel module for trying new flags. Example: thinkpad_acpi default is without fan_control=1. So if my computer runs really hot and the fans don't go to full speed it ...
1
vote
1answer
39 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
32 views

Failing to load a module on udev event

I have a pretty simple udev rule which is executed when a USB is plugged into my Debian machine: SUBSYSTEMS=="usb", KERNEL=="sd?", ACTION=="add", RUN+="/usr/local/bin/USB/t.sh \ %k" My t.sh is also ...
0
votes
0answers
43 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
0answers
55 views

Get KERN_DEBUG messages into syslog on rhel7/centos7?

I've been trying to get KERN_DEBUG messages logged to a file in centos7, but have had no luck. I can get them just fine from "dmesg," but not /var/log/messages or /var/log/dmesg Here's a MWE kernel ...
3
votes
1answer
62 views

How to see driver parameters? [duplicate]

Drivers often support various parameters. For example NIC driver e1000 supports flow-control (FlowControl) or auto-negotiation (AutoNeg) parameters. Is there a way to see which parameters were passed ...
0
votes
0answers
47 views

2.6.35 usb-serial kernel patch

I am working with an ARMV71 chip, with embedded Debian 2.6.35.9 - However, the entire source tree of linux-source-2.6.35-9/drivers/usb/serial seems to be buggy. Trying to make the module ...
6
votes
1answer
73 views

What Linux kernel features does os-prober require to find a Windows 8 installation?

I built a new custom Linux kernel using make localmodconfig and after booting the new kernel, update-grub doesn't detect my Windows 8 installation. My distro kernel (with tons of modules I don't ...
2
votes
0answers
94 views

lz4 Kernel Module in CentOS without recompiling

I just installed CentOS 7 on a vServer to play around with. Usually I use Debian. Since I had good results, I want to use zswap. I enabled it by putting zswap.enabled=1 zswap.compressor=lz4 in the ...
0
votes
0answers
81 views

USB Keyboard Hotplug Module not Working

The following module could be compiled and loaded without any error: #include <linux/module.h> #include <linux/kernel.h> #include <linux/usb.h> #include <linux/usb/input.h> ...
3
votes
1answer
83 views

How do I persistently load a kernel module in Fedora 20?

I have successfully followed the instructions for setting up 802.1q VLAN tagging in Fedora. Now I need to make sure that when I reboot the 8021q kernel module is loaded again. Should I be doing this ...
3
votes
1answer
103 views

Module marked (F) in /proc/modules

On my 3.10 system some of modules listed in /proc/modules are marked (F). I'd like to find the cause of this (F). I am sure modules were not forcefully loaded and were built with the Kernel. Could ...
0
votes
0answers
19 views

LVM2 Mirror Support Missing from Kernel after System Migration

I had a system that was running on a small netbook that had LVM2 set up to group two external USB hard drives into a volume group, and to use that volume group to create a mirrored logical volume. ...
1
vote
2answers
55 views

Is it bad to have too many Kernel modules?

I'm trying to compile a Linux kernel to debug an issue I have on Arch Linux, and I was configuring modules, but I didn't know what a lot of the stuff was so I left them on. If this kernel works I ...
0
votes
0answers
82 views

Failure loading kernel module

I've followed the steps at Build Your Own Kernel Modules (CentOS) but when I modprobe it fails: [root@centos7 ~]# modprobe pcnet32 modprobe: ERROR: could not insert 'pcnet32': Exec format error ...
0
votes
0answers
236 views

Upon bootup, all iptables are lost because the kernel module ip_set is not loaded

i can get iptables to whitelist / blacklist using ipset members, but after a reboot, the iptables are emptied out because the kernel module is not loaded. Have limped along in the past by customizing ...
1
vote
0answers
31 views

“disagrees about version” message

I get a message "disagrees about version" on boot time, after compiling kernel and modules with KGDB. Why should this happen ? Is there any problem with KGDB ? This is the relevant log at boot: ...
2
votes
1answer
122 views

load module via /etc/modules

I want to load my kernel module hello.ko on boot in Ubuntu 12.04. I placed it in /lib/modules/3.8.0-31-generic/kernel/ubuntu/hello.ko, ran depmod -a, and added "hello" to /etc/modules. However, when ...
1
vote
0answers
55 views

What does __ prefix before some kernel api's convey?

Why do some function calls in kernel specially have this prefix __ example: __init initialization(void) is __init a macro? What does this convey? Are these a special class of function calls inside ...
4
votes
2answers
86 views

Trigger an init script when a specific device is up and a kernel module has been loaded

On my ubuntu 12.04 servers, I need to write an init.d script that waits until the infiniband interface (device: mlx4_0, interface: ib0) is completely up, and until the knem kernel module is loaded. ...
0
votes
0answers
23 views

Module load map

How can I obtain a module load map? I've tried with the -m flag in insmod but it seems that since 2.6 there is no support for it. Thanks
5
votes
0answers
517 views

“usb 3-2: can't set config #1, error -110” - USB keyboard works in Windows 8 laptop but on PC only until Linux boots

I tried 2 new USB keyboards that work until Linux starts booting. When booting I saw: [ 8.365211] usb 3-2: New USB device found, idVendor=1a2c, idProduct=0b23 [ 8.404863] usb 3-2: New USB ...
3
votes
1answer
53 views

How do I find out what filesystem drivers are compiled-in into the linux kernel?

On a running linux system, what is a portable (among linux distributions) way to find out what filesystems the current kernel has compiled-in (not through modules) support for? Consider for example ...
2
votes
2answers
322 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 ...
1
vote
1answer
562 views

aircrack-ng shows negative channel

On many Linux distributions, be it BackTrack, Kali, BackBox, Ubuntu, Mint, etc., whenever I use anything from the aircrack-ng suite my wireless card is shown as channel -1. This problem has been ...
1
vote
0answers
27 views

CPUFreq Kernel module

I would like to try the CPUFreq module on my board (Marvell Soc based on ARMv7 running a v3.15 linux kernel). My architecture is obviously not supported by the default source code (located in the ...
1
vote
1answer
93 views

Which kernel module name is currently correct “usb-storage” or “usb_storage”?

I have found a number of examples how to prevent a kernel module from being loaded. One of them is about USB storage module. The next code has been provided: echo "blacklist usb-storage" | sudo tee ...
1
vote
1answer
132 views

unrecognized inateck hdd enclosure with linux Mint

I have put in a Hitachi 2.5 inch hdd inside a Inateck hdd enclosure. I have connected the enclosure to a Toshiba R630-156 using a usb2 cable on a usb3 enclosure port. I can hear and feel the hard ...
0
votes
0answers
58 views

Calling speaker-test from usermode-helper API

I needed to call come audio-producing applications from kernel in a toy module. In order to test that, I thought of calling speaker-test from a simpler module, but no sound would ever come from it. I ...
0
votes
0answers
46 views

Virtual serial port problem

Background: I've to test external GSM module, connected to PC with serial port. Since I'll have to either send messages both to do more, I need to create two virtual serial port (script provided by ...