[ Linux Busybox ] flash_eraseall command analysis

Article directory Related structures flash_eraseall function implementation flash_eraseall implementation flow chart File path: busybox-1.20.2/miscutils/flash_eraseall.c Related structure MTD related information structure struct mtd_info_user {<!– –> __u8 type; // MTD device type __u32 flags; // MTD device attribute flags __u32 size; //The size of the mtd device __u32 erasesize; //The erase unit size of the MTD device, […]

Embedded Android development System layer busybox tool import and use Optional ntpd ftpd

This article introduces how to import the busybox tool into the embedded Android system for use. To touch something, you must first have a concept, so what is busybox? busybox is a lightweight toolset specially used for embedded development, so it is very abstract, and a specific description is given below. When you use the […]

RK3568 minimal root file system construction – static library (based on BusyBox-v1.36.1)

RK3568 Minimal Root File System Construction-Static Library 1. Obtain BusyBox source code and tool chain 1.1 Obtaining BusyBox source code 1.2 Obtaining the compilation tool chain 2. Compile and build BusyBox 2.1 Building the compilation environment 2.2 compile 2.2.1 Compile option control 2.2.2 Top-level MakeFile modification 2.2.3 Executable file compilation 2.3 Improve the root file […]

Use BusyBox to compile the root file system (zdyz)

1. Use BusyBox to compile the root file system 1. BusyBox It can be downloaded from its official website, the official website address is: https://busybox.net/ , Download Source version 1.29.0. mkdir rootfs //The created rootfs subdirectory is used to store our root file system. tar -vxjf busybox-1.29.0.tar.bz2 //Unzip busybox to any directory Open the top-level […]

Run RISC-V Linux with QEMU (root file system BusyBox)

1. Running RISC-V Linux on QEMU 1.1. Preparation 1.2. Download/pull related resources and conduct preliminary tests 1.3. QEMU compilation 1.4. Linux kernel compilation 1.5. Add your own C program 1.6. Make rootfs with busybox 1.7. Using QEMU to run the system 1.8. Build static binary (no shared libs) problem 1. Running RISC-V Linux on QEMU […]

<Linux Development>System Transplantation – Of – Use buildroot to build the BusyBox root file system

System Transplantation-of-Using buildroot to build the BusyBox root file system I. Introduction Two, buildroot download 3. Configure buildroot basic parameters 3.1 Configure Target options 3.2 Configure Toolchain 3.3 Configure System configuration 3.4 Configuring Filesystem images 3.5 Disable compiling Linux kernel and uboot 3.6 Configure Target packages 4. Compile buildroot 5. Run verify root file system […]

ARM busybox transplant practice 1

Foreword First build the root file system in the form of a “folder” step by step, and then make a burning image. (1) There are two types of rootfs: rootfs in the form of “folder” started in nfs mode, and rootfs in image form for burning. (2) We start with an empty folder, and gradually […]

Linux-lab3: Kernel tracing and debugging based on Qemu/Busybox

The core directory of the Linux kernel init: The start_kernel function in main.c is the starting point of the kernel kernel : the main kernel code (the kernel of the kernel) mm: memory management fs: file system, implements the file system ipc: inter-process communication, process communication net: implement network, such as TCP/IP protocol stack drivers: […]

Use busybox to build root file system

Directory 1 download busybox 2 Modify the Makefile 3 configure busybox 4 Compile and install 4.1 /usr/include/unistd.h:203: error: conflicting types for ‘gid_t’ 4.2 miscutils/seedrng.c:45:24: fatal error: sys/random.h: No such file or directory 4.3 Makefile: 405: *** mixed implicit and normal rules: deprecated syntax 4.4 linux/netfilter.h:44: error: field ‘in’ has incomplete type 5 Create the necessary […]

DF723(FT2000+) DF716(FT2000/4) based on grub2.05, openEuler 20.03 kernel, busybox1.32.1 source code to make the smallest system U disk

Kylin desktop system V10 grub compilation + installation to USB reference (efi independent partition) Format the U disk, a small vfat partition is used for efi, and a large ext4 partition is used to store the root file system yeqiang@yeqiang-PC:/media/yeqiang$ sudo fdisk /dev/sdb Welcome to fdisk (util-linux 2.38.1). Changes will remain in memory only, until […]