busybox官网:www.busybox.net
1、解压
# tar jxvf busybox-1.21.1.tar.bz2
2、配置
# cd busybox-1.21.1
# make menuconfig
Busybox Settings --->
General Configuration --->
[ ] Enable options for full-blown desktop systems
我们使用的是嵌入式系统,如果不取消,在执行ps命令时不会显示进程状态
Build Options --->
(arm-linux-) Cross Compiler prefix
Installation Options ("make install" behavior) --->
(./_install) BusyBox installation prefix (NEW)
Init Utilities --->
[ ] Be _extra_ quiet on boot #取消可以在系统启动时显示busybox版本号
Linux Module Utilities --->
[ ] Simplified modutils
[*] insmod
[*] rmmod
[*] lsmod
[*] modprobe
[*] depmod
3、编译、安装
# make && make install
4、拷贝到根文件系统
# mkdir rootfs
# cp _install/* ../rootfs/ -a
5、系统运行效果
Freeing init memory: 136K
init started: BusyBox v1.21.1 (2013-09-08 00:58:43 CST)
Please press Enter to activate this console.
Processing /etc/profile...
Done
[[email protected] /]# ps
PID USER VSZ STAT COMMAND
1 root 3152 S {linuxrc} init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW [kworker/u:0]
6 root 0 SW< [khelper]
7 root 0 SW [kworker/u:1]
147 root 0 SW [sync_supers]
149 root 0 SW [bdi-default]
150 root 0 SW< [kblockd]
161 root 0 SW [khubd]
164 root 0 SW [kseriod]
171 root 0 SW< [kmmcd]
261 root 0 SW< [rpciod]
263 root 0 SW [kworker/0:1]
269 root 0 SW [kswapd0]
270 root 0 SW [fsnotify_mark]
271 root 0 SW< [aio]
272 root 0 SW< [nfsiod]
273 root 0 SW< [crypto]
877 root 0 SW [mtdblock0]
882 root 0 SW [mtdblock1]
887 root 0 SW [mtdblock2]
892 root 0 SW [mtdblock3]
919 root 0 SW< [kpsmoused]
956 root 0 SW< [usbhid_resumer]
969 root 0 SW [kworker/0:2]
978 root 3152 S telnetd
981 root 3156 S -/bin/sh
982 root 3152 S {linuxrc} init
983 root 3156 R ps
[[email protected] /]#
移植busybox-1.21.1,布布扣,bubuko.com