Skip to main content
Filter by
Sorted by
Tagged with
-4 votes
0 answers
79 views

Introduction: I'm using a custom board based on an i.MX6q SoC that communicates with an FPGA on the EIM bus: this communication is managed via custom driver module. The DTACK signal and memory WDOG ...
ronin80's user avatar
2 votes
0 answers
51 views

I am customizing the Linux nvme driver ioctl(NVME_IOCTL_SUBMIT_IO) to take QID from user and submit the IO command to that particular QID. I am using ubuntu 22(Kernel 6.5). I modified ...
Sharma PV's user avatar
-2 votes
1 answer
201 views

I am trying to build a driver for my IP in an FPGA. I have: static const struct of_device_id myip_of_match[] = { { .compatible = "xlnx,myip-controller-1.022", }, {}, }; ...
bLAZ's user avatar
  • 1,767
1 vote
0 answers
141 views

I'm working with a custom board that integrates the NXP PCF85263 RTC. This RTC supports timestamp functionalities (e.g., tamper detection and battery switch-over events), but unfortunately, the RTC ...
Simone Bernabè's user avatar
0 votes
0 answers
177 views

My DT describes GPIO as following: my-gpio = <&gpio4 20 0>; In Linux kernel v5.10 I use gpionum = of_get_named_gpio(np, "my-gpio", 0); of_get_named_gpio_flags(np, "my-gpio&...
Chris Liu's user avatar
2 votes
0 answers
93 views

When I call msix_notify, I get this error "Invalid write at 0xFEE01004 region ‘null’" in the log. I am using msix_initx_exclusive.bar initialization, and in qemu monitor, I can also see ...
lipracer's user avatar
0 votes
0 answers
125 views

I have an application running on an NVIDIA Jetson Xavier NX (so, arm64) with a need to interface with a GPIO located on an i2c-connected expander (an MCP23008). I'm also using libgpiod v2.1, for what ...
riz94107's user avatar
0 votes
0 answers
40 views

Assuming I run TX completions (i.e. release transmitted skbs) for a given TX queue in a NAPI context, what would be a correct way to ensure there's absolutely no data race between the ndo_start_xmit ...
pa5h1nh0's user avatar
  • 292
0 votes
1 answer
90 views

I am learning kobjects and kobject_uevent_env() functions. Not sure why my code doesn't print "CUSTOM_VAR"s in udevadm monitor. KOBJ_ADD, KOBJ_REMOVE appear to be doing nothing in this code. ...
user2480219's user avatar
0 votes
0 answers
75 views

I have what looks like a deadlock (to me) in my linux block device module. The block device is created and exists and is backed by a file. When I go to mount the file system via: mount -o ro /dev/...
user3161924's user avatar
  • 2,551
0 votes
1 answer
89 views

I have a PC as a root complex and Xilinx fpga device as an end point that writes via PCI Express to root complex RAM using DMA and a linux driver to it. I have a problem that I can't solve in any way. ...
Alex_F's user avatar
  • 1
2 votes
1 answer
233 views

I'm working on a Linux kernel driver that allocates memory with dma_alloc_coherent() and maps it to userspace using mmap. This works perfectly on kernel 4.18 (tested on 4.18.0-553.47.1.el8_10.x86_64), ...
Michele's user avatar
  • 153
0 votes
2 answers
90 views

I am a noob in learning Linux, and I am learning platform device and driver functionality, and I am testing a simple Linux device code here. #include "platform.h" struct platform_device *...
user avatar
1 vote
0 answers
96 views

I'm going through some linux kernel documentation on per cpu variables. I understand that having separate variable for each CPU help prevent cache line invalidation and make things faster. But in ...
tekkk's user avatar
  • 344
0 votes
0 answers
114 views

I'm trying to learn USB linux device drivers to implement a project idea I have: Primary device is a Rasp Pi with USB port Secondary device is a custom USB stick that I'm going to design with some ...
androidFan's user avatar
1 vote
0 answers
46 views

I am working on a kernel virtualization driver for x86 CPUs. The driver uses Intel VT-x for virtualization of some guest code. I stumbled upon a piece of driver code that saves and restores VMM's ...
Grigory Rechistov's user avatar
0 votes
1 answer
116 views

I would like to retrieve caller process' PID (Userspace) in Linux Driver. At first, I could find pid attribute so easy from the struct task_struct in Linux Source Code (include/linux/sched.h) I used ...
Jisung Kim's user avatar
0 votes
0 answers
115 views

I have been doing work embedded Linux work for the past few years without any real formal training on it. I'd like to better understand how device drivers handle nested devices/buses. For example, a ...
CodeSmith's user avatar
  • 123
0 votes
0 answers
32 views

I am trying to build a kernel module through yocto. I have this simple Makefile that builds the module from a single source file and then everything is fine: obj-m := my_nand_controller.o KERNEL_SRC :...
bLAZ's user avatar
  • 1,767
0 votes
1 answer
68 views

I am learning kernel programming (I am a beginner). There are two kernel modules hello.ko and hello2.ko, I am following these steps and the I get these outputs: inserting module hello.ko -> not ...
abhishek KUMAR's user avatar
1 vote
1 answer
392 views

I am trying to follow the linux i2c slave documentation https://docs.kernel.org/i2c/slave-interface.html when I attempt to compile the kernel module using make I get this error: ERROR: modpost: "...
aapples's user avatar
  • 11
0 votes
0 answers
79 views

Is there any way to schedule NAPI on a specific CPU, e.g. similar to what schedule_work_on() workqueue context API does but in a NAPI context? Asking this because I'm writing a Linux network driver ...
pa5h1nh0's user avatar
  • 292
0 votes
0 answers
61 views

I am using pocket beagle with debian 10.3th vserion. I just want to know is there is any dtbo file there to start rs485 in pocket beagle? Like; BBB have “BB-UART4-RS485-00A0.dtbo”, dtbo for pocket ...
prial kanaiya's user avatar
1 vote
1 answer
142 views

I'm trying to implement a virtual UART using socat command for send and receive a string that is encrypted using XOR cipher on sending and decrypted while receiving using C program. #include <stdio....
cyberdude's user avatar
0 votes
1 answer
209 views

I have a custom device that can be connected to various SoCs using two SPIs and a couple of GPIO wires (one of them functioning as an interrupt request wire). It would be acceptable to expect both ...
apriori's user avatar
  • 1,282

1
2 3 4 5
103