source: clfs-embedded/BOOK/final-system/x86/busybox.xml @ be76242

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

Updated to Linux 2.6.19.2
Fixes for uClibc
Changed > to &gt;
Updated all Linux Patches
Updated Linux Headers
Updated to Busybox 1.4.1
Added E2FSProgs since it was removed from Busybox
Fixed Typos

  • Property mode set to 100644
File size: 5.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3  "http://www.oasis-open.org/docbook/xml/4.4/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="p0">Before you build BusyBox, you may want to check the following URL for
33    patches that the upstream maintainer of BusyBox has released to fix issues.
34    <ulink url="http://busybox.net/downloads/fixes-&busybox-version;"/></para>
35
36    <para os="p1">The following patch fixes some issues that are related to the
37    headers we are using:</para>
38
39<screen os="p2"><userinput>patch -Np1 -i ../&busybox-fixes-patch;</userinput></screen>
40
41    <para os="a">Create the default configuration:</para>
42
43<screen os="b"><userinput>make defconfig</userinput></screen>
44
45    <note os="c">
46      <para>Below we are just telling Busybox to use the default configuration of
47      uClibc. For those for more adventureous, you can use make menuconfig, and
48      do a more custom build of your Busybox.</para>
49    </note>
50
51   <para os="d">We will need to edit the configuration file, to make sure everything gets
52   compiled:</para>
53
54<screen os="e"><userinput>BUSYBOX_OPTIONS="CONFIG_DMALLOC CONFIG_BUILD_AT_ONCE CONFIG_BUILD_LIBBUSYBOX
55                 CONFIG_FEATURE_SH_IS_NONE CONFIG_LOCALE_SUPPORT CONFIG_TFTP CONFIG_FTPGET CONFIG_FTPPUT
56                 CONFIG_IPCALC CONFIG_TFTP CONFIG_HUSH CONFIG_LASH CONFIG_MSH CONFIG_INETD CONFIG_DPKG
57                 CONFIG_RPM2CPIO CONFIG_RPM CONFIG_FOLD CONFIG_LOGNAME CONFIG_OD CONFIG_CRONTAB
58                 CONFIG_UUDECODE CONFIG_UUENCODE CONFIG_SULOGIN CONFIG_DC CONFIG_DEBUG_YANK_SUSv2
59                 CONFIG_DEBUG_INIT CONFIG_DEBUG_CROND_OPTION CONFIG_FEATURE_UDHCP_DEBUG CONFIG_TASKSET
60                 CONFIG_CHATTR CONFIG_FSCK CONFIG_LSATTR CONFIG_CHPST CONFIG_SETUIDGID
61                 CONFIG_ENVUIDGID CONFIG_ENVDIR CONFIG_SOFTLIMIT CONFIG_FEATURE_2_4_MODULES"
62for config in $BUSYBOX_OPTIONS; do
63        cp .config .config.orig
64        sed -e "s:${config}=y:${config}=n:" .config.orig &gt; .config
65done
66BUSYBOX_OPTIONS="CONFIG_FEATURE_SH_IS_ASH CONFIG_FEATURE_TRACEROUTE_VERBOSE CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE"
67for config in $BUSYBOX_OPTIONS; do
68        cp .config .config.orig
69        sed -e "s:# ${config} is not set:${config}=y:" .config.orig &gt; .config
70done</userinput></screen>
71
72    <para os="f">Compile the package:</para>
73
74<screen os="g"><userinput>make ARCH=i386 CROSS_COMPILE="${CLFS_TARGET}-" CFLAGS="${BUILD}"</userinput></screen>
75
76    <para os="h">Install the package:</para>
77
78<screen os="i"><userinput>make ARCH=i386 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 depmod.pl 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.