DORSETRIGS
Home

linux-device-driver (28 post)


posts by category not found!

Why do my PCI-e I/O register reads appear to be cached?

Unmasking the Mystery Why Your PCI e I O Register Reads Seem Cached Have you ever encountered a situation where reading a PCI e I O register seems to return a c

3 min read 06-10-2024 48
Why do my PCI-e I/O register reads appear to be cached?
Why do my PCI-e I/O register reads appear to be cached?

Device tree override reg value

Overriding Device Tree Registry Values A Guide for Embedded Developers Device trees are essential for modern embedded systems providing a structured way to desc

2 min read 05-10-2024 40
Device tree override reg value
Device tree override reg value

DMA Read is working but DMA write is failing

Understanding DMA Why DMA Read Works but DMA Write Fails Direct Memory Access DMA is a powerful feature in modern computing that allows hardware devices to comm

3 min read 30-09-2024 51
DMA Read is working but DMA write is failing
DMA Read is working but DMA write is failing

Wait for interrupt for specific level

Understanding Interrupt Handling Waiting for a Specific Level Interrupt Interrupt handling is an essential aspect of embedded systems and low level programming

2 min read 30-09-2024 46
Wait for interrupt for specific level
Wait for interrupt for specific level

Clone ethernet frame from one interface to another

Cloning Ethernet Frames from One Interface to Another When working with network devices there are instances where you may want to clone an Ethernet frame from o

2 min read 29-09-2024 44
Clone ethernet frame from one interface to another
Clone ethernet frame from one interface to another

Can't assigne file to loop device within docker container

Troubleshooting Cant Assign File to Loop Device Within Docker Container When working with Docker containers you might encounter various issues that can complica

3 min read 29-09-2024 46
Can't assigne file to loop device within docker container
Can't assigne file to loop device within docker container

An alternative to sysfs (/sys/class/gpio) for controlling GPIO

An Alternative to sysfs sys class gpio for Controlling GPIO In the world of embedded systems and Linux based operating systems GPIO General Purpose Input Output

3 min read 28-09-2024 48
An alternative to sysfs (/sys/class/gpio) for controlling GPIO
An alternative to sysfs (/sys/class/gpio) for controlling GPIO

Is it possible to open a socket on a char device in Linux?

Opening a Socket on a Char Device in Linux Is It Possible In the world of Linux programming device files play a crucial role in interacting with hardware A comm

3 min read 26-09-2024 55
Is it possible to open a socket on a char device in Linux?
Is it possible to open a socket on a char device in Linux?

Opening of device memory in Green Hills System's Integrity RTOS

Opening Device Memory in Green Hills Systems Integrity RTOS When working with real time operating systems RTOS such as Green Hills Systems Integrity RTOS managi

3 min read 24-09-2024 49
Opening of device memory in Green Hills System's Integrity RTOS
Opening of device memory in Green Hills System's Integrity RTOS

DS1343 SPI chip select logic in Linux driver

Understanding DS 1343 SPI Chip Select Logic in Linux Driver The DS 1343 is a real time clock RTC that communicates via the Serial Peripheral Interface SPI When

3 min read 23-09-2024 61
DS1343 SPI chip select logic in Linux driver
DS1343 SPI chip select logic in Linux driver

Need help to setup rtc-ds1302 in device tree on RaspberryPi

Setting Up RTC DS 1302 in Device Tree on Raspberry Pi A Step by Step Guide If you re looking to integrate a Real Time Clock RTC module specifically the DS 1302

3 min read 21-09-2024 78
Need help to setup rtc-ds1302 in device tree on RaspberryPi
Need help to setup rtc-ds1302 in device tree on RaspberryPi

Is it allowed to allocate spin locks on the stack?

Is It Allowed to Allocate Spin Locks on the Stack When it comes to multithreading and concurrent programming one of the common synchronization primitives used i

2 min read 21-09-2024 65
Is it allowed to allocate spin locks on the stack?
Is it allowed to allocate spin locks on the stack?

Unknow symbol in linux kernel module

Understanding Unknown Symbols in Linux Kernel Modules When working with Linux kernel modules developers occasionally encounter the unknown symbol error This iss

