根文件系统制作

[lingyun@localhost fulinux]$ clear
[lingyun@localhost fulinux]$ mkdir rootfs
[lingyun@localhost fulinux]$ cd rootfs
[lingyun@localhost rootfs]$ mkdir {bin,dev,etc,lib,mnt,proc,sbin,sys,tmp,usr,var}
[lingyun@localhost rootfs]$ ls
bin  dev  etc  lib  mnt  proc  sbin  sys  tmp  usr  var
[lingyun@localhost rootfs]$ cd usr/
[lingyun@localhost usr]$ mkdir {bin,sbin,lib,share}
[lingyun@localhost usr]$ ls
bin  lib  sbin  share
[lingyun@localhost usr]$ cd ..
[lingyun@localhost rootfs]$ tree
.
|-- bin
|-- dev
|-- etc
|-- lib
|-- mnt
|-- proc
|-- sbin
|-- sys
|-- tmp
|-- usr
|   |-- bin
|   |-- lib
|   |-- sbin
|   `-- share
`-- var


15 directories, 0 files
[lingyun@localhost rootfs]$ cd ../systools/busybox-1.20.2/
[lingyun@localhost busybox-1.20.2]$ ls
applets                 Config.in      include          Makefile.flags  selinux
applets_sh              configs        init             Makefile.help   shell
arch                    console-tools  INSTALL          miscutils       sysklogd
archival                coreutils      libbb            modutils        testsuite
AUTHORS                 debianutils    libpwdgrp        networking      TODO
busybox                 docs           LICENSE          printutils      TODO_unicode
busybox.links           e2fsprogs      loginutils       procps          util-linux
busybox_unstripped      editors        mailutils        README
busybox_unstripped.map  examples       Makefile         runit

busybox_unstripped.out  findutils      Makefile.custom  scripts

[lingyun@localhost busybox-1.20.2]$ vt100

[lingyun@localhost busybox-1.20.2]$ make menuconfig

1、

BusyBox 1.20.2 Configuration
 -----------------------------------------------------------------------------------------
  +------------------------------ Busybox Configuration -------------------------------+
  |  Arrow keys navigate the menu.  <Enter> selects submenus --->.  Highlighted        |
  |  letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes        |
  |  features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*]   |
  |  built-in  [ ] excluded  <M> module  < > module capable                            |
  | +--------------------------------------------------------------------------------+ |
  | |         Busybox Settings  --->                                                 | |
  | |     --- Applets                                                                | |
  | |         Archival Utilities  --->                                               | |
  | |         Coreutils  --->                                                        | |
  | |         Console Utilities  --->                                                | |
  | |         Debian Utilities  --->                                                 | |
  | |         Editors  --->                                                          | |
  | |         Finding Utilities  --->                                                | |
  | |         Init Utilities  --->                                                   | |
  | |         Login/Password Management Utilities  --->                              | |
  | |         Linux Ext2 FS Progs  --->                                              | |
  | |         Linux Module Utilities  --->                                           | |
  | |         Linux System Utilities  --->                                           | |
  | |         Miscellaneous Utilities  --->                                          | |
  | |         Networking Utilities  --->                                             | |
  | |         Print Utilities  --->                                                  | |
  | |         Mail Utilities  --->                                                   | |
  | |         Process Utilities  --->                                                | |
  | |         Runit Utilities  --->                                                  | |
  | |         Shells  --->                                                           | |
  | |         System Logging Utilities  --->                                         | |
  | |     ---                                                                        | |
  | |         Load an Alternate Configuration File                                   | |
  | |         Save Configuration to an Alternate File                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | +--------------------------------------------------------------------------------+ |
  +------------------------------------------------------------------------------------+
  |                          <Select>    < Exit >    < Help >                          |
  +------------------------------------------------------------------------------------+
2、

