source: clfs-embedded/BOOK/final-system/common/busybox.xml @ 0e9e889

Last change on this file since 0e9e889 was 0e9e889, checked in by Jim Gifford <clfs@…>, 15 years ago

Starting Busybox Updates

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-system-busybox" role="wrap">
9  <?dbhtml filename="busybox.html"?>
10
11  <title>Busybox-&busybox-version;</title>
12
13  <indexterm zone="ch-system-busybox">
14    <primary sortas="a-Busybox">Busybox</primary>
15  </indexterm>
16
17  <sect2 role="package">
18    <title/>
19
20    <para>BusyBox combines tiny versions of many common UNIX utilities into a single small
21     executable. It provides replacements for most of the utilities you usually find in GNU
22     fileutils, shellutils, etc. The utilities in BusyBox generally have fewer options than
23     their full-featured GNU cousins; however, the options that are included provide the
24     expected functionality and behave very much like their GNU counterparts. BusyBox provides
25     a fairly complete environment for any small or embedded system.</para>
26
27  </sect2>
28
29  <sect2 role="installation">
30    <title>Installation of Busybox</title>
31
32    <para os="p1">The following patch contains a number of updates to the
33    &busybox-version; branch by the Busybox developers:</para>
34
35<screen os="p2"><userinput>patch -Np1 -i ../&busybox-branch_update-patch;</userinput></screen>
36
37    <para os="a">Create the default configuration:</para>
38
39<screen os="b"><userinput>make defconfig</userinput></screen>
40
41    <note os="c">
42      <para>Below we are just telling Busybox to use the default configuration of
43      uClibc. For those for more adventureous, you can use make menuconfig, and
44      do a more custom build of your Busybox.</para>
45    </note>
46
47   <para os="d">We will need to edit the configuration file, to make sure everything gets
48   compiled:</para>
49
50<screen os="e"><userinput>BUSYBOX_OPTIONS="CONFIG_DMALLOC CONFIG_BUILD_AT_ONCE CONFIG_BUILD_LIBBUSYBOX
51    CONFIG_FEATURE_SH_IS_NONE CONFIG_LOCALE_SUPPORT CONFIG_TFTP CONFIG_FTPGET
52    CONFIG_FTPPUT CONFIG_IPCALC CONFIG_TFTP CONFIG_HUSH CONFIG_LASH
53    CONFIG_MSH CONFIG_INETD CONFIG_DPKG CONFIG_RPM2CPIO CONFIG_RPM
54    CONFIG_FOLD CONFIG_LOGNAME CONFIG_OD CONFIG_CRONTAB CONFIG_UUDECODE
55    CONFIG_UUENCODE CONFIG_SULOGIN CONFIG_DC CONFIG_DEBUG_YANK_SUSv2
56    CONFIG_DEBUG_INIT CONFIG_DEBUG_CROND_OPTION CONFIG_FEATURE_UDHCP_DEBUG
57    CONFIG_TASKSET CONFIG_CHATTR CONFIG_FSCK CONFIG_LSATTR CONFIG_CHPST
58    CONFIG_SETUIDGID CONFIG_ENVUIDGID CONFIG_ENVDIR CONFIG_SOFTLIMIT
59    CONFIG_FEATURE_2_4_MODULES"
60for config in $BUSYBOX_OPTIONS; do
61    cp .config{,.orig}
62    sed -e "s:${config}=y:${config}=n:" .config.orig &gt; .config
63done
64BUSYBOX_OPTIONS="CONFIG_FEATURE_SH_IS_ASH CONFIG_FEATURE_TRACEROUTE_VERBOSE
65    CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE"
66for config in $BUSYBOX_OPTIONS; do
67    cp .config{,.orig}
68    sed -e "s:# ${config} is not set:${config}=y:" .config.orig &gt; .config
69done</userinput></screen>
70
71    <para os="f">Compile the package:</para>
72
73<screen os="g"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE="${CLFS_TARGET}-" CFLAGS="${BUILD}"</userinput></screen>
74
75    <para os="h">Install the package:</para>
76
77<screen os="i"><userinput>make ARCH=${CLFS_ARCH} CROSS_COMPILE="${CLFS_TARGET}-" CFLAGS="${BUILD}" \
78    CONFIG_PREFIX="${CLFS}" install</userinput></screen>
79
80    <para os="j">If your going to build your kernel with modules, you will need to make
81    sure <command>depmod.pl</command> is available:</para>
82
83<screen os="k"><userinput>cp examples/depmod.pl ${CLFS}/cross-tools/bin
84chmod 755 ${CLFS}/cross-tools/bin/depmod.pl</userinput></screen>
85
86  </sect2>
87
88  <sect2 id="contents-busybox" role="content">
89    <title>Contents of Busybox</title>
90
91    <segmentedlist>
92      <segtitle>Installed programs</segtitle>
93
94      <seglistitem>
95        <seg>To be Written</seg>
96      </seglistitem>
97    </segmentedlist>
98
99<!--
100    <variablelist>
101      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
102      <?dbfo list-presentation="list"?>
103      <?dbhtml list-presentation="table"?>
104
105      <varlistentry id="bash">
106        <term><command>bash</command></term>
107        <listitem>
108          <para>A widely-used command interpreter; it performs many types of
109          expansions and substitutions on a given command line before executing
110          it, thus making this interpreter a powerful tool</para>
111          <indexterm zone="ch-system-bash bash">
112            <primary sortas="b-bash">bash</primary>
113          </indexterm>
114        </listitem>
115      </varlistentry>
116
117      <varlistentry id="bashbug">
118        <term><command>bashbug</command></term>
119        <listitem>
120          <para>A shell script to help the user compose and mail standard
121          formatted bug reports concerning <command>bash</command></para>
122          <indexterm zone="ch-system-bash bashbug">
123            <primary sortas="b-bashbug">bashbug</primary>
124          </indexterm>
125        </listitem>
126      </varlistentry>
127
128      <varlistentry id="sh">
129        <term><command>sh</command></term>
130        <listitem>
131          <para>A symlink to the <command>bash</command> program; when invoked
132          as <command>sh</command>, <command>bash</command> tries to mimic the
133          startup behavior of historical versions of <command>sh</command> as
134          closely as possible, while conforming to the POSIX standard as
135          well</para>
136          <indexterm zone="ch-system-bash sh">
137            <primary sortas="b-sh">sh</primary>
138          </indexterm>
139        </listitem>
140      </varlistentry>
141
142    </variablelist>
143-->
144  </sect2>
145
146</sect1>
Note: See TracBrowser for help on using the repository browser.