-
Diagnostic Log and Trace (DLT).
What is DLT Diagnostic Log and Trace (DLT). It’s a standardized protocol, widely used in the automotive industry, to manage and format log and trace data for electronic control units (ECUs). DLT enables efficient logging and tracing by standardizi...
-
Understanding U-Boot Environment Variables and Boot Arguments
Understanding U-Boot Environment Variables and Boot Arguments U-Boot is a popular bootloader used in embedded systems. Understanding its environment variables and boot arguments is crucial for configuring and booting Linux systems effectively. Her...
-
Xen stetup on hikey960
Setting Up Xen on HiKey960 This tutorial explains how to set up Xen on the HiKey960. It is based on the official Xen wiki tutorial. Since there are several points that can be confusing, I have summarized all the steps I followed. HiKey960 Versions...
-
Understanding Enum Size and Alignment in C
Understanding -fshort-enums in C When working with enumerations (enum) in C, it’s easy to assume they are always 4 bytes, just like int. However, compilers offer optimization flags like -fshort-enums that can reduce memory usage by adjusting enum ...
-
Shared Memory in Linux Inter-Process Communication
Shared Memory in Linux Inter-Process Communication (IPC) In Linux, shared memory is an efficient method for inter-process communication (IPC). Through shared memory, multiple processes can access the same memory region directly, enabling fast data...
-
How to Statically Compile a Python Program into a Binary Executable File
How to Statically Compile a Python Program into a Binary Executable File Creating a statically compiled binary for your Python program ensures it can run independently of the target system’s libraries. Here’s a step-by-step guide: 1. Install Neces...
-
eMMC timeout management in Linux&Uboot
eMMC Timeout Management in Linux: An Updated Perspective This blog post provides an updated overview of eMMC (embedded MultiMediaCard) timeout management within the Linux kernel and U-Boot, building upon the foundational concepts previously discus...
-
Understanding UFS vs NVMe Software Stack Overhead in Linux Systems
Understanding UFS vs NVMe Software Stack Overhead in Linux Systems Storage performance has become a critical component in modern computing, especially in embedded systems, smartphones, and laptops. Two major storage technologies—Universal Flash St...
-
Linux System Calls: An In-Depth Look
What are System Calls? System calls (syscalls) are the fundamental interface through which user-space applications interact with the Linux kernel. They are the gateway for processes to request privileged services and resources from the operating s...
-
Git 邮件工作流完全指南:从补丁提交到自动化通知
Git 邮件工作流完全指南:从补丁提交到自动化通知 前言 在现代软件开发中,尽管 GitHub、GitLab 等平台提供了便捷的 Pull Request 工作流,但基于邮件的补丁提交方式仍然是 Linux 内核、Git 本身以及众多成熟开源项目的标准协作模式。这种工作流程虽然学习曲线陡峭,但它提供了无可比拟的灵活性、可追溯性和去中心化特性。 本文将深入探讨 Git 邮件工作流的两大核心场景:使用 git send-email 提交补丁,以及通过 Git Hooks 实现自动化通知系统。 ...
-
Linux VFS架构、数据结构与文件系统注册
Linux VFS深度解析:架构、数据结构与文件系统注册 1. VFS概述 Virtual File System(虚拟文件系统,VFS)是Linux内核中的一个软件层,它为用户空间程序提供了统一的文件系统接口。VFS的核心作用是抽象底层文件系统的差异,使得应用程序可以使用相同的系统调用(如open、read、write)来操作不同类型的文件系统(ext4、XFS、Btrfs等)。 1.1 VFS的设计思想 VFS采用了面向对象的设计思想,虽然Linux内核使用C语言编写,但通过结构体和函...
-
Django-message
messages.success(), messages.error(), and JsonResponse() In Django, there are multiple ways to send feedback or data from the backend to the frontend. This post explains the differences between messages.success(), messages.error(), and JsonRespons...
-
Django-MySQL
How to Enter the MySQL Shell To enter the MySQL shell (command-line interface), follow these steps: 1. Install MySQL Client (if not already installed) If you don’t have the MySQL client installed, install it first: On Ubuntu/Debian: sudo apt updat...
-
Linux 设备管理全解析:从 devfs 到 udev/sysfs 的演进
Linux 设备管理全解析:从 devfs 到 udev/sysfs 的演进 引言 在 Linux 系统中,设备管理是操作系统的核心功能之一。遵循”一切皆文件”的 Unix 哲学,Linux 将硬件设备抽象为文件,存放在 /dev 目录下供用户进程操作。然而,设备管理机制经历了从静态到动态、从内核空间到用户空间的重大演进。本文将深入探讨 Linux 设备管理的发展历程,重点解析 devfs、tmpfs、devtmpfs、sysfs 和 udev 等关键技术,帮助读者全面理解现代 Linux...
-
Heap and Stack, one Minimalist heap Allocator
Introduction to the Heap What is the Heap? The heap is a region of memory used for dynamic memory allocation — memory that is allocated and freed at runtime rather than at compile time. In C, you access the heap using: malloc() / calloc() / reallo...