Unable to parse HTTP packet using netfilter hooks in kernel module
I am trying to parse HTTP packets using netfilter hooks in my kernel module. I came across this code snippet on How to print data from TCP packets which I modified to make it build. However, I am...
View ArticlePCI passthrough: vfio-pci ignores ids of devices
I have 3 GPUs in my dual XEON server.I followed instructions on Arch wiki and set up vfio-pci with ids=10de:100c,10de:0e1a:$ modprobe -c | grep vfiooptions vfio_iommu_type1...
View Articlesysctl: setting key "net.ipv4.ip_forward": Invalid argument
This is a vanilla install. I just did a yum update to Centos 7.3 and install KvM and rebooted. When following a guide and setting up IP Forwarding like I always have done I get the following:sysctl:...
View Articleusbip on centos 7 x32
I'm trying to enable kernel module to support usbip functionality, but unlike the 64 bit version x32 hasn't relevant section in elrepo repository to download and install necessary packages. Are there...
View ArticleBuildroot kernel module reports invalid module format
I am working on building a test kernel module in Buildroot for a Raspberry Pi target. My host machine is x86, running Ubuntu 22.04.1. I have been following along with several tutorials, including this...
View Articlerun max3421 on device with 3.18 Linux kernel
I need to run USB over SPI on the board which supports only 3.18 kernel. We use MAX3421 because driver for it is in kernel source.I add to device-tree :&spi_1 { status = "ok"; usb@0 { compatible =...
View ArticleAutomatic 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 error...
View ArticleIs PFIFO an engine in nouveau kernel?
I recently received the following error in my syslog:syslog:Apr 28 09:59:02 vostrodell kernel: [ 883.401212] nouveau 0000:01:00.0: fb: trapped read at 0039824400 on channel 12 [3ed04000...
View ArticleFailed to unload kernel module: Resource temporarily unavailable
I am working on an embedded Linux (kernel-5.10.24).I hit an error when I tried to unload RTC driver module, it was:# lsmodrtc_test 6490 1 - Live 0xc02f5000# modprobe -r rtc_testmodprobe: remove...
View ArticleHow to make Realtek nic use r8168 driver
I've been trying (unsuccessfully) for the last few days to make my Realtek ethernet card to work. I have no problems with my wireless connection: only the ethernet connection doesn't work.I have Ubuntu...
View Articlemodule: x86/modules: Skipping invalid relocation target
I tried to compile a module on Debian 10 (v4l2loopback) like this:sudo apt-get install linux-headers-$(uname -r)git clone https://github.com/umlaeute/v4l2loopback.gitcd v4l2loopback/make -j4sudo make...
View ArticleInstalling matching kernel-headers
I am trying to install kernal-headers for the kernel 6.0.7-301.fc37.x86_64 on fedora, but dnf only gives me these options: Name : kernel-headers Version : 6.3.3 Release : 100.fc37 Architecture : x86_64...
View ArticleWhere 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 and...
View ArticleO_DIRECT access to mmap-ed dmam_alloc_coherent() problems
I'm looking for ideas to get over this hurdle. I have a linux kernel module that takes in high rate data from the PL side of a Xilinx Zynq MPSOC device. The kernel module is based off dma-proxy example...
View ArticleWiFi 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...
View ArticleIs USB-to-USB data transfer between two Linux OSes possible?
I want to create a USB-to-USB data transfer system in Linux (preferably Ubuntu). For this I want to use no external hardware or switch (except this cable). It's going to be like mounting a USB drive to...
View ArticleWSL 2 does not have /lib/modules/
I have the source code of a hello world kernel module that works in Ubuntu 20 in a laptop.Now I am trying to compile the same code in Ubuntu 20 but inside WSL2. For that I am using this:make -C...
View ArticleDebian based arm SBC can not use bluetooth
I have arm64 SBC with Debian 11 installed on it. As a communication I need to use bluetooth, for which sparkfun WPEQ-261ACNI(BT) was provided. it uses qualcomm chip on it and Debian 11 detect the wifi...
View ArticleBuilding example device driver error: insmod invalid module format
I am following the tutorial @ http://www.embeddedsystemonline.com/home/embedded-system/embedded_linux/lab3-linux-device-driveron step #7 of this tutorial, $ cd...
View ArticleHow can I fix mt76x2u boot errors?
ProblemSoon after booting my Linux distribution (Arch) I'm getting some errors related to mt76x2u module:$ journalctl --boot --priority err-- Journal begins at Thu 2021-04-01 16:24:56 CEST, ends at Tue...
View Article