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

Last change on this file since 7884e98 was 3ca2208, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Several fixes for PDF look.

  • Property mode set to 100644
File size: 5.9 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">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="p2">Here's an example of how to apply the patches from Busybox's website
37 replace {patch_name} with the name of the patch:</para>
38
39<screen os="p3" role="nodump"><userinput>patch -Np1 -i ../busybox-&busybox-version;{patch_name}</userinput></screen>
40
41 <para os="p4">The following patch fixes some issues that are related to the
42 headers we are using:</para>
43
44<screen os="p5"><userinput>patch -Np1 -i ../&busybox-fixes-patch;</userinput></screen>
45
46 <para os="a">Create the default configuration:</para>
47
48<screen os="b"><userinput>make defconfig</userinput></screen>
49
50 <note os="c">
51 <para>Below we are just telling Busybox to use the default configuration of
52 uClibc. For those for more adventureous, you can use make menuconfig, and
53 do a more custom build of your Busybox.</para>
54 </note>
55
56 <para os="d">We will need to edit the configuration file, to make sure everything gets
57 compiled:</para>
58
59<screen os="e"><userinput>BUSYBOX_OPTIONS="CONFIG_DMALLOC CONFIG_BUILD_AT_ONCE CONFIG_BUILD_LIBBUSYBOX
60 CONFIG_FEATURE_SH_IS_NONE CONFIG_LOCALE_SUPPORT CONFIG_TFTP CONFIG_FTPGET
61 CONFIG_FTPPUT CONFIG_IPCALC CONFIG_TFTP CONFIG_HUSH CONFIG_LASH
62 CONFIG_MSH CONFIG_INETD CONFIG_DPKG CONFIG_RPM2CPIO CONFIG_RPM
63 CONFIG_FOLD CONFIG_LOGNAME CONFIG_OD CONFIG_CRONTAB CONFIG_UUDECODE
64 CONFIG_UUENCODE CONFIG_SULOGIN CONFIG_DC CONFIG_DEBUG_YANK_SUSv2
65 CONFIG_DEBUG_INIT CONFIG_DEBUG_CROND_OPTION CONFIG_FEATURE_UDHCP_DEBUG
66 CONFIG_TASKSET CONFIG_CHATTR CONFIG_FSCK CONFIG_LSATTR CONFIG_CHPST
67 CONFIG_SETUIDGID CONFIG_ENVUIDGID CONFIG_ENVDIR CONFIG_SOFTLIMIT
68 CONFIG_FEATURE_2_4_MODULES"
69for config in $BUSYBOX_OPTIONS; do
70 cp .config{,.orig}
71 sed -e "s:${config}=y:${config}=n:" .config.orig &gt; .config
72done
73BUSYBOX_OPTIONS="CONFIG_FEATURE_SH_IS_ASH CONFIG_FEATURE_TRACEROUTE_VERBOSE
74 CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE"
75for config in $BUSYBOX_OPTIONS; do
76 cp .config{,.orig}
77 sed -e "s:# ${config} is not set:${config}=y:" .config.orig &gt; .config
78done</userinput></screen>
79
80 <para os="f">Compile the package:</para>
81
82<screen os="g"><userinput>make ARCH=i386 CROSS_COMPILE="${CLFS_TARGET}-" CFLAGS="${BUILD}"</userinput></screen>
83
84 <para os="h">Install the package:</para>
85
86<screen os="i"><userinput>make ARCH=i386 CROSS_COMPILE="${CLFS_TARGET}-" CFLAGS="${BUILD}" \
87 CONFIG_PREFIX="${CLFS}" install</userinput></screen>
88
89 <para os="j">If your going to build your kernel with modules, you will need to make
90 sure <command>depmod.pl</command> is available:</para>
91
92<screen os="k"><userinput>cp examples/depmod.pl ${CLFS}/cross-tools/bin
93chmod 755 ${CLFS}/cross-tools/bin/depmod.pl</userinput></screen>
94
95 </sect2>
96
97 <sect2 id="contents-busybox" role="content">
98 <title>Contents of Busybox</title>
99
100 <segmentedlist>
101 <segtitle>Installed programs</segtitle>
102
103 <seglistitem>
104 <seg>To be Written</seg>
105 </seglistitem>
106 </segmentedlist>
107
108<!--
109 <variablelist>
110 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
111 <?dbfo list-presentation="list"?>
112 <?dbhtml list-presentation="table"?>
113
114 <varlistentry id="bash">
115 <term><command>bash</command></term>
116 <listitem>
117 <para>A widely-used command interpreter; it performs many types of
118 expansions and substitutions on a given command line before executing
119 it, thus making this interpreter a powerful tool</para>
120 <indexterm zone="ch-system-bash bash">
121 <primary sortas="b-bash">bash</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="bashbug">
127 <term><command>bashbug</command></term>
128 <listitem>
129 <para>A shell script to help the user compose and mail standard
130 formatted bug reports concerning <command>bash</command></para>
131 <indexterm zone="ch-system-bash bashbug">
132 <primary sortas="b-bashbug">bashbug</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
137 <varlistentry id="sh">
138 <term><command>sh</command></term>
139 <listitem>
140 <para>A symlink to the <command>bash</command> program; when invoked
141 as <command>sh</command>, <command>bash</command> tries to mimic the
142 startup behavior of historical versions of <command>sh</command> as
143 closely as possible, while conforming to the POSIX standard as
144 well</para>
145 <indexterm zone="ch-system-bash sh">
146 <primary sortas="b-sh">sh</primary>
147 </indexterm>
148 </listitem>
149 </varlistentry>
150
151 </variablelist>
152-->
153 </sect2>
154
155</sect1>
Note: See TracBrowser for help on using the repository browser.