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
1answer
9 views

usb wifi adapter using ath9k_htc not working on linux

I have a TL-WN821N wifi adapter that is supposed to work using purely free software. It used to work when I used the Trisquel linux distribution but now when I have switched to Debian it does not ...
3
votes
1answer
640 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 ...
2
votes
2answers
866 views

No build scripts available when compiling module outside of Linux source tree

I am attempting to build a basic module outside of the Linux source tree (3.18.0-rc6). When I build it, I get an error saying it couldn't find scripts/... My directory setup looks like this ...
0
votes
0answers
3 views

usb_buffer_alloc, kmalloc, usb_alloc_coherent error writing USB Device Driver [migrated]

I'm writing a USB Device Driver for simple communication with an FPGA (UART / USB) and I intend to end this available for use in the Linux community. Introduction to the problem: I wrote my code and ...
1
vote
1answer
49 views

What does the xpad kernel module provide? (And what would I lose by disabling it?)

Backstory I wanted to use xbox controller for some steam-on-wine games. I found xboxdrv which claims to make xbox controller work for wine programs. When I run $sudo xboxdrv I get: xboxdrv 0.8.5 - ...
1
vote
1answer
24 views

Are Modules listed under /sys/module all the Loaded Modules?

I'm wondering if I can use the directory listing of /sys/module instead of lsmod to get a list of currently loaded modules. Is that the list of loaded modules only? Or maybe that combined with ...
0
votes
0answers
7 views

Registering virtual SPI master device

I need to create a virtual SPI master device. Having a proprietary solution that communicates directly with a sensor using SPI I want to move the sensor away. To do so I want to create a kernel ...
0
votes
0answers
16 views

check-config errors on Linux 3.19.0 kernel, configured under Ubuntu 15.04 x86-64

I'm new to configuring Linux kernels, and am receiving the following errors when running config-check: check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/amd64-config.flavour.generic: loading config ...
1
vote
0answers
20 views

Linux ioctl return value interpreted by who? [migrated]

I'm working with a custom kernel char device which sometimes returns large negative values (around the thousands, say -2000) for its ioctl(). In userspace, I don't get these values returned from the ...
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
0answers
28 views

Linux: Using module functions [migrated]

Let's say I have a module which has this function my_open: int my_open( struct inode *inode, struct file *filp ) { filp->private_data = //allocate private data if( filp->f_mode & ...
1
vote
1answer
18 views

What module in the kernel that inform the DHCP client to start DHCP negotiation?

DHCP client is a process instead of kernel code. How the DHCP client know when to start sending DHCP discover message? Is it the IP module in the kernel that inform the DHCP client?
2
votes
1answer
41 views

Which system file is loading the “wl” (wifi) kernel module at boot time?

I've recently installed the "wl" (wifi) kernel module on my system. It's a driver that makes my Broadcom wifi card work. Unfortunately the module gets enabled at boot time (wifi light comes on), which ...
1
vote
1answer
22 views

NVIDIA drivers as LKMs in Unix: Module nvidia not found

Some time ago, I installed GeForce GTX 970 on my computer running under Fedora 20. An import thing to know is that I'm using the card only as an accelerator (not for graphics). Until recently, it ...
2
votes
2answers
571 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
0answers
78 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
1answer
584 views

custom kernel and firmware loading

After I have compiled my kernel, and when I type make modules_install, not only are the modules copied into /lib/modules/ but also firmware is copied into /lib/firmware/. The following is the end of ...
6
votes
1answer
1k 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 ...
1
vote
1answer
74 views

Unable to install new kernel in ubuntu server. “gzip: stdout: No space left on device” error even though abundant disk space

I am trying to install a new kernel on Ubuntu Server and I am unable to complete it due to a "gzip: stdout: no space left on device" error. The full error was produced after running sudo make ...
2
votes
1answer
30 views

Recompile kernel without modules that are not currently in use

Is there a neat way of stripping the Linux kernel to only support the devices that are currently in use. After NVIDIA complaining about GCC version mismatch, I decided to recompile the kernel with the ...
0
votes
0answers
14 views

microusb to rj45 usage

I just got these (generic) devices today: Micro USB 2.0 to Ethernet 10/100 M RJ45 Network Lan Adapter Card. No vendor listed. I came with a mini cd that is not readable from linux. I'm headed to a ...
2
votes
0answers
39 views

EDID - help to detect proper DPI and refresh rate values

I just tried to extract EDID file data with read-edid util; The thing is the output shows : $sudo get-edid | decode-edid ... Manufacturer: AUO Model 20ec Serial Number 0 Made week 0 of 2013 EDID ...
1
vote
0answers
151 views

i915 - Intel BayTrail - graphics artifacts

I just noticed I have some kind of graphics artifacts which effect visual discomfort like so called "blurry"; And, moreover, I am not sure I have correct DPI settings right now (give me advise ...
-1
votes
1answer
86 views

RAM Disk related questions [duplicate]

there is a developed kernel subsystem that needs a chunk of memory allocated to itself that only it could manipulate this chunk. this memory should be physically contiguous and also it need the access ...
1
vote
0answers
30 views

Binding/unbinding GPU between host OS and pci stub while host OS is running

Using a Debian 8 host, I'm interested in setting up a Windows VM guest which get's direct access to my dedicated/discrete graphics card, to see what sort of performance I can get out of it for games ...
2
votes
2answers
668 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 ...
3
votes
1answer
29 views

Is a disabled kernel option equivalent to not loading the corresponding module?

Suppose I set a tristate kernel configuration option to be built as a module, but I don't load the corresponding kernel module at runtime (and it doesn't get loaded automatically). Is the ...
0
votes
1answer
25 views

