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
1
vote
0answers
9 views

Set i'th value of kernel module array with command line arguments

Given a kernel module arraymod.c with the following array declaration: static int myintArray[2] = { -1, -1 }; static int arr_argc = 0; module_param_array(myintArray, int, &arr_argc, 0000); ...
2
votes
1answer
32 views

Realtek Firmware Installation Error

Im working on an odroid HC2, which runs Debian 9 "Stretch". In my logs, I can see that there is a driver missing for Wifi: usb 1-1: request_firmware(rtlwifi/rtl8192eu_nic.bin) failed So i ...
2
votes
1answer
63 views

How to find official documentation about Linux kernel namespaces?

I've been using Docker for a while and I'm interested in learning its internals. I've read about kernel namespaces it uses. But I don't understand how they are used. So my problem is: I haven't found ...
1
vote
1answer
26 views

How to autoprobe block devices in initramfs?

I am building a custom Alpine image based on isolinux. Basically, I am squashing rootfs, and mounting it as overlayfs. Bootloader does its job fine, kernel loads, but I am stuck at initramfs. Let ...
0
votes
0answers
34 views

How Linux links driver with device file?

I have a question about device file and drivers, based on ULK hence 2.6.11 kernel. My understanding is the following: When user does syscall open() on some device file, at some point kernel will ask ...
0
votes
0answers
52 views

Buttonless Elantech Touchpad Issues

Recently, my touchpad has broken a few different ways: No "area" functionality for Mouse Click Emulation No click-and-drag with one finger click and another finger drag libinput has incorrect ...
0
votes
0answers
21 views

What would happen if we didn't map the kernel's memory in the virtual memory of every process, and force a context switch instead? [duplicate]

So can someone explain to me that what will happen if they did this and how much overhead will this cause, to have a seperate process for the kernel part of the virtual memory, and make a context ...
0
votes
0answers
15 views

x_tables: exports duplicate symbol xt_alloc_entry_offsets (owned by kernel)

I have enabled Xtables in my kernel but I get this error whenever I try to modprobe $ sudo modprobe ip_tables modprobe: ERROR: could not insert 'ip_tables': Exec format error dmesg tells me ...
0
votes
1answer
38 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
25 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
20 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 ...
0
votes
0answers
43 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 ...
1
vote
0answers
19 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
0answers
33 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 ...
0
votes
1answer
77 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 ...
3
votes
0answers
99 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 ...
1
vote
1answer
32 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.
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
720 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
31 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. ...
0
votes
0answers
22 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 ...
1
vote
1answer
57 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 ...
0
votes
0answers
15 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
59 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 ...
1
vote
2answers
44 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?
0
votes
0answers
42 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
30 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?
1
vote
0answers
34 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 ...
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
29 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 ...
2
votes
1answer
185 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
189 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 "...
0
votes
0answers
106 views

Automatic module signing for distribution in Linux

I'm new to writing Linux modules (drivers) and digital signatures, so please correct me if any of my understanding is incorrect. When I run make modules_install on my module, I get the following ...
2
votes
1answer
54 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, ...
1
vote
1answer
65 views

Failed to find module nf_nat_proto_gre

When starting Xubuntu 19.04 get this in boot.log: [[0;1;31mFAILED[0m] Failed to start [0;1;39mLoad Kernel Modules[0m. See 'systemctl status systemd-modules-load.service' for details. I run ...
0
votes
1answer
32 views

Synology NAS insmod unknown symbol

I'm trying to follow this guide to setup NAT on my Synology NAS. It worked great for me! I had everything working perfectly. But when I came back the next morning, the NAS had done a system update [...
0
votes
0answers
22 views

Compiling module crc32_intel_glue fails

I have two CentOS hosts and want to install the kernel module crc32_intel_glue.  I don't find it in the official repo, so I tried to build it from source, and failed. I downloaded crc32c-intel_glue.c ...
2
votes
2answers
53 views

Automatic rmmod / modprobe based on dmesg parsing

I am using a MacBooPro10,1 Debian stable (default install with rsyslogd) system for which the trackpad eventually fails (pointer stop working) from time to time as can be seen : $ dmesg [...] [...
5
votes
1answer
112 views

Get all ioctl code and which module they map

By doc. , ioctl signature is int ioctl(int fd, int request, ...) . request is the code of ioctl. Is there any way to know what are all the possible ioctl request code that available in my linux? And ...
0
votes
0answers
41 views

Unload running kernel module

With lsmod I can watch all kernel modules that running in my linux. How can I suspend and resume spesific kernel module? I tried use modprobe -r <module_name> but got error can't change ...
1
vote
1answer
129 views

Deleted /lib/modules/<kernel version> by mistake. How to recover?

I accidentally deleted my /lib/modules/<kernel version directory>. Here's the full output of sudo rm -rfv /lib/modules/4.14.98+ : pastebin Is there a way to restore the modules keeping the ...
2
votes
2answers
69 views

Feed /dev/random by Octeon RNG

The device is Octeon by Cavium which contains a RNG hardware unit. OS shows that the current entropy pool size is 4096 bytes but entropy_avail is very low. The device crypto modules has ansi_cprng.ko ...
1
vote
0answers
70 views

Why is my gpio access from user space slower?

I did some research on how good I am able to access a gpio while other heavy tasks are executed. With a first test I toggeled a gpio pin from user space using the libgpiod API. With a second test I ...
2
votes
2answers
326 views

How to read DDR4 SPD with ee1004 driver?

I'm trying to read DDR4 RAM SPD data with the new ee1004 driver. I thought that after modprobe ee1004 I would be able to read data from /sys/bus/i2c/drivers/ee1004, however thats not the case (no ...
0
votes
0answers
30 views

Linux kernel module address randomization

I'm booting the same 16.04 Ubuntu server image (4.4.* kernel) and checking where modules are loaded with cat /sys/modules/[module_name]/sections/.text. After every boot I get different text segment ...
0
votes
1answer
155 views

Why is kernel module blacklisting so weak?

There have been several times in the past year or two where I have tried to blacklist Linux kernel modules (either through blacklist.conf or kernel command line parameters), and yet it hasn't worked - ...
0
votes
0answers
55 views

Can I copy over .ko files to another Linux?

I am working on a wifi chipset from Atmel (ATWILC3000) and following its user guide here. I built the kernel and flashed on their development board SAMAD4XULT (has an ARM). Since the kernel modules ...
1
vote
1answer
94 views

Run script after module is loaded due to device tree

Why do I want this? I use the pwm-ir-tx kernel module to blast IR signals from my embedded device. However, when the pwm kernel module is loaded during the boot process, the pin is on high. It takes ...
0
votes
0answers
63 views

Configuring virtio vsock for android (aosp)

I want to use virtio vsock for communication between host machine and vm. My host is running ubuntu. I understand by default virtio vsock module is enabled for ubuntu so I don't need to do any ...