Driver Development Under Linux Device Tree

Driver Development Under Linux Device Tree

Overview This article introduces the development process and methods of device drivers under the platform framework, mainly including the development of device trees, drivers, and applications. Taking the random number driver as an example, it implements the process of the application calling the library function, entering the kernel through a system call, and finally executing … Read more

C++ Device Driver Development: Loading and Unloading

C++ Device Driver Development: Loading and Unloading

1.The Importance of Driver Loading Loading drivers is the cornerstone of normal device operation. Take a graphics card as an example: when we install a new graphics card on a computer, if we do not load the corresponding driver, the operating system will not be able to recognize the various functions of the graphics card. … Read more

C++ Device Driver Development: Touchscreen Driver

C++ Device Driver Development: Touchscreen Driver

1. Basics of Driver Development In the world of computers, drivers act as “unsung heroes,” silently building a communication bridge between hardware and the operating system. They encapsulate the specifics of hardware devices to provide a unified and user-friendly interface for the operating system, ensuring the computer system operates stably and efficiently. Whether it is … Read more

Linux Device Model: Architecture Of Driver World

Linux Device Model: Architecture Of Driver World

Hello, I am Lao Wu. Does every ambitious person feel that they can work a little harder? In the end, if the goal is not achieved, the reason for failure can always be attributed to “not trying a little harder”. However, the biggest misconception about effort is: the longer the time and the more painful … Read more

Free Trial of BSP Development Course: Hands-On Learning

Free Trial of BSP Development Course: Hands-On Learning

The course is divided into two parts: Phase One and Phase Two. Phase One focuses on the basic operations of the development board (suitable for students with relatively weak foundations). Based on the SDK source code provided by the manufacturer, it offers hands-on basic usage explanations using the 100ask T113 development board. Emphasis is placed … Read more

Comparison of Device Driver Models in Linux and Windows

Comparison of Device Driver Models in Linux and Windows

This article navigation –1. Device Driver Architecture08% –1.1. Windows Driver Architecture09% –1.2. Linux Driver Architecture16% –2. Device Driver API22% –Driver I/O Models on Windows46% –Driver I/O Models on Linux51% –Registering Devices on Windows27% –Registering Devices on Linux33% –2.1. Initialization23% –2.2. Naming and Declaring Devices27% –2.3. Data Exchange42% –3. Device Driver Development Environment56% –Windows Driver Kit56% … Read more

How to Write a Block Device Driver

How to Write a Block Device Driver

First, refer to the kernel code in z2ram.c Simulate a block device driver using memory The specific process of a block device driver: 1. Register the block device with the kernel int register_blkdev(unsigned int major, const char *name) Parameter 1: major write 0 to automatically get the major device number Parameter 2: The registered name … Read more

Embedded Linux Driver Development: LED Control

Embedded Linux Driver Development: LED Control

Abstract: Yesterday, I introduced the method of lighting up an LED using bare metal programming. Today, we will light up an LED using driver development to see the differences between the two methods. 1. Let’s Look at the Schematic First, let’s check the schematic to see which IO port the LED on our board is … Read more

Embedded Linux Driver Development: LED Control

Embedded Linux Driver Development: LED Control

Abstract: Previously, we introduced the method of lighting up an LED using bare metal. Today, we will light up an LED using driver development and compare the two methods. 1. First, Let’s Look at the Schematic First, check the schematic to see which IO port the LED on our board is connected to. From the … Read more

Embedded Linux Driver Development: LED Control Method

Embedded Linux Driver Development: LED Control Method

☞【Practical Tips】A Comprehensive Linux IoT Project for Your Resume Today, we will light up an LED using driver development. Let’s see what the differences are! 1. First, Let’s Look at the Schematic First, check the schematic to see which IO port the LED on our board is connected to. Alright, from the schematic we know … Read more