2 min read 19-09-2024 46
Unknow symbol in linux kernel module
Unknow symbol in linux kernel module

UltraZed EV SOM: Interrupt Handler Not Triggering After Stop Command and Restart

Ultra Zed EV SOM Resolving Interrupt Handler Issues After Stop Command and Restart Introduction The Ultra Zed EV System On Module SOM is a powerful platform des

3 min read 18-09-2024 49
UltraZed EV SOM: Interrupt Handler Not Triggering After Stop Command and Restart
UltraZed EV SOM: Interrupt Handler Not Triggering After Stop Command and Restart

Connecting display on BeagleBone AI-64 miniDP is not working

Troubleshooting the Beagle Bone AI 64 Connecting Displays via Mini DP The Beagle Bone AI 64 is an advanced single board computer designed for machine learning a

3 min read 16-09-2024 51
Connecting display on BeagleBone AI-64 miniDP is not working
Connecting display on BeagleBone AI-64 miniDP is not working

How to modify Linux system call table in kernel version 6+?

How to Modify the Linux System Call Table in Kernel Version 6 In the world of Linux kernel development modifying the system call table can be a pivotal task for

3 min read 15-09-2024 49
How to modify Linux system call table in kernel version 6+?
How to modify Linux system call table in kernel version 6+?

ioctl return -1 with errno set to EPERM

Why ioctl Returns 1 with errno EPERM Even After Setting File Permissions to 777 Lets delve into the common issue of ioctl returning 1 with errno set to EPERM de

2 min read 07-09-2024 65
ioctl return -1 with errno set to EPERM
ioctl return -1 with errno set to EPERM

Interested in Device Programming. Where to Start

From C to Microcontrollers A Beginners Guide to Device Programming Starting with microcontroller programming can seem daunting especially if you re new to elect

2 min read 07-09-2024 66
Interested in Device Programming. Where to Start
Interested in Device Programming. Where to Start

API to detect usb device

Detecting USB Devices and Data Transfer on Linux Many users encounter the need to interact with USB devices on their Linux systems whether its for data transfer

2 min read 07-09-2024 72
API to detect usb device
API to detect usb device

Permission denied when trying to write to a block device

Permission Denied Error When Writing to a Network Block Device A Troubleshooting Guide Have you ever encountered a Permission denied error while trying to write

2 min read 06-09-2024 65
Permission denied when trying to write to a block device
Permission denied when trying to write to a block device

What is the possible use of dev_set_drvdata and dev_get_drvdata

Understanding dev set drvdata and dev get drvdata in Linux Device Drivers In the world of Linux kernel development device drivers play a crucial role in connect

3 min read 06-09-2024 49
What is the possible use of dev_set_drvdata and dev_get_drvdata
What is the possible use of dev_set_drvdata and dev_get_drvdata

What to prefer between `spin_lock_init` and `DEFINE_SPINLOCK` and when?

DEFINE SPINLOCK vs spin lock init Which is Right for You When working with spinlocks in the Linux kernel you might encounter two seemingly similar methods for i

2 min read 06-09-2024 46
What to prefer between `spin_lock_init` and `DEFINE_SPINLOCK` and when?
What to prefer between `spin_lock_init` and `DEFINE_SPINLOCK` and when?

How can I limit the number of blocks written in a Write_10 command?

Mastering USB Flash Drive Writes Limiting Block Transfers with Your LPC 18xx Microcontroller You ve built a slick USB flash drive based on an NXP LPC 18xx micro

2 min read 06-09-2024 60
How can I limit the number of blocks written in a Write_10 command?
How can I limit the number of blocks written in a Write_10 command?

unbinded USB device get automatically bind on linux

Understanding USB Device Binding and Unbinding on Linux When connecting a USB device to a Linux system the operating system needs to bind the device to a driver

2 min read 05-09-2024 78
unbinded USB device get automatically bind on linux
unbinded USB device get automatically bind on linux

Get PFN from DMA address (dma_addr_t)?

Extracting the PFN from a DMA Address A Deep Dive Understanding the relationship between physical memory and DMA addresses is crucial when working with devices

2 min read 05-09-2024 48
Get PFN from DMA address (dma_addr_t)?
Get PFN from DMA address (dma_addr_t)?