blob: 631d4c15bc931fc2f4afc3f7d3f53b8278a08323 [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
8much like their GNU counterparts. BusyBox provides a fairly complete POSIX
9environment for any small or embedded system.
Eric Andersencb81e642003-07-14 21:21:08 +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 Andersenfbcf06d2004-03-27 09:40:15 +000014systems. To create a working system, just add /dev, /etc, and a Linux kernel.
Eric Andersencc8ed391999-10-05 16:24:54 +000015
Eric Andersenfbcf06d2004-03-27 09:40:15 +000016BusyBox is extremely configurable. This allows you to include only the
17components you need, thereby reducing binary size. Run 'make config' or
18'make menuconfig' for select the functionality that you wish to enable.
Erik Andersen330fd2b2000-05-19 05:35:19 +000019
Eric Andersen07309432000-11-29 22:12:19 +000020After the build is complete, a busybox.links file is generated. This is
Eric Andersenfbcf06d2004-03-27 09:40:15 +000021used by 'make install' to create symlinks to the BusyBox binary for all
Erik Andersen330fd2b2000-05-19 05:35:19 +000022compiled in functions. By default, 'make install' will place the symlink
23forest into `pwd`/_install unless you have defined the PREFIX environment
Eric Andersen8ec10a92001-01-27 09:33:39 +000024variable (i.e., 'make PREFIX=/tmp/foo install')
Eric Andersencc8ed391999-10-05 16:24:54 +000025
Eric Andersenfbcf06d2004-03-27 09:40:15 +000026If you wish to install hard links, rather than symlinks, you can use
27'make PREFIX=/tmp/foo install-hardlinks' instead.
Eric Andersencb81e642003-07-14 21:21:08 +000028
Eric Andersena29dec22000-06-22 00:19:33 +000029----------------
Eric Andersenc7bda1c2004-03-15 08:29:22 +000030
Mark Whitley3654ca52001-01-26 20:58:23 +000031Supported architectures:
32
Eric Andersenfbcf06d2004-03-27 09:40:15 +000033 BusyBox in general will build on any architecture supported by gcc. It has
Mark Whitley3654ca52001-01-26 20:58:23 +000034 a few specialized features added for __sparc__ and __alpha__. insmod
Eric Andersenc7bda1c2004-03-15 08:29:22 +000035 functionality is currently limited to x86, ARM, SH3/4, powerpc, m68k,
Eric Andersenc181f342003-12-11 02:48:15 +000036 MIPS, cris, and v850e.
Mark Whitley3654ca52001-01-26 20:58:23 +000037
Eric Andersenfbcf06d2004-03-27 09:40:15 +000038Supported C Libraries:
Mark Whitley3654ca52001-01-26 20:58:23 +000039
Eric Andersen85c3c3f2003-07-16 07:31:14 +000040 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 +000041 are looking at newlib and diet-libc, but consider them unsupported,
Eric Andersen85c3c3f2003-07-16 07:31:14 +000042 untested, or worse. Linux-libc5 is no longer supported -- you
43 should probably use uClibc instead if you want a small C library.
Mark Whitley3654ca52001-01-26 20:58:23 +000044
45Supported kernels:
46
Eric Andersen85c3c3f2003-07-16 07:31:14 +000047 Full functionality requires Linux 2.2.x or better. A large fraction of the
Eric Andersencb81e642003-07-14 21:21:08 +000048 code should run on just about anything. While the current code is fairly
49 Linux specific, it should be fairly easy to port the majority of the code
50 to, say, FreeBSD or Solaris, or MacOsX, or even Windows (if you are into that
51 sortof thing).
Mark Whitley3654ca52001-01-26 20:58:23 +000052
53----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000054
Eric Andersena29dec22000-06-22 00:19:33 +000055Getting help:
Eric Andersen235f66d2000-12-13 18:07:38 +000056
Eric Andersena29dec22000-06-22 00:19:33 +000057When you find you need help, you can check out the BusyBox mailing list
Eric Andersen2423b122001-12-08 01:56:15 +000058archives at http://busybox.net/lists/busybox/ or even join
Eric Andersena29dec22000-06-22 00:19:33 +000059the mailing list if you are interested.
60
61----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000062
Eric Andersena29dec22000-06-22 00:19:33 +000063Bugs:
Eric Andersen235f66d2000-12-13 18:07:38 +000064
Eric Andersenfbcf06d2004-03-27 09:40:15 +000065If you find bugs, please submit a detailed bug report to the BusyBox mailing
Eric Andersenf1d3ac42003-10-22 10:19:01 +000066list at busybox@mail.busybox.net. A well-written bug report should include a
Eric Andersencb81e642003-07-14 21:21:08 +000067transcript of a shell session that demonstrates the bad behavior and enables
Eric Andersenc7bda1c2004-03-15 08:29:22 +000068anyone else to duplicate the bug on their own machine. The following is such
Eric Andersencb81e642003-07-14 21:21:08 +000069an example:
Eric Andersen235f66d2000-12-13 18:07:38 +000070
Eric Andersenf1d3ac42003-10-22 10:19:01 +000071 To: busybox@mail.busybox.net
Eric Andersen235f66d2000-12-13 18:07:38 +000072 From: diligent@testing.linux.org
Eric Andersencb81e642003-07-14 21:21:08 +000073 Subject: /bin/date doesn't work
Eric Andersen235f66d2000-12-13 18:07:38 +000074
Eric Andersenfbcf06d2004-03-27 09:40:15 +000075 Package: BusyBox
Eric Andersencb81e642003-07-14 21:21:08 +000076 Version: 1.00
Eric Andersen235f66d2000-12-13 18:07:38 +000077
Eric Andersenfbcf06d2004-03-27 09:40:15 +000078 When I execute BusyBox 'date' it produces unexpected results.
Eric Andersencb81e642003-07-14 21:21:08 +000079 With GNU date I get the following output:
80
81 $ date
Eric Andersenfbcf06d2004-03-27 09:40:15 +000082 Sat Mar 27 14:19:41 MST 2004
Eric Andersencb81e642003-07-14 21:21:08 +000083
84 But when I use BusyBox date I get this instead:
85
86 $ date
Eric Andersenfbcf06d2004-03-27 09:40:15 +000087 illegal instruction
Eric Andersencb81e642003-07-14 21:21:08 +000088
Eric Andersenfbcf06d2004-03-27 09:40:15 +000089 I am using Debian unstable, kernel version 2.4.25-vrs2 on a Netwinder,
Eric Andersencb81e642003-07-14 21:21:08 +000090 and the latest uClibc from CVS. Thanks for the wonderful program!
91
Eric Andersen235f66d2000-12-13 18:07:38 +000092 -Diligent
93
94Note the careful description and use of examples showing not only what BusyBox
95does, but also a counter example showing what an equivalent GNU app does. Bug
Eric Andersencb81e642003-07-14 21:21:08 +000096reports lacking such detail may never be fixed... Thanks for understanding.
Eric Andersena29dec22000-06-22 00:19:33 +000097
98----------------
Eric Andersen235f66d2000-12-13 18:07:38 +000099
Eric Andersenfbcf06d2004-03-27 09:40:15 +0000100Downloads:
Eric Andersen235f66d2000-12-13 18:07:38 +0000101
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000102Source for the latest released version, as well as daily snapshots, can always
103be downloaded from
Eric Andersenb9c0b992001-12-22 00:37:54 +0000104 http://busybox.net/downloads/
Eric Andersena29dec22000-06-22 00:19:33 +0000105
106----------------
Eric Andersen235f66d2000-12-13 18:07:38 +0000107
Eric Andersena29dec22000-06-22 00:19:33 +0000108CVS:
Eric Andersen235f66d2000-12-13 18:07:38 +0000109
Eric Andersen07309432000-11-29 22:12:19 +0000110BusyBox now has its own publicly browsable CVS tree at:
Eric Andersen2423b122001-12-08 01:56:15 +0000111 http://busybox.net/cgi-bin/cvsweb/busybox/
Eric Andersena29dec22000-06-22 00:19:33 +0000112
113Anonymous CVS access is available. For instructions, check out:
Eric Andersen2423b122001-12-08 01:56:15 +0000114 http://busybox.net/cvs_anon.html
Eric Andersena29dec22000-06-22 00:19:33 +0000115
116For those that are actively contributing there is even CVS write access:
Eric Andersen2423b122001-12-08 01:56:15 +0000117 http://busybox.net/cvs_write.html
Eric Andersena29dec22000-06-22 00:19:33 +0000118
Eric Andersena29dec22000-06-22 00:19:33 +0000119----------------
120
Eric Andersended62591999-11-18 00:19:26 +0000121Please feed suggestions, bug reports, insults, and bribes back to:
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000122 Erik Andersen
Eric Andersenbdfd0d72001-10-24 05:00:29 +0000123 <andersen@codepoet.org>
Eric Andersen84b00921999-12-11 04:16:51 +0000124