嵌入式 BusyBox制作根文件系统

时间:2021-04-01 22:32:52

一、环境
Ubuntu 8.04
arm-linux-gcc 3.4.5
busybox-1.1.3

二、busybox制作文件系统
  1、下载busybox1.1.3(http://www.busybox.net/)并解压。
  2、进入解压后的目录,配置Busybox

  #make menuconfig

  Busybox Settings >

  General Configuration >
  [*] Support for devfs

  Init Utilities >
  [*] init
  [*] Support reading an inittab file
  [*]    Be _extra_ quiet onboot      
  [*]    Support running init from within an initrd (not initramfs)
   [*] poweroff, halt, andreboot
   [*] mesg

  Shells >

  Choose your default shell (ash) >
   (我开始就因为在这里没选上,结果就造成启动不起来 
  [*] ash

添加历史记录、自动补全、删除字符的功能:
   Shells --->
---   Bourne ShellOptions                                          
   []   Hide message on interactiveshellstartup                  
   []   Standaloneshell                                           
  [*]   command lineediting                                       
  [*]    vi-style line editingcommands                           
     (15)    historysize                                         
  [*]    historysaving