Start by creating a file system folder that forms the most basic file system directory
var# mkdir Usr/bin usr/lib usr/sbin lib/modules
Create a device file
# CD rootfs/dev# mknod-m 666 console C 5 # mknod-m 666 NULL C 1 3
Compiling BusyBox
Download the BusyBox tool from http://www.busybox.net/downloads/. Here we download the latest version: BUSYBOX-1.24.2.TAR.BZ2
Decompression Busybox
# tar JXVF busybox-1.24.2.tar.bz2
Modify Makefile
# CD busybox-1.24. 2/
In line 164
Cross_compile? = arm-linux-gnueabi-
ARCH ? = Arm
Make Menuconfig configuration, you can choose static compilation, if it is dynamically compiled to copy the corresponding library files, the default configuration is saved.
Busybox Settings, Build options->
Check build BusyBox as a static binary
Make Config_prefix=/home/nfs/rootfs Install
/home/nfs/rootfs is the address of the file system
Using Initramfs
# CD rootfs/-S/bin/busybox Init
Complete the files in the ETC directory
Embedded Linux root file system production