首页 > 代码库 > 移植busybox-1.21.1
移植busybox-1.21.1
busybox官网:www.busybox.net
1、解压
# tar jxvf busybox-1.21.1.tar.bz22、配置
# 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
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
[root@tq2440 /]# 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
[root@tq2440 /]#
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。