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.

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

How do proprietary modules work for majority of kernel versions?

A question has been bugging my mind recently. Since virtually all proprietary modules are out of tree (and therefore not compiled against any kernel versions), I'm wondering how exactly they are ...
0
votes
0answers
22 views

How can I build linux kernel module with multiple c file?

I'm trying to build some kernel module acts like simple firewall for practicing kernel programming. I'm trying to build my module split to multiple c and header files but it won't finish build with ...
0
votes
0answers
36 views

Wifi not working on any Linux distro

I have a HP 255 G2 notebook PC. I stuck with Linux Mint 17.1 after a hopping through a few distros. After I upgraded to LM 18, WiFi wasn't working anymore. Being the noob that I am, I just tried ...
0
votes
0answers
17 views

Eject live CD on reboot/shutdown

This problem has been posted before but didn't seem fully resolved (link: Eject CD on shutdown). So the problem is booting off of live CD then I want to eject the CD on reboot or shutdown. I have ...
1
vote
0answers
17 views

How to find the changes done to a particular kernel module through all releases

I need to access source code of all past versions of read_write.c under /fs/ from 3.10 to 5.3. So far I had to go through https://elixir.bootlin.com/ repeatedly and look at every single version that ...
0
votes
1answer
45 views

/proc in Kernel Modules

Currently I am learning Kernel Module Programming reading "https://www.tldp.org/LDP/lkmpg/2.6/lkmpg.pdf" ,and in that book there is a chapter titled as "/proc File System", I have learnt how modules ...
0
votes
1answer
33 views

Manjaro displays “Failed to load Kernel Modules” on boot but still boots

So I've installed Manjaro on my sandisk SSD. Every time I boot up, before the login screen when the system boots and show a lot of text on the screen, I see 1/2/3 (I don't know the exact amount) times ...
0
votes
0answers
23 views

how to make the Debian9 load amdgpu module other than vesa

buddies! I have a hybrid laptop(sorry) with AMD A10 cpu (integrated with R5 graphic) and isolated Radoen R7 Topaz graphic. The Ubuntu 16.04.6 was run on this box more than 2 years.Ubuntu just ...
2
votes
2answers
866 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
32 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 ...
1
vote
1answer
422 views

empty modules.dep for new kernel compilation

i've got empty modules.dep file after compiling new kernel from source after kernel compile, and then kernel module compile and then make modules_install to modules directory, i checked modules.dep ...
1
vote
1answer
1k views

Radeon GPU not found after kernel upgraded to CentOS 7.5 - “[AMD/ATI] display unclaimed”

My system has a three monitor setup: Monitor 1 connected to the onboard i915 chip Monitor 2 & 3 connected to a Radeon RX 560 GPU This configuration worked until I upgraded CentOS to the 3.10.0-...
3
votes
0answers
92 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 ...
2
votes
2answers
899 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
1answer
30 views

Linux Kernel Development Support for RSA Encryption [closed]

I am working on a prototype, and I'm new to Linux Kernel Development. I see that the Linux Kernel has a crypto module, but I am not sure if it supports Asymmetric Encryption such as RSA.
1
vote
2answers
40 views

How to cause kernel panic by deleting a device driver (module)?

Is it possible to cause kernel panic by removing a device driver and then making a system call that uses that driver so that kernel goes in panic?
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....
0
votes
2answers
1k views

TUN Module Loaded but OpenVPN /dev/net/tun no such file or directory

lsmod -> tun 16587 0 - Live 0xbf0e1000 Openvpn error: Cannot open TUN/TAP dev /dev/net/tun no such file or directory I tried creating a dummy directory but the error changes to Cannot open TUN/TAP ...
3
votes
2answers
5k views

Build kernel in one machine, install in another

I want to build my Linux kernel on my host and use it in my VWware virtual machine. They both use the same Ubuntu kernel now. On my Host, I do make and make configure. Then, what files should I copy ...
0
votes
0answers
11 views

DSL/knoppix linux appends 0 to port names. How to remove?

I just installed the latest version of "Damn Small Linux". It uses kernel 2.4 and knoppix. When I boot the PC and look at dmesg, I noticed the following entry for the serial port on my system: <...
4
votes
2answers
710 views

Are Linux kernel modules a sort of Linux system paged pool?

I always read that Linux kernel isn't pageable. If I'm not mistaken Windows, instead, divedes system virtual memory in a paged part (paged pool) and non-paged part (non-paged pool). The non-paged part ...
1
vote
0answers
27 views

Distributing a Module.symvers

I'm creating a set of kernel modules. Each module is its own project. One of these modules provides an interface to many child modules. ie. One parent module has exports and the child modules import. ...
5
votes
2answers
5k views

Module Stacking in Linux device drivers

I am trying my hand with Linux, just come across the concept of module stacking. It can be used to use symbol exported by other Modules. Means we can use something already made in some module so we do ...
7
votes
1answer
2k views

How to boot linux without an initramfs?

