New answers tagged

1 vote
Accepted

Should 'dpkg -i iptables' be installing the required kernel modules?

dpkg installs whatever is provided in the packages it’s given, and runs the maintainer scripts included in the packages. In iptables’ case, the iptables command itself takes care of loading the ...
Stephen Kitt's user avatar
1 vote
Accepted

How to simulate a PC speaker?

I had the same sort of problem with a cheap amd mini pc. I am getting old and my eyesight is poor so I like the beep when editing or using a terminal. When I snooze onto the keyboard the beeping can ...
replabrobin's user avatar
2 votes
Accepted

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

I didn't port this line properly and it failed to set the .num field in struct tty_ldisc_ops. //FIXME err = tty_register_ldisc(N_U50, &u50_ldisc); err = tty_register_ldisc(&...
William Dickerson's user avatar
0 votes

Unrecognized command-line option ‘-ftrivial-auto-var-init=zero’ when building kernel module

Same problem. My system is Ubuntu 23.10 and the default gcc/g++ version is 13. During CUDA 11.8 installation, I switched to gcc/g++ version 11. I used update-alternatives to install the version ...
Chenye Zhou's user avatar
1 vote

insmod fails - module does not match running kernel but module has been compiled against correct kernel

After nuking the kernel when I tried to depmod things despite the warnings, I rebuilt. After a rebuild I did the following: Confirm there are no updates available. If there are, reboot the box after ...
Grant Curell's user avatar
0 votes

insmod fails - module does not match running kernel but module has been compiled against correct kernel

Solution After seeing the extra DEPENDS above per my comment, I looked it up at The Linux Kernel Driver Database: CONFIG_NVME_COMMON. According to that link, that option is only available starting in ...
eyoung100's user avatar
  • 6,154
0 votes

Kernel hangs after loading custom module

Alright, looks like I found the answer myself. The issue was that the hook method can only have one of state->in or state->out set at the time of invocation (obviously). Here is the corrected ...
seed's user avatar
  • 1
1 vote
Accepted

Should am I need a pysical Smart Card and its reader device to sign linux kernel module?

In the scripts sub-directory of the Linux kernel source package, there is a sign-file tool (used to be a script, now a binary tool, built along with the kernel). Example: linux-6.6.13/scripts/sign-...
telcoM's user avatar
  • 94.6k

Top 50 recent answers are included