Linux Kernel Synchronization Mechanisms: Unlocking the Secrets of Concurrent Programming

Linux Kernel Synchronization Mechanisms: Unlocking the Secrets of Concurrent Programming

In today’s digital age, multi-core processors have become standard in computer systems, from our everyday office computers to the massive server clusters in data centers. This hardware advancement allows computer systems to handle multiple tasks simultaneously, greatly enhancing computational efficiency. Just like a busy traffic hub with multiple lanes, vehicles move back and forth, seemingly … Read more

Changing Network Interface Names to eth0 and eth1 in Linux Systems

Changing Network Interface Names to eth0 and eth1 in Linux Systems

Warm Reminder Reading on WeChat public account may result in poor code formatting, incorrect formatting after copying code, outdated content, and advertisement issues. It is strongly recommended to click the Read the Original link at the bottom left of the article for viewing. Tips Changing Network Interface Names to eth0 and eth1 in Linux Systems … Read more

Learning Linux with an AI Teaching Assistant

Learning Linux with an AI Teaching Assistant

In the past couple of years, I often tell my students that when they encounter difficult problems, they should first consult the silicon-based AI assistant, and if that doesn’t solve the issue, then come to me, the carbon-based teacher. Recently, I developed an AI teaching assistant for learning Linux. After a period of testing, the … Read more

Linux Traffic Control

Linux Traffic Control

Linux Traffic Control Overview● Queueing Discipline (Qdisc): Defines the queuing strategy for packets, such as First In First Out (<span>pfifo_fast</span>) or Hierarchical Token Bucket (<span>HTB</span>).● Class: Forms a hierarchical structure combined with queueing disciplines to allocate bandwidth priorities (e.g., assigning high priority to real-time traffic).● Filter: Classifies traffic based on rules (such as IP address, … Read more

inxi: The Ultimate Tool for Retrieving Linux Hardware Information

inxi: The Ultimate Tool for Retrieving Linux Hardware Information

In the Linux world, there are many ways to obtain hardware information, such as <span>lscpu</span>, <span>free</span>, <span>lsblk</span>, and so on, but these commands usually focus on specific aspects. The uniqueness of <span>inxi</span> lies in its ability to integrate these scattered pieces of information. Today, we will explore this amazing tool. Installing inxi inxi can be … Read more

Linux Driver Development

Linux Driver Development

The MMC/SD driver model is widely used in embedded development, and its corresponding Linux system framework can be classified under block devices. If you want to understand the IO storage stack, you can start with the simple MMC/SD driver model. Linux MMC/SD Driver ModelIn Linux, the MMC/SD driver is mainly divided into three layers: the … Read more

Mastering Zephyr: A Step-by-Step Guide to Building Your Embedded Project (Part 1)

Mastering Zephyr: A Step-by-Step Guide to Building Your Embedded Project (Part 1)

Zephyr Basics Series: Starting from Scratch with Embedded Development Hello everyone, welcome to Lixin Embedded. Today, we are embarking on a brand new journey – the “Zephyr Basics Series”. The goal of this series is to guide you step by step into the powerful embedded real-time operating system, Zephyr, and to understand its core functionalities. … Read more

In-Depth Analysis of Zephyr Code Relocation Technology: From Principles to Best Practices

In-Depth Analysis of Zephyr Code Relocation Technology: From Principles to Best Practices

In modern embedded system development, code relocation technology is becoming a key means to optimize system performance. Imagine a scenario where your real-time control system experiences a 30% delay in critical interrupt response due to Flash access latency, or is unable to add new functional modules due to Flash capacity limitations. These are the pain … Read more

Zephyr Enthusiasts Monthly Issue 3 – 202503

Zephyr Enthusiasts Monthly Issue 3 - 202503

This issue records the latest news and shareable content about Zephyr, published in the last week of each month. This magazine is open source (GitHub: lgl88911/Zephyr_Fans_Monthly[1]), and contributions, issue submissions, or recommendations for Zephyr content are welcome. Project Data Excluding merges, 314 authors have pushed 1,431 commits to the main branch and 1,486 commits to … Read more

Device Initialization Order in Zephyr

Device Initialization Order in Zephyr

On a motherboard, there are numerous devices, and the order of their initialization is critical. For example, on an ESP32, an I2C device must be initialized before other devices that depend on it. In Zephyr, the initialization order of devices is controlled through device initialization levels, priorities, and the device tree. Initialization Methods There are … Read more