kernel-modules

How can I break at module_init()? This loadable kernel module is preventing SSH logins

How can I break at module_init()? This loadable kernel module is preventing SSH logins I am porting the driver for a USB device to Rocky Linux 9.3. Once the module is inserted, new logins by ssh are unresponsive. Blacklisting the module and rebooting restores normal functionality. https://github.com/izot/lon-driver With the module inserted, lsmod|grep u50 "Used By" …

Total answers: 1

Where do built-in kernel modules reside?

Where do built-in kernel modules reside? I am confused by how built-in kernel modules work. As per my understanding, one can embed a kernel module when compiling the Linux kernel by setting kconfig option to MODULE_NAME=y. Then, it doesn’t have to be loaded with e.g. modprobe. Built-in kernel modules can be shown with cat /lib/modules/$(uname …

Total answers: 1

Why does nvidiafb module hang the entire system?

Why does nvidiafb module hang the entire system? I have an older P5K asus mobo with: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218 [GeForce 8400 GS Rev. 3] [10de:10c3] (rev a2) Subsystem: eVga.com. Corp. Device [3842:1302] that hangs (the entire system) if nvidiafb module (from kernel 6.6.5) is loaded. I found https://forums.gentoo.org/viewtopic-t-1044092-start-0.html but that …

Total answers: 1

Rescan for matching kernel modules

Rescan for matching kernel modules So normaly during boot or when a device is hotplugged Linux loads kernel modules for hardware based on modaliases. Is there a way to manually trigger this for a specific device or a general "rescan" for the whole system? e.g. I have a pci device which had no matching driver …

Total answers: 1

modprobe fuse doesn't seem to load module

modprobe fuse doesn't seem to load module I’m trying to load the fuse kernel module but for some reason it seems like it’s not getting loaded. But I also don’t get any error message. Can someone explain to me what’s going on? root@my-host:~# modprobe fuse root@my-host:~# echo $? 0 root@my-host:~# lsmod | grep fuse root@my-host:~# …

Total answers: 1

“binutils”/Kernel 6.5.X – “Invalid –compress-debug-sections option: `zstd’”

“binutils”/Kernel 6.5.X – “Invalid –compress-debug-sections option: `zstd’” I’m trying to build a driver for a USB to HDMI adapter… Bus 001 Device 010: ID 534d:6021 MacroSilicon VGA Display Adapter NOTE: "lsusb" output. … but this error is occurring… Fatal error: Invalid –compress-debug-sections option: `zstd’ …as can be seen in the full output below… [eduardolac@eduardolac-pc ms912x]$ …

Total answers: 1

What's the reason to add a symlink to /dev directory with udev rules?

What's the reason to add a symlink to /dev directory with udev rules? I understand that you can write custom udev rules to create a symlink in /dev directory. But what is the use of having a symlink in /dev? What is the symlink linking to? I know you can interact with regular links in …

Total answers: 1

modprobe: ERROR: could not insert 'efivarfs': No such device

modprobe: ERROR: could not insert 'efivarfs': No such device when I run efibootmgr command: efibootmgr –create –disk /dev/sdb –part 1 –loader /EFI/syslinux/syslinux.efi –label "Syslinux" –unicode I get this error: EFI variables are not supported on this system. when I try to load the module efivarfs, I get following error: modprobe efivarfs modprobe: ERROR: could not …

Total answers: 1

Insmod causes key rejected by service

Insmod causes key rejected by service I am running AlmaLinux 9 (RedHat 9 clone) and have compiled a new kernel module. I am running in a VM with UEFI and secure boot enabled. When I insert the module I get the following error: insmod: ERROR: could not insert module npreal2.mod: Key was rejected by service …

Total answers: 1

Load kernel modulebusing qemu

Load kernel modulebusing qemu I have a kernel module (ko) file that is designed for the aarch64 architecture. I’m currently attempting to use qemu on a non-aarch64 system to utilize this aarch64 kernel module for mounting a specific file system within the non-aarch64 system. I’m curious if it’s possible to load and use this module …

Total answers: 1

How can I remotely debug linux module using GDB?

How can I remotely debug linux module using GDB? I searched all over the internet but couldn’t find proper steps to debug linux module remotely using gdb. I am tring qemu but facing many issues there. Is there any other tool that I can use or if not then can you provide me proper steps …

Total answers: 1

Intel wifi card not using iwlwifi module

Intel wifi card not using iwlwifi module I just installed debian bullseye on a lenovo Thinkpad X1 Carbon Gen 10. The installation process was pretty straightforward. Except for one part: networking. During the installation, it said the wifi card was not recognized. Apparently this is a known case. I am just supposed to install the …

Total answers: 1

How to use gettimeofday in the kernel module?

How to use gettimeofday in the kernel module? I’m trying to use the following code in the kernel module struct timeval now; gettimeofday(&now, NULL); But getting following error while compiling kernel drivers/media/i2c/ox05b.c:776:17: error: storage size of ‘now’ isn’t known 776 | struct timeval now; | ^~~ Asked By: Omkar Dixit || Source The first rule …

Total answers: 1

Reading PHY MII registers beyond 0x1F

Reading PHY MII registers beyond 0x1F I am having some issues with a DP83826 PHY and therefore I want to read some configuration registers. I have used mdio-tool and mii-diag for it, but I just realized that I can only read the first 32 registers. mii-diag -v (verbose) displays the first 32 registers (which might …

Total answers: 1

modules are missing /sys/module/*/parameters directories, how to enable them?

modules are missing /sys/module/*/parameters directories, how to enable them? Many of my modules are missing /sys/module/*/parameters directory and I can’t check the module loaded parameters. # printf "%sn" /sys/module/*/parameters | wc -l 125 # lsmod | wc -l 151 # comm -13 <(printf "%sn" /sys/module/*/parameters | xargs dirname | xargs basename -a | sort) <(lsmod …

Total answers: 1