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.

268 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
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....
5
votes
0answers
5k 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, ...
5
votes
1answer
4k 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 ...
4
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)...
4
votes
1answer
435 views

Loading WiFi driver results in the whole system becoming unstable. How to debug?

I am not a linux kernel expert, but I got this new laptop and it's WiFi(RT3290LE) is not working. I tried solutions from various sources and they are not working. So it is upto me to solve it, and I ...
3
votes
0answers
102 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 ...
3
votes
0answers
2k views

Audio Port: ASoC: no backend DAIs enabled for Audio Port

I have installed Arch Linux (x86-64) on a tabled, which is Chuwi Hi12. I have downloaded this sound codec specific for this tabled here: https://github.com/kernins/linux-chwhi12/tree/master/sound/soc/...
3
votes
0answers
369 views

Loading a kernel module at run time using “compatible” property of device node in device-tree

If I know the "compatible" property string of a device(from the device tree), can I use it at runtime to load the corresponding kernel driver module? I do not have access to the driver source. I am ...
3
votes
0answers
523 views

Hooking sys_execve on Linux kernel 4.6 or higher

Kernels lower than 4.6 use assembly stubs to harden the hooking of critical system calls like fork, clone, exec etc. Particularly speaking for execve, the following snippet from Kernel-4.5 shows entry ...
3
votes
0answers
36 views

Can anything from kernel-space defer a transition to S3 power state?

I'm wondering if there's a way to defer transition to S3 power state, for instance due to pending results from some external module, e.g. crypto-engine? Picture example scenario: user-space client ...
3
votes
1answer
629 views

Detect change in usb gadget state

Problem: How can I detect when the gadget is or is not connected to a host from the gadget itself? Background: The g_mass_storage Linux kernel module can be used to provide a mass storage device via ...
3
votes
0answers
371 views

Is it normal that a modalias matches various devices?

Recently another user asked why they were loading the fjes module. While I was trying to understand that question, I realized that Linux is also loading the same module for me. Now, this is the ...
3
votes
1answer
1k views

Find out why linux kernel module was loaded

The debian backports 4.8 standard kernel loads the module fjes on my thinkpad T460s. How can I find out why this module is loaded, i.e. which hardware triggers loading this module?
3
votes
0answers
543 views

r8169 stops working after a while

This issue appeared after the CentOS installation. Server becomes unavailable completely neither through ssh nor through smb protocol. It happens randomly and there is no exact regularity. It can ...
3
votes
0answers
318 views

Link library with common symbols in kernel module

I have a somewhat unusual situation, where I am trying to port a Linux kernel module that was designed for 2.4.9 to the latest kernel. The module consists of two parts, an open source wrapper, and a ...
3
votes
0answers
98 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 ...
3
votes
0answers
150 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
83 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
50 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 ...
3
votes
0answers
509 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 (...
3
votes
0answers
279 views

Signing a module for prebuilt kernel

I am developing linux driver for my own PCI device. I am stuck on starting my module: [14941.205599] mymod321: module verification failed: signature and/or required key missing - tainting kernel I ...
3
votes
0answers
54 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 ...
3
votes
0answers
536 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
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 ...
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 ...
3
votes
0answers
1k 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
36 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 ...
2
votes
0answers
40 views

Ubuntu 14.04 inserting a custom kernel module on boot

I would like to know how to insert a custom kernel module into the kernel during boot time? Also, would also like to ask how to ensure that this kernel module is always inserted earlier than all the ...
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 ...
2
votes
1answer
377 views

Compiled modules support for openWRT

In order to add driver for my wireless adapter, Bus 001 Device 002: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter I am building openWRT for my GL.iNet AR150. The ...
2
votes
0answers
487 views

Failure removing module, still in use/not found

I'm trying to remove a module I have created, but it doesn't work for me. Assuming my module name is xyz : When I try to run rmmod xyz I get the following error: rmmod: ERROR: Module xyz is in use ...
2
votes
0answers
78 views

How do I reserve a range of page frames just for my kernel driver?

I have a specific set of page frame numbers (PFNs, memory) that I want to reserve for my kernel driver. How do I do that? Can I do it at boot time? Any pointers appreciated.
2
votes
0answers
559 views

loading module 8812au fails

Why is this not loading my module? y9@y9-aspire:~$ sudo modprobe 8812au.ko [sudo] password for yannik: modprobe: FATAL: Module 8812au.ko not found in directory /lib/modules/4.13.0-26-generic y9@y9-...
2
votes
0answers
80 views

modprobe in setuid contextmodprobe in setuid context

In CVE-2017-0358, author notes that The issue is that /sbin/modprobe is not designed to run in a setuid context. As the manpage of modprobe explicitly points out The MODPROBE_OPTIONS environment ...
2
votes
0answers
66 views

Required kernel modules / configuration for OTG host on OMAP3 based device

I'm trying to figure out what kernel modules that I need to load in order correctly configure an TI OMAP3 based device (DM3730) as a USB host via the on-chip OTG controller. Without loading any ...
2
votes
1answer
796 views

Where are Kernel global variables stored?

I am currently writing a Linux kernel module. I am aware that in case of userspace programs, uninitialized global variables (exported to other modules using EXPORT_SYMBOL) are stored in BSS segment ...
2
votes
0answers
674 views

Unhide the hidden module in linux kernel

I coded a LKM which has a functionality of hiding itself from procfs and sysfs. The problem is when I try to unhide it I get the following error :libkmod: ERROR ../libkmod/libkmod-module.c:1882 ...
2
votes
0answers
681 views

Enabling Posix Message Queue

I'm trying to write a C application tha run on embedded linux device (debian os). I can't create POSIX Message Queue with mq_open() method, it returns an error "Function not implemented" with errno. I ...
2
votes
2answers
569 views

Explicit kernel module load at startup

I'm using grsecurity kernel which disallows automatic kernel load thus several systemd services don't work. After manually loading modules with modprobe and restarting module everything works ...
2
votes
0answers
113 views

Loading an external module into a signed kernel?

The steam link is running a valve signed Linux kernel, however the sdk provided by valve states that attempting to replace theirs with an unsigned binary will render the device unbootable. Would ...
2
votes
1answer
488 views

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

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 script creates a new ...
2
votes
0answers
759 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 ...
2
votes
0answers
603 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 ...
2
votes
0answers
547 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
45 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
136 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? ...
2
votes
0answers
1k 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
1k 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. /sys/class/backlight/toshiba/...
2
votes
0answers
646 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, ...