BusyBox 1.20.2 Configuration
 -----------------------------------------------------------------------------------------
  +--------------------------------- Busybox Settings ---------------------------------+
  |  Arrow keys navigate the menu.  <Enter> selects submenus --->.  Highlighted        |
  |  letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes        |
  |  features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*]   |
  |  built-in  [ ] excluded  <M> module  < > module capable                            |
  | +--------------------------------------------------------------------------------+ |
  | |         General Configuration  --->                                            | |
  | |         Build Options  --->                                                    | |
  | |         Debugging Options  --->                                                | |
  | |         Installation Options ("make install" behavior)  --->                   | |
  | |         Busybox Library Tuning  --->                                           | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | +--------------------------------------------------------------------------------+ |
  +------------------------------------------------------------------------------------+
  |                          <Select>    < Exit >    < Help >                          |
  +------------------------------------------------------------------------------------+
3、

 BusyBox 1.20.2 Configuration
 -----------------------------------------------------------------------------------------
  +------------------------------ General Configuration -------------------------------+
  |  Arrow keys navigate the menu.  <Enter> selects submenus --->.  Highlighted        |
  |  letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes        |
  |  features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*]   |
  |  built-in  [ ] excluded  <M> module  < > module capable                            |
  | +--------------------------------------------------------------------------------+ |
  | |     [*] Enable options for full-blown desktop systems                          | |
  | |     [ ] Provide compatible behavior for rare corner cases (bigger code)        | |
  | |     [*] Enable obsolete features removed before SUSv3                          | |
  | |     [ ] Avoid using GCC-specific code constructs                               | |
  | |     --- Enable Linux-specific applets and features                             | |
  | |         Buffer allocation policy (Allocate with Malloc)  --->                  | |
  | |     [*] Show applet usage messages                                             | |
  | |     [*]   Show verbose applet usage messages                                   | |
  | |     [*]   Store applet usage messages in compressed form                       | |
  | |     [*] Support --install [-s] to install applet links at runtime              | |
  | |     [*] Don't use /usr                                                         | |
  | |     [ ] Enable locale support (system needs locale for this to work)           | |
  | |     [*] Support Unicode                                                        | |
  | |     [ ]   Check $LANG environment variable                                     | |
  | |     (63)  Character code to substitute unprintable characters with             | |
  | |     (767) Range of supported Unicode characters                                | |
  | |     [ ]   Allow zero-width Unicode characters on output                        | |
  | |     [ ]   Allow wide Unicode characters on output                              | |
  | |     [ ]   Bidirectional character-aware line input                             | |
  | |     [ ]   Make it possible to enter sequences of chars which are not Unicode   | |
  | |     [*] Support for --long-options                                             | |
  | |     [*] Use the devpts filesystem for Unix98 PTYs                              | |
  | |     [ ] Clean up all memory before exiting (usually not needed)                | |
  | |     [*] Support utmp file                                                      | |
  | |     [*]   Support wtmp file                                                    | |
  | |     [*] Support writing pidfiles                                               | |
  | |     [*] Support for SUID/SGID handling                                         | |
  | |     [*]   Runtime SUID/SGID configuration via /etc/busybox.conf                | |
  | |     [*]     Suppress warning message if /etc/busybox.conf is not readable      | |
  | |     [ ] Support NSA Security Enhanced Linux                                    | |
  | |     [ ] exec prefers applets                                                   | |
  | |     (/proc/self/exe) Path to BusyBox executable                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | +--------------------------------------------------------------------------------+ |
  +------------------------------------------------------------------------------------+
  |                          <Select>    < Exit >    < Help >                          |
  +------------------------------------------------------------------------------------+

4、

 BusyBox 1.20.2 Configuration
 -----------------------------------------------------------------------------------------
  +--------------------------------- Busybox Settings ---------------------------------+
  |  Arrow keys navigate the menu.  <Enter> selects submenus --->.  Highlighted        |
  |  letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes        |
  |  features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*]   |
  |  built-in  [ ] excluded  <M> module  < > module capable                            |
  | +--------------------------------------------------------------------------------+ |
  | |         General Configuration  --->                                            | |
  | |         Build Options  --->                                                    | |
  | |         Debugging Options  --->                                                | |
  | |         Installation Options ("make install" behavior)  --->                   | |
  | |         Busybox Library Tuning  --->                                           | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | +--------------------------------------------------------------------------------+ |
  +------------------------------------------------------------------------------------+
  |                          <Select>    < Exit >    < Help >                          |
  +------------------------------------------------------------------------------------+
