blob: 8d6b76a3379af45474d39bc6e3eef4025e063f5f [file] [log] [blame]
Eric Andersencb81e642003-07-14 21:21:08 +00001Please see the LICENSE file for details on copying and usage.
Eric Andersenc7bda1c2004-03-15 08:29:22 +00002
Rob Landleyd27d3be2005-10-09 18:20:54 +00003What is busybox:
Eric Andersencb81e642003-07-14 21:21:08 +00004
Rob Landleyd27d3be2005-10-09 18:20:54 +00005 BusyBox combines tiny versions of many common UNIX utilities into a single
6 small executable. It provides minimalist replacements for most of the
7 utilities you usually find in bzip2, coreutils, file, findutils, gawk, grep,
8 inetutils, modutils, net-tools, procps, sed, shadow, sysklogd, sysvinit, tar,
9 util-linux, and vim. The utilities in BusyBox often have fewer options than
10 their full-featured cousins; however, the options that are included provide
11 the expected functionality and behave very much like their larger
12 counterparts.
Eric Andersencc8ed391999-10-05 16:24:54 +000013
Rob Landleyd27d3be2005-10-09 18:20:54 +000014 BusyBox has been written with size-optimization and limited resources in
15 mind, both to produce small binaries and to reduce run-time memory usage.
16 Busybox is also extremely modular so you can easily include or exclude
17 commands (or features) at compile time. This makes it easy to customize
18 embedded systems; to create a working system, just add /dev, /etc, and a
19 Linux kernel. Busybox (usually together with uClibc) has also been used as
20 a component of "thin client" desktop systems, live-CD distributions, rescue
21 disks, installers, and so on.
22
23 BusyBox provides a fairly complete POSIX environment for any small system,
24 both embedded environments and more full featured systems concerned about
25 space. Busybox is slowly working towards implementing the full Single Unix
26 Specification V3 (http://www.opengroup.org/onlinepubs/009695399/), but isn't
27 there yet (and for size reasons will probably support at most UTF-8 for
28 internationalization). We are also interested in passing the Linux Test
29 Project (http://ltp.sourceforge.net).
Eric Andersencb81e642003-07-14 21:21:08 +000030
Eric Andersena29dec22000-06-22 00:19:33 +000031----------------
Eric Andersenc7bda1c2004-03-15 08:29:22 +000032
Rob Landleyd27d3be2005-10-09 18:20:54 +000033Using busybox:
Mark Whitley3654ca52001-01-26 20:58:23 +000034
Rob Landleyd27d3be2005-10-09 18:20:54 +000035 BusyBox is extremely configurable. This allows you to include only the
36 components and options you need, thereby reducing binary size. Run 'make
37 config' or 'make menuconfig' to select the functionality that you wish to
38 enable. (See 'make help' for more commands.)
Eric Andersenfdfa09b2004-10-08 10:52:08 +000039
Rob Landleyd27d3be2005-10-09 18:20:54 +000040 The behavior of busybox is determined by the name it's called under: as
41 "cp" it behaves like cp, as "sed" it behaves like sed, and so on. Called
42 as "busybox" it takes the second argument as the name of the applet to
43 run (I.E. "./busybox ls -l /proc").
Mark Whitley3654ca52001-01-26 20:58:23 +000044
Rob Landleyd27d3be2005-10-09 18:20:54 +000045 The "standalone shell" mode is an easy way to try out busybox; this is a
46 command shell that calls the builtin applets without needing them to be
47 installed in the path. (Note that this requires /proc to be mounted, if
48 testing from a boot floppy or in a chroot environment.)
Mark Whitley3654ca52001-01-26 20:58:23 +000049
Rob Landleyd27d3be2005-10-09 18:20:54 +000050 The build automatically generates a file "busybox.links", which is used by
51 'make install' to create symlinks to the BusyBox binary for all compiled in
52 commands. Use the PREFIX environment variable to specify where to install
53 the busybox binary and symlink forest. (i.e., 'make PREFIX=/tmp/foo install',
54 or 'make PREFIX=/tmp/foo install-hardlinks' if you prefer hard links.)
Mark Whitley3654ca52001-01-26 20:58:23 +000055
56----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000057
Rob Landleyd27d3be2005-10-09 18:20:54 +000058Downloading the current source code:
Eric Andersen235f66d2000-12-13 18:07:38 +000059
Rob Landleyd27d3be2005-10-09 18:20:54 +000060 Source for the latest released version, as well as daily snapshots, can always
61 be downloaded from
62
63 http://busybox.net/downloads/
64
65 You can browse the up to the minute source code and change history online.
66 The "stable" series is at:
67
68 http://www.busybox.net/cgi-bin/viewcvs.cgi/branches/busybox_1_00_stable/busybox/
69
70 And the development series is at:
71
72 http://www.busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/
73
74 Anonymous SVN access is available. For instructions, check out:
75
76 http://busybox.net/subversion.html
77
78 For those that are actively contributing and would like to check files in,
79 see:
80
81 http://busybox.net/developer.html
82
83 The developers also have a bug and patch tracking system
84 (http://bugs.busybox.net) although posting a bug/patch to the mailing list
85 is generally a faster way of getting it fixed, and the complete archive of
86 what happened is the subversion changelog.
Eric Andersena29dec22000-06-22 00:19:33 +000087
88----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000089
Rob Landleyd27d3be2005-10-09 18:20:54 +000090getting help:
Eric Andersen235f66d2000-12-13 18:07:38 +000091
Rob Landleyd27d3be2005-10-09 18:20:54 +000092 when you find you need help, you can check out the busybox mailing list
93 archives at http://busybox.net/lists/busybox/ or even join
94 the mailing list if you are interested.
Eric Andersen235f66d2000-12-13 18:07:38 +000095
Rob Landleyd27d3be2005-10-09 18:20:54 +000096----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000097
Rob Landleyd27d3be2005-10-09 18:20:54 +000098bugs:
Eric Andersen235f66d2000-12-13 18:07:38 +000099
Rob Landleyd27d3be2005-10-09 18:20:54 +0000100 if you find bugs, please submit a detailed bug report to the busybox mailing
101 list at busybox@busybox.net. a well-written bug report should include a
102 transcript of a shell session that demonstrates the bad behavior and enables
103 anyone else to duplicate the bug on their own machine. the following is such
104 an example:
105
106 to: busybox@busybox.net
107 from: diligent@testing.linux.org
108 subject: /bin/date doesn't work
109
110 package: busybox
111 version: 1.00
112
113 when i execute busybox 'date' it produces unexpected results.
114 with gnu date i get the following output:
Eric Andersencb81e642003-07-14 21:21:08 +0000115
116 $ date
Rob Landleyd27d3be2005-10-09 18:20:54 +0000117 fri oct 8 14:19:41 mdt 2004
Eric Andersencb81e642003-07-14 21:21:08 +0000118
Rob Landleyd27d3be2005-10-09 18:20:54 +0000119 but when i use busybox date i get this instead:
Eric Andersencb81e642003-07-14 21:21:08 +0000120
121 $ date
Eric Andersenfbcf06d2004-03-27 09:40:15 +0000122 illegal instruction
Eric Andersencb81e642003-07-14 21:21:08 +0000123
Rob Landleyd27d3be2005-10-09 18:20:54 +0000124 i am using debian unstable, kernel version 2.4.25-vrs2 on a netwinder,
125 and the latest uclibc from cvs. thanks for the wonderful program!
Eric Andersencb81e642003-07-14 21:21:08 +0000126
Rob Landleyd27d3be2005-10-09 18:20:54 +0000127 -diligent
Eric Andersen235f66d2000-12-13 18:07:38 +0000128
Rob Landleyd27d3be2005-10-09 18:20:54 +0000129 note the careful description and use of examples showing not only what
130 busybox does, but also a counter example showing what an equivalent app
131 does (or pointing to the text of a relevant standard). Bug reports lacking
132 such detail may never be fixed... Thanks for understanding.
Eric Andersena29dec22000-06-22 00:19:33 +0000133
134----------------
Eric Andersen235f66d2000-12-13 18:07:38 +0000135
Rob Landleyd27d3be2005-10-09 18:20:54 +0000136Portability:
Eric Andersen235f66d2000-12-13 18:07:38 +0000137
Rob Landleyd27d3be2005-10-09 18:20:54 +0000138 Busybox is developed and tested on Linux 2.4 and 2.6 kernels, compiled
139 with gcc (the unit-at-a-time optimizations in version 3.4 and later are
140 worth upgrading to get, but older versions should work), and linked against
141 uClibc (0.9.27 or greater) or glibc (2.2 or greater). In such an
142 environment, the full set of busybox features should work, and if
143 anything doesn't we want to know about it so we can fix it.
144
145 There are many other environments out there, in which busybox may build
146 and run just fine. We just don't test them. Since busybox consists of a
147 large number of more or less independent applets, portability is a question
148 of which features work where. Some busybox applets (such as cat and rm) are
149 highly portable and likely to work just about anywhere, while others (such as
150 insmod and losetup) require recent Linux kernels with recent C libraries.
151
152 Earlier versions of Linux and glibc may or may not work, for any given
153 configuration. Linux 2.2 or earlier should mostly work (there's still
154 some support code in things like mount.c) but this is no longer regularly
155 tested, and inherently won't support certain features (such as long files
156 and --bind mounts). The same is true for glibc 2.0 and 2.1: expect a higher
157 testing and debugging burden using such old infrastructure. (The busybox
158 developers are not very interested in supporting these older versions, but
159 will probably accept small self-contained patches to fix simple problems.)
160
161 Some environments are not recommended. Early versions of uClibc were buggy
162 and missing many features: upgrade. Linking against libc5 or dietlibc is
163 not supported and not interesting to the busybox developers. (The first is
164 obsolete and has no known size or feature advantages over uClibc, the second
165 has known bugs that its developers have actively refused to fix.) Ancient
166 Linux kernels (2.0.x and earlier) are similarly uninteresting.
167
168 In theory it's possible to use Busybox under other operating systems (such as
169 MacOS X, Solaris, Cygwin, or the BSD Fork Du Jour). This generally involves
170 a different kernel and a different C library at the same time. While it
171 should be possible to port the majority of the code to work in one of
172 these environments, don't be suprised if it doesn't work out of the box. If
173 you're into that sort of thing, start small (selecting just a few applets)
174 and work your way up.
175
176 Shaun Jackman has recently (2005) ported busybox to a combination of newlib
177 and libgloss, and some of his patches have been integrated. This platform
178 may join glibc/uclibc and Linux as a supported combination with the 1.1
179 release, but is not supported in 1.0.
180
181Supported hardware:
182
183 BusyBox in general will build on any architecture supported by gcc. We
184 support both 32 and 64 bit platforms, and both big and little endian
185 systems.
186
187 Under 2.4 Linux kernels, kernel module loading was implemented in a
188 platform-specific manner. Busybox's insmod utility has been reported to
189 work under ARM, CRIS, H8/300, x86, ia64, x86_64, m68k, MIPS, PowerPC, S390,
190 SH3/4/5, Sparc, v850e, and x86_64. Anything else probably won't work.
191
192 The module loading mechanism for the 2.6 kernel is much more generic, and
193 we believe 2.6.x kernel module loading support should work on all
194 architectures supported by the kernel.
Eric Andersena29dec22000-06-22 00:19:33 +0000195
196----------------
Eric Andersen235f66d2000-12-13 18:07:38 +0000197
Rob Landleyd27d3be2005-10-09 18:20:54 +0000198Please feed suggestions, bug reports, insults, and bribes back to the busybox
199maintainer:
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000200 Erik Andersen
Eric Andersenbdfd0d72001-10-24 05:00:29 +0000201 <andersen@codepoet.org>