Creating Dynamic Root Filesystem with Busybox

Creating Dynamic Root Filesystem with Busybox

Source Code

Creating Dynamic Root Filesystem with Busybox

Compilation

Busybox has a default configuration, just use it directly

Simply run make

Then run make install CONFIG_PREFIX=/home/zk/work/zhengdianyuanzi/rootfs

After installing and creating missing directories

Creating Dynamic Root Filesystem with Busybox

Add Directory Content

libc/lib

cp so *.a /home/zk/work/zhengdianyuanzi/rootfs/lib -d

Creating Dynamic Root Filesystem with Busybox

Change the symbolic link to the original

Creating Dynamic Root Filesystem with Busybox

lib

Continue copying the next directory

cp so *.a /home/zk/work/zhengdianyuanzi/rootfs/lib -d

Creating Dynamic Root Filesystem with Busybox

usr/lib

cp so *.a /home/zk/work/zhengdianyuanzi/rootfs/usr/lib -d

Creating Dynamic Root Filesystem with Busybox

/etc

Creating Dynamic Root Filesystem with Busybox

Creating Dynamic Root Filesystem with Busybox

Testing

Successfully entered the file system

Creating Dynamic Root Filesystem with Busybox

Helloworld Source Code Compilation

Creating Dynamic Root Filesystem with Busybox

Running Result

Creating Dynamic Root Filesystem with Busybox

Network Testing

Creating Dynamic Root Filesystem with Busybox

Creating Dynamic Root Filesystem with Busybox

Leave a Comment

×