5、

 BusyBox 1.20.2 Configuration
 -----------------------------------------------------------------------------------------
  +---------------------------------- Build Options -----------------------------------+
  |  Arrow keys navigate the menu.  <Enter> selects submenus --->.  Highlighted        |
  |  letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes        |
  |  features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*]   |
  |  built-in  [ ] excluded  <M> module  < > module capable                            |
  | +--------------------------------------------------------------------------------+ |
  | |     [*] Build BusyBox as a static binary (no shared libs)                      | |
  | |     [ ] Force NOMMU build                                                      | |
  | |     [ ] Build with Large File Support (for accessing files > 2 GB)             | |
  | |     ( /opt/buildroot-2012.08/arm920t/usr/bin/arm-linux-) Cross Compiler prefix | |
  | |     ()  Path to sysroot                                                        | |
  | |     ()  Additional CFLAGS                                                      | |
  | |     ()  Additional LDFLAGS                                                     | |
  | |     ()  Additional LDLIBS                                                      | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | +--------------------------------------------------------------------------------+ |
  +------------------------------------------------------------------------------------+
  |                          <Select>    < Exit >    < Help >                          |
  +------------------------------------------------------------------------------------+
6、



        +------------------------- Cross Compiler prefix -------------------------+
        |  Please enter a string value. Use the <TAB> key to move from the input  |
        |  field to the buttons below it.                                         |
        | +---------------------------------------------------------------------+ |
        | | /opt/buildroot-2012.08/arm920t/usr/bin/arm-linux-                   | |
        | +---------------------------------------------------------------------+ |
        |                                                                         |
        +-------------------------------------------------------------------------+
        |                         <  Ok  >      < Help >                          |
        +-------------------------------------------------------------------------+
7、

 BusyBox 1.20.2 Configuration
 -----------------------------------------------------------------------------------------
  +--------------------------------- Busybox Settings ---------------------------------+
  |  Arrow keys navigate the menu.  <Enter> selects submenus --->.  Highlighted        |
  |  letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes        |
  |  features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*]   |
  |  built-in  [ ] excluded  <M> module  < > module capable                            |
  | +--------------------------------------------------------------------------------+ |
  | |         General Configuration  --->                                            | |
  | |         Build Options  --->                                                    | |
  | |         Debugging Options  --->                                                | |
  | |         Installation Options ("make install" behavior)  --->                   | |
  | |         Busybox Library Tuning  --->                                           | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | +--------------------------------------------------------------------------------+ |
  +------------------------------------------------------------------------------------+
  |                          <Select>    < Exit >    < Help >                          |
  +------------------------------------------------------------------------------------+
8、

 BusyBox 1.20.2 Configuration
 -----------------------------------------------------------------------------------------
  +------------------ Installation Options ("make install" behavior) ------------------+
  |  Arrow keys navigate the menu.  <Enter> selects submenus --->.  Highlighted        |
  |  letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes        |
  |  features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*]   |
  |  built-in  [ ] excluded  <M> module  < > module capable                            |
  | +--------------------------------------------------------------------------------+ |
  | |         What kind of applet links to install (as soft-links)  --->             | |
  | |     (../../rootfs) BusyBox installation prefix                                 | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | |                                                                                | |
  | +--------------------------------------------------------------------------------+ |
  +------------------------------------------------------------------------------------+
  |                          <Select>    < Exit >    < Help >                          |
  +------------------------------------------------------------------------------------+
9、


               +----------------------------------------------------------+
               |      Do you wish to save your new configuration?         |
               +----------------------------------------------------------+
               |                   < Yes >      <  No  >                  |
               +---------------------------------------------------------


*** End of configuration.
*** Execute 'make' to build the project or try 'make help'.


[lingyun@localhost busybox-1.20.2]$ make












你可能感兴趣的:(根文件系统制作)