编译busybox-1.16.0根文件移植

编译busybox生成文件系统所需要的应用程序

1)、从http://busybox.net/下载busybox- 1.16.0源码包,解压(tar xjvf busybox-1.16.0.tar.tar)后进入解压后的目录(cd busybox-1.16.0),修改Makefile

大概164行改成CROSS_COMPILE = arm-linux- 189行改成ARCH = arm

2)、配置busybox选项,下面只列出了要注意的地方,没有列出的默认即可

make menuconfig

 

Busybox Settings --->
    General Configuration --->
            Buffer allocation policy (Allocate with Malloc) --->
        [*] Show verbose applet usage messages
        [*] Store applet usage messages in compressed form
        [*] Support --install [-s] to install applet links at runtime
        [*] Enable locale support (system needs locale for this to work)
        [*] Support for --long-options
        [*] Use the devpts filesystem for Unix98 PTYs
        [*] Support writing pidfiles
        [*] Runtime SUID/SGID configuration via /etc/busybox.conf
        [*] Suppress warning message if /etc/busybox.conf is not readable
        (/proc/self/exe) Path to BusyBox executable
    Build Options --->
        [*] Build BusyBox as a static binary (no shared libs)
        [*] Build with Large File Support (for accessing files > 2 GB)
    Installation Options --->
        [ ] Don't use /usr
            Applets links (as soft-links) --->
        (./_install) BusyBox installation prefix
    Busybox Library Tuning --->
        (6) Minimum password length
        (2) MD5: Trade Bytes for Speed
        [*] Faster /proc scanning code (+100 bytes)
        [*] Command line editing
        (1024) Maximum length of input
        [*] vi-style line editing commands
        (15) History size
        [*] History saving
        [*] Tab completion
        [*] Fancy shell prompts
        (4) Copy buffer size, in kilobytes
        [*] Use ioctl names rather than hex values in error messages
        [*] Support infiniband HW
Linux Module Utilities --->
    (/lib/modules) Default directory containing modules
    (modules.dep) Default name of modules.dep

 (下面是本人未能找到相关的配置,若有人知道,希望告知一下,在下感激涕零)
    [*] insmod
    [*] rmmod
    [*] lsmod
    [*] modprobe
    --- Options common to multiple modutils
    [ ] Support version 2.2/2.4 Linux kernels
    [*] Support tainted module checking with new kernels
    [*] Support for module.aliases file
    [*] Support for module.symbols fileLinux System Utilities --->

   

 

   3)、编译和安装busybox

make

make install

©️2020 CSDN 皮肤主题: 大白 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值