编译busybox的组合:
busybox-1.0.0 arm-linux-gcc-2.95.3 (AT91rm9200开发板)
经典参考:
http://www.doczj.com/doc/caf6ca7e31b765ce050814eb.html/downloads/ 下载busy box
http://www.doczj.com/doc/caf6ca7e31b765ce050814eb.html/balloon/releases/v0.7/roots/ 文件系统制作
移植基本过程:
1. 到http://www.doczj.com/doc/caf6ca7e31b765ce050814eb.html/downloads/busybox-1.7.3.tar.bz2下载busybox;
2. 解压busybox1.7.3
tar jxvf busy box-1.7.3.tar.bz2
3. make defconf ig
4. make menuconfig
在[build options]中选择[Build busybox as a static binary]
主要是C库的连接方式,安装目录等。
5. make
6. 创建rootfs目录
7. make install
编译过程可能出现以下错误,解决方法如下:可能会出现的错误:
1. 出现如下错误
CC miscutils/taskset.o
miscutils/taskset.c:17: error: parse error before '*' token
miscutils/taskset.c:18: warning: function declaration isn't a prototype
miscutils/taskset.c: In function `__from_cpuset':
miscutils/taskset.c:22: error: `CPU_SETSIZE' undeclared (first use in this f unction) miscutils/taskset.c:22: error: (Each undeclared identif ier is reported only once
miscutils/taskset.c:22: error: for each function it appears in.)
miscutils/taskset.c:26: warning: implicit declaration of function `CPU_ISSET'
miscutils/taskset.c:26: error: `mask' undeclared (first use in this function)
miscutils/taskset.c: In function `taskset_main':
miscutils/taskset.c:47: error: `cpu_set_t' undeclared (first use in this function)
miscutils/taskset.c:47: error: parse error before "mask"
miscutils/taskset.c:68: warning: implicit declaration of function `CPU_ZERO'
miscutils/taskset.c:68: error: `new_mask' undeclared (first use in this function)
miscutils/taskset.c:69: error: `CPU_SETSIZE' undeclared (first use in this f unction) miscutils/taskset.c:71: warning: implicit declaration of function `CPU_SET'
miscutils/taskset.c:78: error: `mask' undeclared (first use in this function)