edit module requirements when compiling kernel

I would like to compile the realtime kernel for raspberry pi (https://github.com/emlid/linux-rt-rpi) and want to use the pi with a soundcard - the tascam us122l. The problem that I have is the ...
1
vote
0answers
26 views

Signing a module for prebuilt kernel

I am developing linux driver for my own PCI device. I have stucked up on starting my module: [14941.205599] mymod321: module verification failed: signature and/or required key missing - tainting ...
1
vote
0answers
28 views

Linux: Two differen drivers for two (mostly) identical PCI devices

for some obscure reason I want to use two different drivers for two identical PCI devices on the same system. The drivers have different characteristics, which is why I want one physical device ...
0
votes
1answer
16 views

Use of MODULE_FIRMWARE(filename) macro in Linux modules

What is the use of the MODULE_FIRMWARE(filename) macro in Linux kernel modules?
0
votes
0answers
28 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 ...
0
votes
1answer
20 views

make for linux kernel module

I have recently started learning kernel module programming using the book The Linux Kernel Module Programming Guide and I dont understand how does this make work obj-m += hello-1.o all: make -C ...
0
votes
0answers
26 views

An error during boot that I can not see

When I boot fedora, It shows an failure about modules and it disappears and then splash appears. I checked the /var/log/boot.log but there was no errors or failures there. Where can I find it?
1
vote
1answer
50 views

Some questions regarding linux kernel external module build process

The Linux kernel documentation page for building external modules (https://www.kernel.org/doc/Documentation/kbuild/modules.txt) says this: === 2. How to Build External Modules To ...
0
votes
1answer
58 views

ACPI – how to select correct LED and LCD module

I'm facing a strange issue. I have ASUS x551ma notebook; As I can get it, after a while (20-30 min) watching LCD, I suffer eye strain. The graphics (video card) seems fine but the LED is micro-shaking ...
1
vote
0answers
56 views

Custom driver for keyboard GNU/Linux 4.1.0-rc8 (Fedora)

I am writing a driver for a Logitech G110 USB keyboard for Kernel 4.1.0-rc8. My driver is perfectly loadable with insmod (Debugging message prints to dmesg that it get's initialized through ...
1
vote
0answers
21 views

How to catch my bluetooth service events

I have usb bluetooth device which is using btusb 0.6 module (driver). The thing is I am interested to know is: how is the systemctl start bluetooth.service event invoked? I was looking info about ...
1
vote
1answer
88 views

4G modem on an embedded 2.6.32.9 kernel on a Parrot AR Drone 2.0

I am attempting to compile support for a Huawei E3276 usb LTE modem for an embedded Linux/BusyBox installation on a Parrot AR Drone 2.0, which is based on kernel 2.6.32; however, I am running into ...
0
votes
1answer
49 views

What is the kernel command line to disable bluetooth in /etc/default/grub?

What is the kernel command line to completely disable bluetooth in /etc/default/grub? I don't have it, don't need it, don't want it, complete waste of resources.
1
vote
1answer
53 views

Is it possible to tell what source loaded a Linux kernel module?

In my Linux distribution there are a number of modules loaded during boot up and I'm trying to find where they're loaded from. [root /proc]# lsmod Module Size Used by ...
0
votes
0answers
52 views

Installing specific usb serial modules in fedora 21

I am trying to use a usb to dual rs232 cable (USB Compound Device due to the number of RS232 connectors) on my fedora 21 system to install another linux os (Gentoo) on a Cobalt RaQ 4i server blade, ...
6
votes
5answers
21k views

How to solve “building the main Guest Additions module Failed”

I tried to install the VirtualBox Guest Additions module in a VM guest running CentOS but I get this error message when everything else was okay: building the main Guest Additions module Failed ...
1
vote
0answers
50 views

Manually compile and add module r8169 (and others)

When typing lspci i get: ... 01:00.0 Ethernet controller: Realtek Semiconductor CO., LTD RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06) 05:00.0 Ethernet controller: Atheros ...
1
vote
1answer
79 views

Booting encrypted disk kernel error: Cannot initialize device-mapper

I have Ubuntu 15.04 with a default full disk encryption installed on my chromebook Pixel with linux-samus kernel patch and everything is working fine. I've just tried compiling a newer version of the ...
0
votes
0answers
15 views

SystemTap log output to file

I want to log output from my SystemTap script to a file. But when I try to use the -o option like: stap -r $PWD --remote user@hostname -o test.txt -S 1 ./test.stp I can't find the log file. If I ...
0
votes
1answer
36 views

How do I find a directory or a file in Linux file system [closed]

I am using the find command in my Android image; a image which I developed myself and put in an example of a dynamically loadable module. I put the code in the /example directory of my source code, ...
1
vote
2answers
146 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 ...
0
votes
1answer
43 views

bluetooth - btusb module remove stops bluetooth service

I just faced a strange issue; Every time after suspend the btusb module is kicked out the RAM (for some reason but its OK cause I can reinit it manually) but as a result the bluetooth.service must be ...
0
votes
0answers
114 views

Broadcom wireless driver source vs dkms

I've a MacBook Air 6.2 with a BCM4360 wireless chip with PCI-ID 14e4:43a0 (rev 03) running Debian Jessie. I installed the wl driver from Broadcom to make the wifi card work, but it crashes ...