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

4
votes
0answers
527 views

How to create Linux Kernel Headers from Linux Kernel Source?

I'm working with Tiny Core Linux and attempting to install Vmware Tools, which of course needs the Kernel Headers :-). It does not appear they have the Kernel Headers readily available in a package, ...
3
votes
0answers
29 views

How to switch static drivers like switching kernel module drivers?

I have a linux embedded device that I need to switch between USB file storage gadget driver and USB Ethernet gadget driver at runtime. The approach I use now is to build both drivers into kernel ...
3
votes
0answers
13 views

Problem in making Perf Kernel Counter work

I have written a kernel module which creates a performance counter via "perf_event_create_kernel_counter" API and then periodically reads its value. My application works on Kernel version-4.0.9 (and ...
3
votes
0answers
194 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 ...
3
votes
0answers
154 views

How to insert a modified ELF loader given the current ELF loader is present?

I need to modify the ELF loader's kernel implementation of an Ubuntu 14.04 distribution. Having downloaded the sources using: sudo apt-get source linux-image-$(uname -r) I ran the configuration ...
3
votes
0answers
4k 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 ...
3
votes
0answers
640 views

How to load HID kernel module from the kernel command line?

While upgrading a server from kernel 3.2.9 to kernel 3.5 I had a problem with the network (ifconfig eth0 up won't work) so I updated the system to get a newer userspace, but in the process something ...
2
votes
0answers
228 views

Nvidia driver for kernel 4.4.1? Any luck, anyone?

After some challenges getting Kernel 4.4.1 (Ubuntu 15.10 ) to work on my hardware (MSI GS40 Phantom laptop) it looks like I have to go back to Noveau as the nVidia driver doesn't work. Has anybody ...
2
votes
0answers
18 views

Verifying kernel modules using a list of hashes

I'm interested in preventing replay attacks on kernel module verification. I feel that using a list of hashes of kernel modules would be better for this than using digital signatures. My Motorola ...
2
votes
0answers
22 views

How connected are kernel modules to kernel version?

I'm wondering how custom ROMs port new versions of Android (particularly the Linux kernel) to old phones. As I understand, Linux allows closed source kernel modules. If so, then when the phone ...
2
votes
0answers
1k views

kernel: bcm2708_fb soc:fb: Unknown ioctl 0x40187a22

I have a Raspberry Pi running Raspbian. Towards the end of the startup log, I see this error. I believe it has been there a while, and I'm not sure what it may imply. kernel: bcm2708_fb soc:fb: ...
2
votes
0answers
61 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 ...
2
votes
0answers
448 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 ...
2
votes
0answers
36 views

How to work with a kernel one has no information about?

I'm working with a system to automatically assemble Live CDs. It came packaged with a kernel (seemingly based on 3.13.11), that has been working without problems so far. I noticed that, when I try ...
2
votes
0answers
359 views

Disable backlight device

I have two backlight devices in /sys/class/backlight: toshiba and intel_backlight. The former works only before I put my laptop on sleep and the latter works perfectly. ...
2
votes
0answers
271 views

Modeline for Dell U2415 1920x1200 resolution

I'm trying here to run my secondary display (U2415) on the native resolution 1920x1200. Xrandr unfortunately reports only 1920x1080, which is not satisfactory. $ xrandr Screen 0: minimum 8 x 8, ...
2
votes
0answers
215 views

Shell script for automated kernel compilation

I am trying to write a shell script to build a custom kernel on Arch Linux. I have succeeded to do write all the steps described in the Arch Linux kernel compilation page: ...
2
votes
0answers
409 views

How can I find which module driver holds of i2c address?

I want to communicate over a I2C bus using Python. But the address cannot be used because it is used by another driver. # i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: ...
2
votes
0answers
206 views

How can I set up an offbrand display link (Trulink) to work with arch linux?

I recently bought a USB to DVI adapter and it works great in Windows. However, I wanted to use it on Arch since that's where I do most of my work. Unfortunately it doesn't work. I've installed all ...
2
votes
0answers
173 views

kernel build: why does 'make install' complain about missing modules?

I'm building a 3.2.x kernel on a RedHat Enterpise system. During 'make install' it takes a very long time and is complaining : ERROR: modinfo: could not find module xxx I assume its probing ...
2
votes
0answers
400 views

RNDIS Server to make a computer as a peripheral

First of all my goal is this, have a computer as a peripheral device to connect it to anyone's computer with ssh protocol or web. The idea is doing this by using a plug and play USB cable . Facts ...
2
votes
0answers
347 views

How can I automatically include all firmware needed by selected Linux kernel modules

I have certain modules which I need compiled into the kernel. Some of these modules require firmware, which used to be automatically included from /usr/src/linux/firmware/. However, no new firmware ...
2
votes
0answers
615 views

Debian Wheezy USB2 ehci_hcd

I have a friend who decided to switch to Linux from Windows. I was helping her to get up and running as quickly as possible but we ran into a problem which I can't seem to solve. She uses Debian ...
2
votes
0answers
511 views

How to configure buildroot to add a sound device?

I've used a given board configuration to reconfigure it for my individual board. My board has a CS4270 sound device of Cirrus Logic. My uImage is booting successfully on my target hardware, but an ...
2
votes
0answers
236 views

How to find where driver.mod.c links to?

I'm trying to port the webcam composite gadget from kernel 2.6.37 to 2.6.32. I don't have a choice on this since I depend on other drivers and a SDK which only compile for this version. My train of ...
1
vote
0answers
7 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 ...
1
vote
0answers
16 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 ...
1
vote
0answers
39 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 ...
1
vote
0answers
27 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
56 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 ...
1
vote
0answers
27 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
0answers
120 views

Loading new wlan driver

TL;DR. Two issues: can't get wlan0 working, can't get wpa_supplicant working. I compiled & installed kernel 4.4 (rev. eb4d55) with revamped rtl8xxxu support enabled. In order to compile ...
1
vote
0answers
81 views

Kernel 4.1.18 doesn't support aes-xts-plain64

My root partition is under a luks crypt and when I type in my password it tells me to make sure my kernel supports aes-xts-plain64 and to check syslog for more info. Obviously I can't check syslog ...
1
vote
0answers
53 views

Linux kernel running only with use of physical address

Is it theoretically possible to make Linux which for its own kernel (include modules) uses only physical addresses? (it means it completely omits MMU) For processes how would you know if there was ...
1
vote
0answers
15 views

Autoloading a particular driver, based on a detected specific kernel

I need some help in writing a tiny script and determining its placement within Debian 7.9 filesystem. As the title says, the script needs to be executed automatically on startup and, after checking ...
1
vote
0answers
182 views

Linux Kernel module Remote Debugging with GDB + KGDB, Remote 'g' packet reply is too long

I am trying to remotely debug Linux Kernel and I am having issues. My setup: Target machine with Ubnutu Linux with my custom kernel 4.3 which I built with debugging information and KGDB. ...
1
vote
0answers
23 views

API for Kernel Module Development

I want to know if there is an API documentation listing all the functions/methods in the Header files? E.g. linux/kernel.h listing functions like printk(), linux/moduleparam.h indicating functions ...
1
vote
0answers
36 views

Kernel module inconsistency

everyone. I have special USB device (chinese touchscreen), what I need to connect to my computer with Linux. By default, Linux assign connected device to usbhid (I found this info by execute ...
1
vote
0answers
63 views

Installation doesn't happen on new kernel versions?

I have several modules setup in DKMS which should be automatically installing to new kernel versions, but aren't. I'm noticing the same problem on all four of my home-brewed DKMS modules. Here's an ...
1
vote
0answers
32 views

How to automatically load a new VID&PID to module usb_serial

I have a 4G module that requires me to run echo '03f0 581d' > /sys/bus/usb-serial/drivers/generic/new_id after every startup/resume to make the modem visible. How should I make this automatic? ...
1
vote
0answers
16 views

Specify driver for given device?

I have an interesting problem. I'm on Ubuntu 14.04 (distro: elementary OS Freya). I have a MacBook Pro in a dock which provides ethernet over USB 3. The USB ethernet device id is 0b95:1790 and uses ...
1
vote
0answers
126 views

weak-modules from module-init tools directory

I see in module-init directory, files named as weak-modules*. bash # ls /usr/lib/module-init-tools/weak-modules* /usr/lib/module-init-tools/weak-modules /usr/lib/module-init-tools/weak-modules2 ...
1
vote
0answers
163 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 gets direct access to my dedicated/discrete graphics card, to see what sort of performance I can get out of it for games ...
1
vote
0answers
578 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
vote
0answers
105 views

Linux: Two different 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 ...
1
vote
0answers
179 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
36 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
0answers
146 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
0answers
216 views

Autoloading externally compiled module at hotplug event

I have a pretty outdated embedded linux driven system with v2.6.33.7 kernel, which came without USBNET and CDC_ETHER modules. I compiled those modules to be able to attach a certain USB-LAN stick, ...
1
vote
0answers
146 views

Xen Kernel - SCSI_WAIT_SCAN Module

We've recently deployed a HP ProLiant DL180 Gen9 with 12 x Intel 530 SSD Drives. The system is running RAID-10 on top of HP Smart Array P840. Our aim was to use Xen on this server. However, when the ...