Open Source Linux Process Memory Kernel Management Module Source Code

Open Source Linux Process Memory Kernel Management Module Source Code

This article is an excellent piece from the Kanxue Forum. Author from Kanxue ForumID: abcz316 Linux is an open-source kernel system. I am also very fond of embedded Linux systems, especially its kernel source code, which is written in a style that I really appreciate. This driver was previously written during my spare time for … Read more

An Overview of Linux Interrupt Handling

An Overview of Linux Interrupt Handling

Stage One: Obtaining the Interrupt Number Each CPU has the ability to respond to interrupts. When a CPU responds to an interrupt, it follows the same process. This process is the interrupt service routine provided by the kernel. Upon entering the interrupt service routine, the CPU has automatically disabled interrupt responses on that CPU, as … Read more

How to Write Embedded Linux Device Drivers

How to Write Embedded Linux Device Drivers

Word Count:4500 Content Index:⭐⭐⭐⭐⭐ Concept of Linux Device Driver System calls are the interface between the operating system kernel and application programs, while device drivers serve as the interface between the operating system kernel and machine hardware. Device drivers abstract hardware details from application programs, allowing them to interact with hardware devices as if they … Read more

An Overview of Makefile, Kconfig, and .config in Linux Kernel Source

An Overview of Makefile, Kconfig, and .config in Linux Kernel Source

The Linux kernel source code contains numerous files, and understanding the relationships between Makefile, Kconfig, and .config is crucial for navigating the kernel compilation system. Issues arise when trying to compile and modify the kernel, integrate your own drivers, or configure the kernel. All of these problems relate to Makefile, Kconfig, and .config. Below, I … Read more

Overview of Linux Kernel Configuration, Compilation, and Makefile

Overview of Linux Kernel Configuration, Compilation, and Makefile

Recently, I have been learning about the configuration, compilation, and Makefile for the Linux kernel. Today, I would like to summarize my learning results and share them with everyone. 1. Unpacking and Patching First, you need to unpack the Linux kernel you obtained. Here I am using version linux.2.22.6. In the Linux command line, you … Read more

Understanding Makefile, Kconfig, and .config in Linux Kernel

Understanding Makefile, Kconfig, and .config in Linux Kernel

When compiling the Linux kernel, we often execute some commands in the top-level directory of the Linux kernel. Taking RK3288 as an example, commands include: make firefly-rk3288-linux_defconfig, make menuconfig, make firefly-rk3288.img, make zImage, etc. Without delving into the specific meanings yet, I would like to raise a few questions. (1) The Linux kernel is so … Read more

Understanding the Relationship Between Makefile, Kconfig, and .config in Linux Kernel

Understanding the Relationship Between Makefile, Kconfig, and .config in Linux Kernel

Source: Baiwen Technology ❞The Linux kernel source code files are numerous, and it’s hard to understand the relationship between Makefile, Kconfig, and .config. Without understanding the kernel compilation system, it can be difficult to compile and modify the kernel, integrate your own drivers, or configure the kernel. These issues are all related to Makefile, Kconfig, … Read more

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

The ‘Bridge’ Between Linux Devices and Drivers | Bus

The 'Bridge' Between Linux Devices and Drivers | Bus

1. Introduction In the Linux device driver model, a bus is an abstract concept, a special type of device. In the implementation of the device model, the kernel specifies that each device in the system must be connected to a bus, which can be an internal Bus, a virtual Bus, or a Platform bus. The … Read more

Linux Workshop Adventure: Exploring Buses, Devices, and Drivers

Linux Workshop Adventure: Exploring Buses, Devices, and Drivers

Click the blue text above to follow me and read beautiful articles. The Linux operating system’s kernel manages various hardware devices in the system, including buses, devices, and drivers. This article will introduce the basic concepts of buses, devices, and drivers in the Linux system, as well as their relationships. By combining relevant /sys directory … Read more