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

C Compilation Makefile

C Compilation Makefile

Public awareness of information security, enlightenment of information security knowledge. Add WeChat group reply to public account: WeChat group; QQ group: 16004488 Joining the WeChat group or QQ group can get: Learning Tutorial When compiling a large project, there are often many target files, library files, header files, and the final executable file. There are … 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

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 Platform Bus Driver Device Model

Linux Platform Bus Driver Device Model

Embedded Linux QQ Group: 175159209, enthusiasts are welcome to join and discuss technical issues! The platform bus is a virtual bus, and the corresponding device is a platform_device, while the driver is a platform_driver. In the device driver model of Linux 2.6, I2C, RTC, LCD, etc. are classified as platform_device. The bus binds devices and … Read more

Linux Character Device Driver Example

Linux Character Device Driver Example

globalmem Looking at Linux device driver development details, the chapter on character device drivers provides test code and application programs that are very helpful for beginners. The reason for writing this article is that I noticed I had not yet written about character devices, despite having previously published articles. As for the role of the … Read more

Rust: The Future of Systems Programming, C as New Assembly

Rust: The Future of Systems Programming, C as New Assembly

Author: Bhagyashree R Translator: Ping Chuan Editor: Wang Wenjing At the 2019 Open Source Technology Summit (OSTS), Intel’s Chief Engineer Josh Triplett detailed the work Intel is doing to make Rust, a language loved by many, fully comparable to C. In his talk “Intel and Rust: The Future of Systems Programming,” he also discussed the … Read more

Speed Comparison Between Rust and C

Speed Comparison Between Rust and C

Author | Kornel Translator | Sambodhi Editor | Zhao Yuying This article was originally published on the author’s personal blog and is shared here with the authorization of the original author Kornel, translated by InfoQ Chinese site. Programs written in Rust should have run-time speed and memory usage comparable to those written in C. However, … Read more

Is It Possible to Rewrite the Linux Kernel in Rust?

Is It Possible to Rewrite the Linux Kernel in Rust?

It is well known that Linux is the representative of the C language. However, times have changed, and Rust is on the rise, gaining more and more support, gradually taking on the role of the system language for Linux. At the 2020 Linux Plumbers Conference, developers seriously considered the idea of using Rust for inline … Read more

Don’t Rush to Rewrite in Rust: It May Not Be That Safe

Don't Rush to Rewrite in Rust: It May Not Be That Safe

Author | Anonymous Authors Translator | Nuclear Cola Editor | Chu Xingjuan If you haven’t tried Rust yet, I recommend you hurry up and give it a shot! Haven’t used Rust’s cat, grep, and find? I’m not joking, “once you try it, you will fall in love” is what Rust is all about. Too busy … Read more