blob: aa58cd1b98346a540baed17527ab5e61271718c4 [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
Erik Andersen330fd2b2000-05-19 05:35:19 +00003BusyBox combines tiny versions of many common UNIX utilities into a single
4small executable. It provides minimalist replacements for most of the utilities
Eric Andersenfbcf06d2004-03-27 09:40:15 +00005you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox
6generally have fewer options than their full-featured GNU cousins; however, the
7options that are included provide the expected functionality and behave very
Eric Andersen69bd0d12004-04-06 15:39:20 +00008much like their GNU counterparts.
Eric Andersencb81e642003-07-14 21:21:08 +00009
Erik Andersen330fd2b2000-05-19 05:35:19 +000010BusyBox has been written with size-optimization and limited resources in mind.
11It is also extremely modular so you can easily include or exclude commands (or
12features) at compile time. This makes it easy to customize your embedded
Eric Andersenfbcf06d2004-03-27 09:40:15 +000013systems. To create a working system, just add /dev, /etc, and a Linux kernel.
Eric Andersen69bd0d12004-04-06 15:39:20 +000014BusyBox provides a fairly complete POSIX environment for any small or embedded
15system.
Eric Andersencc8ed391999-10-05 16:24:54 +000016
Eric Andersenfbcf06d2004-03-27 09:40:15 +000017BusyBox is extremely configurable. This allows you to include only the
18components you need, thereby reducing binary size. Run 'make config' or
Eric Andersen69bd0d12004-04-06 15:39:20 +000019'make menuconfig' to select the functionality that you wish to enable.
Erik Andersen330fd2b2000-05-19 05:35:19 +000020
Eric Andersen07309432000-11-29 22:12:19 +000021After the build is complete, a busybox.links file is generated. This is
Eric Andersenfbcf06d2004-03-27 09:40:15 +000022used by 'make install' to create symlinks to the BusyBox binary for all
Erik Andersen330fd2b2000-05-19 05:35:19 +000023compiled in functions. By default, 'make install' will place the symlink
24forest into `pwd`/_install unless you have defined the PREFIX environment
Eric Andersen8ec10a92001-01-27 09:33:39 +000025variable (i.e., 'make PREFIX=/tmp/foo install')
Eric Andersencc8ed391999-10-05 16:24:54 +000026
Eric Andersenfbcf06d2004-03-27 09:40:15 +000027If you wish to install hard links, rather than symlinks, you can use
28'make PREFIX=/tmp/foo install-hardlinks' instead.
Eric Andersencb81e642003-07-14 21:21:08 +000029
Eric Andersena29dec22000-06-22 00:19:33 +000030----------------
Eric Andersenc7bda1c2004-03-15 08:29:22 +000031
Mark Whitley3654ca52001-01-26 20:58:23 +000032Supported architectures:
33
Eric Andersenfbcf06d2004-03-27 09:40:15 +000034 BusyBox in general will build on any architecture supported by gcc. It has
Mark Whitley3654ca52001-01-26 20:58:23 +000035 a few specialized features added for __sparc__ and __alpha__. insmod
Eric Andersenc7bda1c2004-03-15 08:29:22 +000036 functionality is currently limited to x86, ARM, SH3/4, powerpc, m68k,
Eric Andersenc181f342003-12-11 02:48:15 +000037 MIPS, cris, and v850e.
Mark Whitley3654ca52001-01-26 20:58:23 +000038
Eric Andersenfbcf06d2004-03-27 09:40:15 +000039Supported C Libraries:
Mark Whitley3654ca52001-01-26 20:58:23 +000040
Eric Andersen85c3c3f2003-07-16 07:31:14 +000041 glibc-2.0.x, glibc-2.1.x, glibc-2.2.x, glibc-2.3.x, uClibc. People
Eric Andersene5d58c32001-11-10 10:46:42 +000042 are looking at newlib and diet-libc, but consider them unsupported,
Eric Andersen85c3c3f2003-07-16 07:31:14 +000043 untested, or worse. Linux-libc5 is no longer supported -- you
44 should probably use uClibc instead if you want a small C library.
Mark Whitley3654ca52001-01-26 20:58:23 +000045
46Supported kernels:
47
Eric Andersen85c3c3f2003-07-16 07:31:14 +000048 Full functionality requires Linux 2.2.x or better. A large fraction of the
Eric Andersencb81e642003-07-14 21:21:08 +000049 code should run on just about anything. While the current code is fairly
50 Linux specific, it should be fairly easy to port the majority of the code
Eric Andersen2d717562004-04-12 15:05:10 +000051 to, say, FreeBSD or Solaris, or Mac OS X, or even Windows (if you are into
52 that sort of thing).
Mark Whitley3654ca52001-01-26 20:58:23 +000053
54----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000055
Eric Andersena29dec22000-06-22 00:19:33 +000056Getting help:
Eric Andersen235f66d2000-12-13 18:07:38 +000057
Eric Andersena29dec22000-06-22 00:19:33 +000058When you find you need help, you can check out the BusyBox mailing list
Eric Andersen2423b122001-12-08 01:56:15 +000059archives at http://busybox.net/lists/busybox/ or even join
Eric Andersena29dec22000-06-22 00:19:33 +000060the mailing list if you are interested.
61
62----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000063
Eric Andersena29dec22000-06-22 00:19:33 +000064Bugs:
Eric Andersen235f66d2000-12-13 18:07:38 +000065
Eric Andersenfbcf06d2004-03-27 09:40:15 +000066If you find bugs, please submit a detailed bug report to the BusyBox mailing
Eric Andersenf1d3ac42003-10-22 10:19:01 +000067list at busybox@mail.busybox.net. A well-written bug report should include a
Eric Andersencb81e642003-07-14 21:21:08 +000068transcript of a shell session that demonstrates the bad behavior and enables
Eric Andersenc7bda1c2004-03-15 08:29:22 +000069anyone else to duplicate the bug on their own machine. The following is such
Eric Andersencb81e642003-07-14 21:21:08 +000070an example:
Eric Andersen235f66d2000-12-13 18:07:38 +000071
Eric Andersenf1d3ac42003-10-22 10:19:01 +000072 To: busybox@mail.busybox.net
Eric Andersen235f66d2000-12-13 18:07:38 +000073 From: diligent@testing.linux.org
Eric Andersencb81e642003-07-14 21:21:08 +000074 Subject: /bin/date doesn't work
Eric Andersen235f66d2000-12-13 18:07:38 +000075
Eric Andersenfbcf06d2004-03-27 09:40:15 +000076 Package: BusyBox
Eric Andersencb81e642003-07-14 21:21:08 +000077 Version: 1.00
Eric Andersen235f66d2000-12-13 18:07:38 +000078
Eric Andersenfbcf06d2004-03-27 09:40:15 +000079 When I execute BusyBox 'date' it produces unexpected results.
Eric Andersencb81e642003-07-14 21:21:08 +000080 With GNU date I get the following output:
81
82 $ date
Eric Andersenfbcf06d2004-03-27 09:40:15 +000083 Sat Mar 27 14:19:41 MST 2004
Eric Andersencb81e642003-07-14 21:21:08 +000084
85 But when I use BusyBox date I get this instead:
86
87 $ date
Eric Andersenfbcf06d2004-03-27 09:40:15 +000088 illegal instruction
Eric Andersencb81e642003-07-14 21:21:08 +000089
Eric Andersenfbcf06d2004-03-27 09:40:15 +000090 I am using Debian unstable, kernel version 2.4.25-vrs2 on a Netwinder,
Eric Andersencb81e642003-07-14 21:21:08 +000091 and the latest uClibc from CVS. Thanks for the wonderful program!
92
Eric Andersen235f66d2000-12-13 18:07:38 +000093 -Diligent
94
95Note the careful description and use of examples showing not only what BusyBox
96does, but also a counter example showing what an equivalent GNU app does. Bug
Eric Andersencb81e642003-07-14 21:21:08 +000097reports lacking such detail may never be fixed... Thanks for understanding.
Eric Andersena29dec22000-06-22 00:19:33 +000098
99----------------
Eric Andersen235f66d2000-12-13 18:07:38 +0000100
Eric Andersenfbcf06d2004-03-27 09:40:15 +0000101Downloads:
Eric Andersen235f66d2000-12-13 18:07:38 +0000102
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000103Source for the latest released version, as well as daily snapshots, can always
104be downloaded from
Eric Andersenb9c0b992001-12-22 00:37:54 +0000105 http://busybox.net/downloads/
Eric Andersena29dec22000-06-22 00:19:33 +0000106
107----------------
Eric Andersen235f66d2000-12-13 18:07:38 +0000108
Eric Andersena29dec22000-06-22 00:19:33 +0000109CVS:
Eric Andersen235f66d2000-12-13 18:07:38 +0000110
Eric Andersen07309432000-11-29 22:12:19 +0000111BusyBox now has its own publicly browsable CVS tree at:
Eric Andersen2423b122001-12-08 01:56:15 +0000112 http://busybox.net/cgi-bin/cvsweb/busybox/
Eric Andersena29dec22000-06-22 00:19:33 +0000113
114Anonymous CVS access is available. For instructions, check out:
Eric Andersen2423b122001-12-08 01:56:15 +0000115 http://busybox.net/cvs_anon.html
Eric Andersena29dec22000-06-22 00:19:33 +0000116
117For those that are actively contributing there is even CVS write access:
Eric Andersen2423b122001-12-08 01:56:15 +0000118 http://busybox.net/cvs_write.html
Eric Andersena29dec22000-06-22 00:19:33 +0000119
Eric Andersena29dec22000-06-22 00:19:33 +0000120----------------
121
Eric Andersended62591999-11-18 00:19:26 +0000122Please feed suggestions, bug reports, insults, and bribes back to:
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000123 Erik Andersen
Eric Andersenbdfd0d72001-10-24 05:00:29 +0000124 <andersen@codepoet.org>
Eric Andersen84b00921999-12-11 04:16:51 +0000125