Download busybox
From http://www.busybox.net/downloads/busybox1.1.3.tar.gz / download busybox1.1.3 to the / tmp directory which, and unzip it.
Enter the unpacked directory, configuration Busybox [arm @ localhost busybox1.1.3] $ make menuconfig Busybox Settings>
General Configuration >
[*] Support for devfs Build Options >
[*] Build BusyBox as a static binary (no shared libs)
/ * Connect to busybox compiled as a static, less dynamic library when you start looking for trouble * / [*] Do you want to build BusyBox with a Cross Compiler? (/Usr/local/arm/3.3.2/bin/armlinux) Cross Compiler prefix
Init Utilities >
[*] init
/ * Specify the cross compiler tool path * /
[*] Support reading an inittab file
/ * Support init reads / etc / inittab configuration file, be sure to choose the * /
Shells >
Choose your default shell (ash) >
/ * (X) ash selected ash, generated this time will generate bin / sh file
* Head to see ahead of us linuxrc script sentence:
* #! / Bin / sh by bin / sh to explain the implementation of
*/ [*] ash
Coreutils >
[*] cp
[*] cat
[*] Ls
[*] mkdir
[*] echo (basic SuSv3 version taking no options) [*] env
[*] mv
[*] pwd
[*] rm [*] touch
Editors> [*] vi
Linux System Utilities >
[*] mount [*] umount
[*] Support loopback mounts
[*] Support for the old /etc/mtab file
Networking Utilities >
[*] inetd
/*
* Support inetd Super Server
* Inetd configuration file is /etc/inetd.conf file,
* "In this part 4: Create a configuration file" section will explain
*/
Compile and install Busybox
[arm@localhost busybox1.1.3]$ make TARGET_ARCH=arm CROSS=armlinux \ PREFIX=/home/arm/dev_home/rootfs/my_rootfs/ all install
PREFIX specify the installation path: that is the path we root file system.
* Point to note here is that as long as the install busybox, our root file system previously built the linuxrc will be covered by the same name as a binary file.
So to back up in advance of our own linuxrc, after installing busybox, copy linuxrc back like.