blob: 72a560c38f6fa96b5c71c55e2e78afb7c0687f81 [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 Andersen45a05132004-09-02 23:03:25 +000036 functionality is currently limited to ARM, CRIS, H8/300, x86, ia64,
37 x86_64, m68k, MIPS, PowerPC, S390, SH3/4/5, Sparc, v850e, and x86_64
38 for 2.4.x kernels. For 2.6.x kernels
Mark Whitley3654ca52001-01-26 20:58:23 +000039
Eric Andersenfbcf06d2004-03-27 09:40:15 +000040Supported C Libraries:
Mark Whitley3654ca52001-01-26 20:58:23 +000041
Eric Andersen45a05132004-09-02 23:03:25 +000042 uClibc and glibc are supported. People have been looking at newlib and
43 diet-libc, but they are currently considered unsupported, untested, or
44 worse. Linux-libc5 is no longer supported -- you should probably use uClibc
45 instead if you want a small C library.
Mark Whitley3654ca52001-01-26 20:58:23 +000046
47Supported kernels:
48
Eric Andersen85c3c3f2003-07-16 07:31:14 +000049 Full functionality requires Linux 2.2.x or better. A large fraction of the
Eric Andersencb81e642003-07-14 21:21:08 +000050 code should run on just about anything. While the current code is fairly
51 Linux specific, it should be fairly easy to port the majority of the code
Eric Andersen45a05132004-09-02 23:03:25 +000052 to support, say, FreeBSD or Solaris, or Mac OS X, or even Windows (if you
53 are into that sort of thing).
Mark Whitley3654ca52001-01-26 20:58:23 +000054
55----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000056
Eric Andersena29dec22000-06-22 00:19:33 +000057Getting help:
Eric Andersen235f66d2000-12-13 18:07:38 +000058
Eric Andersena29dec22000-06-22 00:19:33 +000059When you find you need help, you can check out the BusyBox mailing list
Eric Andersen2423b122001-12-08 01:56:15 +000060archives at http://busybox.net/lists/busybox/ or even join
Eric Andersena29dec22000-06-22 00:19:33 +000061the mailing list if you are interested.
62
63----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000064
Eric Andersena29dec22000-06-22 00:19:33 +000065Bugs:
Eric Andersen235f66d2000-12-13 18:07:38 +000066
Eric Andersenfbcf06d2004-03-27 09:40:15 +000067If you find bugs, please submit a detailed bug report to the BusyBox mailing
Eric Andersenf1d3ac42003-10-22 10:19:01 +000068list at busybox@mail.busybox.net. A well-written bug report should include a
Eric Andersencb81e642003-07-14 21:21:08 +000069transcript of a shell session that demonstrates the bad behavior and enables
Eric Andersenc7bda1c2004-03-15 08:29:22 +000070anyone else to duplicate the bug on their own machine. The following is such
Eric Andersencb81e642003-07-14 21:21:08 +000071an example:
Eric Andersen235f66d2000-12-13 18:07:38 +000072
Eric Andersenf1d3ac42003-10-22 10:19:01 +000073 To: busybox@mail.busybox.net
Eric Andersen235f66d2000-12-13 18:07:38 +000074 From: diligent@testing.linux.org
Eric Andersencb81e642003-07-14 21:21:08 +000075 Subject: /bin/date doesn't work
Eric Andersen235f66d2000-12-13 18:07:38 +000076
Eric Andersenfbcf06d2004-03-27 09:40:15 +000077 Package: BusyBox
Eric Andersencb81e642003-07-14 21:21:08 +000078 Version: 1.00
Eric Andersen235f66d2000-12-13 18:07:38 +000079
Eric Andersenfbcf06d2004-03-27 09:40:15 +000080 When I execute BusyBox 'date' it produces unexpected results.
Eric Andersencb81e642003-07-14 21:21:08 +000081 With GNU date I get the following output:
82
83 $ date
Eric Andersenfbcf06d2004-03-27 09:40:15 +000084 Sat Mar 27 14:19:41 MST 2004
Eric Andersencb81e642003-07-14 21:21:08 +000085
86 But when I use BusyBox date I get this instead:
87
88 $ date
Eric Andersenfbcf06d2004-03-27 09:40:15 +000089 illegal instruction
Eric Andersencb81e642003-07-14 21:21:08 +000090
Eric Andersenfbcf06d2004-03-27 09:40:15 +000091 I am using Debian unstable, kernel version 2.4.25-vrs2 on a Netwinder,
Eric Andersencb81e642003-07-14 21:21:08 +000092 and the latest uClibc from CVS. Thanks for the wonderful program!
93
Eric Andersen235f66d2000-12-13 18:07:38 +000094 -Diligent
95
96Note the careful description and use of examples showing not only what BusyBox
97does, but also a counter example showing what an equivalent GNU app does. Bug
Eric Andersencb81e642003-07-14 21:21:08 +000098reports lacking such detail may never be fixed... Thanks for understanding.
Eric Andersena29dec22000-06-22 00:19:33 +000099
100----------------
Eric Andersen235f66d2000-12-13 18:07:38 +0000101
Eric Andersenfbcf06d2004-03-27 09:40:15 +0000102Downloads:
Eric Andersen235f66d2000-12-13 18:07:38 +0000103
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000104Source for the latest released version, as well as daily snapshots, can always
105be downloaded from
Eric Andersenb9c0b992001-12-22 00:37:54 +0000106 http://busybox.net/downloads/
Eric Andersena29dec22000-06-22 00:19:33 +0000107
108----------------
Eric Andersen235f66d2000-12-13 18:07:38 +0000109
Eric Andersena29dec22000-06-22 00:19:33 +0000110CVS:
Eric Andersen235f66d2000-12-13 18:07:38 +0000111
Eric Andersen07309432000-11-29 22:12:19 +0000112BusyBox now has its own publicly browsable CVS tree at:
Eric Andersen2423b122001-12-08 01:56:15 +0000113 http://busybox.net/cgi-bin/cvsweb/busybox/
Eric Andersena29dec22000-06-22 00:19:33 +0000114
115Anonymous CVS access is available. For instructions, check out:
Eric Andersen2423b122001-12-08 01:56:15 +0000116 http://busybox.net/cvs_anon.html
Eric Andersena29dec22000-06-22 00:19:33 +0000117
118For those that are actively contributing there is even CVS write access:
Eric Andersen2423b122001-12-08 01:56:15 +0000119 http://busybox.net/cvs_write.html
Eric Andersena29dec22000-06-22 00:19:33 +0000120
Eric Andersena29dec22000-06-22 00:19:33 +0000121----------------
122
Eric Andersended62591999-11-18 00:19:26 +0000123Please feed suggestions, bug reports, insults, and bribes back to:
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000124 Erik Andersen
Eric Andersenbdfd0d72001-10-24 05:00:29 +0000125 <andersen@codepoet.org>
Eric Andersen84b00921999-12-11 04:16:51 +0000126