I'm looking for a way to boot an existing linux kernel without an initramfs. According to this link it should be possible simply by editing /boot/grub2/grub.cfg. But if I try this config menuentry '...
0
votes
1answer
1k views

build is missing for compiling kernel module

this is my first time trying to create a kernel module, apparently after creating a module I need to follow these steps to compile it: echo "obj-m := Hello.c" > Makefile make -C /lib/modules/`...
0
votes
0answers
17 views

Passthrough of GTX 1070 to linux guest crashes host, so does unbinding from nouveau

After successfully using an NVIDIA GTX 1070 passed though to a Windows guest under KVM, I now want to pass it to a linux guest, and that is proving to be a problem. First, I tried creating a VM with ...
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?
1
vote
1answer
51 views

How to build a specific kernel module?

I installed a kernel source from the official Linux kernel repository (http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.15.tar.bz2) and I recompiled it with some needed options to support the ...
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 ...
0
votes
0answers
10 views

How to compile kernel in XU4 (armv7l)? Error compiling kernel 4.14.127: “sha512_block_data_order” undefined

I'm trying to compile the 4.14.127 kernel for my XU4 obtained here (https://wiki.odroid.com/odroid-xu4/os_images/linux/ubuntu_4.14/ubuntu_4.14) as I need the USP/IP related modules and, unfortunately,...
0
votes
0answers
33 views

Strange wpa_supplicant logs about SIOCSIWAP and SIOCSIWENCODEEXT

I am interested in strange log entries and I would like to understand their nature. Why there are ioctl errors when using the r8188eu driver? Can I resolve these errors? Logs Jul 09 02:34:00 tower ...
3
votes
1answer
608 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 ...
0
votes
0answers
33 views

Failing to load kernel module

So, I have just started going through Designing BSD Rootkits and I seem to have ran into a problem right away. hello.c: #include <sys/param.h> #include <sys/module.h> #include <sys/...
1
vote
1answer
25 views

modinfo on running module without the corresponding .ko file

I can use modinfo on a .ko file. Is there any way to use modinfo on module that already running, that I can see with lsmod, but I don't have the .ko file for?
3
votes
2answers
136 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 ...
2
votes
1answer
2k views

Signed kernel modules - “not signed with trusted key”

Issue: I'm trying to use signed kernel modules, but getting a failure for the insmod command: PKCS#7 signature not signed with a trusted key There is a potentially related error message during ...
1
vote
1answer
1k views

Linux root on F2FS

I have my Linux root on an F2FS USB flash drive. The kernel is on another device accessible by the bootloader. I'm trying to start it with the parameters root=/dev/sda1 rootwait rootfstype=f2fs, but I ...
2
votes
0answers
32 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 ...
1
vote
2answers
1k views

Manually create grub entry for iso debian file : cannot copy cdrom

I'm trying to manually create my own custom usb drive, with a bunch of iso files on it, and a partition for data. I used the instruction I put here to create my key, but to sum-up, I have done a ...
2
votes
1answer
1k 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 ...
13
votes
3answers
32k views

How to generate Module.symvers?

I recently went through Unpacking kernel-source rpm off-system (OpenSuse)?; and as it took > 10 h on my machine, imagine my surprise that after doing the process described there, I find no Module....
0
votes
1answer
29 views

Kernel Modules loaded when boot

Would like to know if there is a specific list or location for the name of the kernel modules that are loaded when the system is booted. Commands like lsmod or cat /proc/kallsyms only show those that ...
1
vote
0answers
28 views

New loopback device module does not show trace in wireshark

I am trying to write a network device driver that can duplicate the functionality of the loopback device. I modified the code available at the link. I am testing on Linux 4.8. I removed code related ...
1
vote
1answer
1k 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
1answer
1k 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 (...
3
votes
2answers
602 views

Override modprobe.d blacklist

I am using Ubuntu 18.04. I'm trying to make a module load at boot; the module in question is iTCO_wdt. There are many questions about blacklisting a kernel module, but I am trying to whitelist one. ...
1
vote
1answer
1k views

How to find the kernel boot parameter for a given boot configuration option?

I have a Dell laptop running Debian Sid. Current kernel (4.15.4) is configured to load dell_smbios as module (CONFIG_DELL_SMBIOS=m). This produces the followning error while booting dell_smbios: No ...
2
votes
1answer
45 views

Not able to remove loadable module

I am trying to learn about Linux device drivers. I am trying to install the module using insmod from the command line. After insertion, I try to remove the loaded module, which fails with the error, ...
2
votes
1answer
123 views

How to remove VirtualBox vboxdrv kernel module?

I previously was using VirtualBox on Fedora 30, but recently moved to using Boxes (review) and am quite happy with the switch. I've removed VirtualBox, but upon booting up my system, I still get a ...
0
votes
0answers
83 views

“Required key not available” error when trying to load signed module

I made a module and compiled it with make modules_install. I ran these commands following this gist: openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -subj "...