blob: 4f806a0bff883abea3b34bbbfc3d933c17ddce17 [file] [log] [blame]
Eric Andersencc8ed391999-10-05 16:24:54 +00001Please see the LICENSE file for copyright information.
Erik Andersen330fd2b2000-05-19 05:35:19 +00002
3BusyBox combines tiny versions of many common UNIX utilities into a single
4small executable. It provides minimalist replacements for most of the utilities
5you usually find in fileutils, shellutils, findutils, textutils, grep, gzip,
6tar, etc. BusyBox provides a fairly complete POSIX environment for any small or
Eric Andersen07309432000-11-29 22:12:19 +00007embedded system. The utilities in BusyBox generally have fewer options than
Erik Andersen330fd2b2000-05-19 05:35:19 +00008their full featured GNU cousins; however, the options that are included provide
9the expected functionality and behave very much like their GNU counterparts.
Eric Andersencc8ed391999-10-05 16:24:54 +000010
Erik Andersen330fd2b2000-05-19 05:35:19 +000011BusyBox has been written with size-optimization and limited resources in mind.
12It is also extremely modular so you can easily include or exclude commands (or
13features) at compile time. This makes it easy to customize your embedded
Eric Andersen09580932001-04-10 20:10:55 +000014systems. To create a working system, just add /dev, a shell, and a kernel. For
15a really minimal system, you can even use the busybox shell (not Bourne
16compatible, but very small and quite usable) and the busybox vi editor.
Eric Andersencc8ed391999-10-05 16:24:54 +000017
Eric Andersen07309432000-11-29 22:12:19 +000018BusyBox was originally written to support the Debian Rescue/Install disks, but
Erik Andersen330fd2b2000-05-19 05:35:19 +000019it also makes an excellent environment for any small or embedded system.
Eric Andersencc8ed391999-10-05 16:24:54 +000020
Eric Andersen235f66d2000-12-13 18:07:38 +000021As of version 0.20 there is now a version number. : ) Also as of version 0.20,
Erik Andersen330fd2b2000-05-19 05:35:19 +000022BusyBox is now modularized to easily allow you to build only the components you
Eric Andersen07309432000-11-29 22:12:19 +000023need, thereby reducing binary size. To turn off unwanted BusyBox components,
Eric Andersen235f66d2000-12-13 18:07:38 +000024simply edit the file "Config.h" and comment out the components you do not need
25using C++ style (//) comments.
Erik Andersen330fd2b2000-05-19 05:35:19 +000026
Eric Andersen07309432000-11-29 22:12:19 +000027After the build is complete, a busybox.links file is generated. This is
Erik Andersen330fd2b2000-05-19 05:35:19 +000028used by 'make install' to create symlinks to the busybox binary for all
29compiled in functions. By default, 'make install' will place the symlink
30forest into `pwd`/_install unless you have defined the PREFIX environment
Eric Andersen8ec10a92001-01-27 09:33:39 +000031variable (i.e., 'make PREFIX=/tmp/foo install')
Eric Andersencc8ed391999-10-05 16:24:54 +000032
Eric Andersena29dec22000-06-22 00:19:33 +000033----------------
Mark Whitley3654ca52001-01-26 20:58:23 +000034
35Supported architectures:
36
37 Busybox in general will build on any architecture supported by gcc. It has
38 a few specialized features added for __sparc__ and __alpha__. insmod
Eric Andersen2835efe2001-07-25 16:58:58 +000039 functionality is currently limited to x86, ARM, SH3/4, powerpc, m68k,
40 and MIPS.
Mark Whitley3654ca52001-01-26 20:58:23 +000041
42Supported libcs:
43
44 glibc-2.0.x, glibc-2.1.x, Linux-libc5, uClibc. People are looking at
45 newlib and diet-libc, but consider them unsupported, untested, or worse.
46
47Supported kernels:
48
49 Full functionality requires Linux 2.0.x, 2.2.x, or 2.4.x. A large fraction
50 of the code should run on just about anything.
51
52----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000053
Matt Kraai2d91deb2001-08-01 17:21:35 +000054Shells:
55
56lash is the very smallest shell (adds just 10k) and it is quite usable as
57a command prompt, but it is not suitable for any but the most trivial
58scripting (such as an initrd that calls insmod a few times) since it does
59not understand Bourne shell grammer. It does handle pipes, redirects, and
60job control though. Adding in command editing makes it very nice
61lightweight command prompt.
62
63hush is also quite small (just 18k) and it has very complete Bourne shell
64grammer. It handles if/then/else/fi just fine, but doesn't handle loops
65like for/do/done or case/esac and such. It also currently has a problem
66with job control.
67
68msh: The minix shell (adds just 30k) is quite complete and handles things
69like for/do/done, case/esac and all the things you expect a Bourne shell to
70do. It is not always pedantically correct about Bourne shell grammer (try
71running the shell testscript "tests/sh.testcases" on it and compare vs bash)
72but for most things it works quite well. It also uses only vfork, so it can
73be used on uClinux systems. This was only recently added, so there is still
74room to shrink it further...
75
76ash: This adds about 60k in the default configuration and is the most
77complete and most pedantically correct shell included with busybox. This
78shell was also recently added, and several people (mainly Vladimir and Erik)
79have been working on it. There are a number of configurable things at the
80top of ash.c as well, so check those out if you want to tweak things. The
81Posix math support is currently disabled (that bit of code was horrible) but
82will be restored for the next BusyBox release.
83
84----------------
85
Eric Andersena29dec22000-06-22 00:19:33 +000086Getting help:
Eric Andersen235f66d2000-12-13 18:07:38 +000087
Eric Andersena29dec22000-06-22 00:19:33 +000088When you find you need help, you can check out the BusyBox mailing list
89archives at http://opensource.lineo.com/lists/busybox/ or even join
90the mailing list if you are interested.
91
92----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000093
Eric Andersena29dec22000-06-22 00:19:33 +000094Bugs:
Eric Andersen235f66d2000-12-13 18:07:38 +000095
96If you find bugs, please submit a bug report. Full instructions on how to
97report a bug are found at http://bugs.lineo.com/Reporting.html.
98
99For the impatient: To submit a bug, simply send an email describing the problem
100to submit@bugs.lineo.com. Bug reports should look something like this:
101
102 To: submit@bugs.lineo.com
103 From: diligent@testing.linux.org
104 Subject: /bin/true doesn't work
105
106 Package: busybox
Eric Andersen09580932001-04-10 20:10:55 +0000107 Version: 0.51
Eric Andersen235f66d2000-12-13 18:07:38 +0000108
109 When I invoke '/bin/true' it doesn't work. I expected it to return
110 a "0" but it returned a "1" instead. Here is the transcript:
111 $ /bin/true ; echo $?
112 1
113 With GNU /bin/true, I get the following output:
114 $ /bin/true ; echo $?
115 0
116 I am using Debian 2.2r2, kernel version 2.2.18, and the latest
117 uClibc from CVS. Thanks for the wonderful program!
118 -Diligent
119
120Note the careful description and use of examples showing not only what BusyBox
121does, but also a counter example showing what an equivalent GNU app does. Bug
122reports lacking such detail may take a _long_ time to be fixed... Thanks for
123understanding.
Eric Andersena29dec22000-06-22 00:19:33 +0000124
125----------------
Eric Andersen235f66d2000-12-13 18:07:38 +0000126
Eric Andersena29dec22000-06-22 00:19:33 +0000127FTP:
Eric Andersen235f66d2000-12-13 18:07:38 +0000128
Eric Andersena29dec22000-06-22 00:19:33 +0000129Source for the latest released version can always be downloaded from
130 ftp://ftp.lineo.com/pub/busybox.
131
132----------------
Eric Andersen235f66d2000-12-13 18:07:38 +0000133
Eric Andersena29dec22000-06-22 00:19:33 +0000134CVS:
Eric Andersen235f66d2000-12-13 18:07:38 +0000135
Eric Andersen07309432000-11-29 22:12:19 +0000136BusyBox now has its own publicly browsable CVS tree at:
Eric Andersena29dec22000-06-22 00:19:33 +0000137 http://opensource.lineo.com/cgi-bin/cvsweb/busybox/
138
139Anonymous CVS access is available. For instructions, check out:
140 http://opensource.lineo.com/cvs_anon.html
141
142For those that are actively contributing there is even CVS write access:
143 http://opensource.lineo.com/cvs_write.html
144
Eric Andersena29dec22000-06-22 00:19:33 +0000145----------------
146
Eric Andersended62591999-11-18 00:19:26 +0000147Please feed suggestions, bug reports, insults, and bribes back to:
148 Erik Andersen
149 <andersen@lineo.com>
Eric Andersen664584b1999-12-11 23:25:59 +0000150 <andersee@debian.org>
Eric Andersen09580932001-04-10 20:10:55 +0000151 <andersee@codepoet.org>
Eric Andersencc8ed391999-10-05 16:24:54 +0000152
Eric Andersen07309432000-11-29 22:12:19 +0000153<blatant plug>
Eric Andersen84b00921999-12-11 04:16:51 +0000154Many thanks to go to Lineo for paying me to work on busybox.
Eric Andersen07309432000-11-29 22:12:19 +0000155</blatant plug>
Eric Andersen84b00921999-12-11 04:16:51 +0000156