zoukankan      html  css  js  c++  java
  • 移植busybox-1.21.1

    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
    [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 /]#
  • 相关阅读:
    freeswitch与外部网关链接
    dojo中DateTextBox日期格式yyyy-MM-dd转化为数据库中yyyyMMdd
    dojo中取DateTextBox中的值两种方法
    视频编码与封装方式详解
    音频编码汇总
    FusionCharts 3D双柱状图
    FusionCharts 2D双柱状图
    利用merge优化
    FusionCharts 2D条状图
    全表扫描出现db file sequential read
  • 原文地址:https://www.cnblogs.com/zfyouxi/p/4042737.html
Copyright © 2011-2022 走看看