本帖最后由 fuqiye 于 2016-1-8 15:54 编辑
busybox-1.24.0制作AM335X文件系统 第一天
平台说明
busybox 版本: busybox-1.24.0 Linux 版本: ubuntu 15.04(编译主机) GCC 版本: gcc version 4.7.3 20130226 (prerelease)(crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03)
硬 件 平 台: 自制硬件板子(VoipServer-V0.0.1)
/*****************************************************************************************************************************/
开始:
将源码解压到自定义一个目录下
cd /home/am335x/app/
tar xvjf busybox-1.24.0.tar.bz2
cd busybox-1.24.0
配置
make menuconfig
Busybox Setting ----->
Build Options ----->
//1选择将busybox进行静态编译
[ * ]Build BusyBox as a static binary (no shared libs)
//2.指定交叉编译器为
(/usr/local/arm_linux_4.7.3/bin/arm-linux-gnueabihf-)Cross Compiler prefix
Busybox Library Tuning--->
//3.编译出的busybox的shell命令解释器支持显示当前路径及主机信息
[ * ]Username completion
[ * ]Fancy shell prompts
[ * ]Query cursor position from terminal
General Configuration--->
//4.去了Use the devpts filesystem for Unix98 PTYs
[ ]Use the devpts filesystem for Unix98 PTYs
Networking Utilities ----->
//5.去了inetd
[ ]inetd
配置保存
编译
make
编译完成后安装
make install
此时会在busybox的根目录下生成_install目录,里面有/bin /sbin /usr linuxrc 四个文件。
|