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