移植busybox-1.21.1

來源:互聯網
上載者:User

標籤:linux   嵌入式   嵌入式系統   

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
[[email protected] /]# 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
[[email protected] /]#
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.