BusyBox can be used as a toolbox on existing systems, and it is also often used to build a bootable embedded system.
Let's build a standalone system with BusyBox from scratch and launch it on a virtual Android device with an Android emulator.
This recipe will use BusyBox to build our own filesystem and compress it to a
gzipped cpio package, just like
ramdisk.img, which we used in the previous recipe.
To boot such a new system, a new Linux kernel image should be compiled from Google Android-specific Linux kernel source code. Clone the source code for preparation.
$ cd ~/tools/busybox/ $ git clone https://android.googlesource.com/kernel/goldfish.git
The source code is specifically ...