README 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. Please see the LICENSE file for details on copying and usage.
  2. Please refer to the INSTALL file for instructions on how to build.
  3. What is busybox:
  4. BusyBox combines tiny versions of many common UNIX utilities into a single
  5. small executable. It provides minimalist replacements for most of the
  6. utilities you usually find in bzip2, coreutils, e2fsprogs, file, findutils,
  7. gawk, grep, inetutils, less, modutils, net-tools, procps, sed, shadow,
  8. sysklogd, sysvinit, tar, util-linux, and vim. The utilities in BusyBox
  9. often have fewer options than their full-featured cousins; however, the
  10. options that are included provide the expected functionality and behave
  11. very much like their larger counterparts.
  12. BusyBox has been written with size-optimization and limited resources in
  13. mind, both to produce small binaries and to reduce run-time memory usage.
  14. Busybox is also extremely modular so you can easily include or exclude
  15. commands (or features) at compile time. This makes it easy to customize
  16. embedded systems; to create a working system, just add /dev, /etc, and a
  17. Linux kernel. Busybox (usually together with uClibc) has also been used as
  18. a component of "thin client" desktop systems, live-CD distributions, rescue
  19. disks, installers, and so on.
  20. BusyBox provides a fairly complete POSIX environment for any small system,
  21. both embedded environments and more full featured systems concerned about
  22. space. Busybox is slowly working towards implementing the full Single Unix
  23. Specification V3 (http://www.opengroup.org/onlinepubs/009695399/), but isn't
  24. there yet (and for size reasons will probably support at most UTF-8 for
  25. internationalization). We are also interested in passing the Linux Test
  26. Project (http://ltp.sourceforge.net).
  27. ----------------
  28. Using busybox:
  29. BusyBox is extremely configurable. This allows you to include only the
  30. components and options you need, thereby reducing binary size. Run 'make
  31. config' or 'make menuconfig' to select the functionality that you wish to
  32. enable. (See 'make help' for more commands.)
  33. The behavior of busybox is determined by the name it's called under: as
  34. "cp" it behaves like cp, as "sed" it behaves like sed, and so on. Called
  35. as "busybox" it takes the second argument as the name of the applet to
  36. run (I.E. "./busybox ls -l /proc").
  37. The "standalone shell" mode is an easy way to try out busybox; this is a
  38. command shell that calls the builtin applets without needing them to be
  39. installed in the path. (Note that this requires /proc to be mounted, if
  40. testing from a boot floppy or in a chroot environment.)
  41. The build automatically generates a file "busybox.links", which is used by
  42. 'make install' to create symlinks to the BusyBox binary for all compiled in
  43. commands. This uses the PREFIX environment variable to specify where to
  44. install, and installs hardlinks or symlinks depending on the configuration
  45. preferences. (You can also manually run the install script at
  46. "applets/install.sh").
  47. ----------------
  48. Downloading the current source code:
  49. Source for the latest released version, as well as daily snapshots, can always
  50. be downloaded from
  51. http://busybox.net/downloads/
  52. You can browse the up to the minute source code and change history online.
  53. The "stable" series is at:
  54. http://www.busybox.net/cgi-bin/viewcvs.cgi/branches/busybox_1_00_stable/busybox/
  55. And the development series is at:
  56. http://www.busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/
  57. Anonymous SVN access is available. For instructions, check out:
  58. http://busybox.net/subversion.html
  59. For those that are actively contributing and would like to check files in,
  60. see:
  61. http://busybox.net/developer.html
  62. The developers also have a bug and patch tracking system
  63. (http://bugs.busybox.net) although posting a bug/patch to the mailing list
  64. is generally a faster way of getting it fixed, and the complete archive of
  65. what happened is the subversion changelog.
  66. ----------------
  67. getting help:
  68. when you find you need help, you can check out the busybox mailing list
  69. archives at http://busybox.net/lists/busybox/ or even join
  70. the mailing list if you are interested.
  71. ----------------
  72. bugs:
  73. if you find bugs, please submit a detailed bug report to the busybox mailing
  74. list at busybox@busybox.net. a well-written bug report should include a
  75. transcript of a shell session that demonstrates the bad behavior and enables
  76. anyone else to duplicate the bug on their own machine. the following is such
  77. an example:
  78. to: busybox@busybox.net
  79. from: diligent@testing.linux.org
  80. subject: /bin/date doesn't work
  81. package: busybox
  82. version: 1.00
  83. when i execute busybox 'date' it produces unexpected results.
  84. with gnu date i get the following output:
  85. $ date
  86. fri oct 8 14:19:41 mdt 2004
  87. but when i use busybox date i get this instead:
  88. $ date
  89. illegal instruction
  90. i am using debian unstable, kernel version 2.4.25-vrs2 on a netwinder,
  91. and the latest uclibc from cvs. thanks for the wonderful program!
  92. -diligent
  93. note the careful description and use of examples showing not only what
  94. busybox does, but also a counter example showing what an equivalent app
  95. does (or pointing to the text of a relevant standard). Bug reports lacking
  96. such detail may never be fixed... Thanks for understanding.
  97. ----------------
  98. Portability:
  99. Busybox is developed and tested on Linux 2.4 and 2.6 kernels, compiled
  100. with gcc (the unit-at-a-time optimizations in version 3.4 and later are
  101. worth upgrading to get, but older versions should work), and linked against
  102. uClibc (0.9.27 or greater) or glibc (2.2 or greater). In such an
  103. environment, the full set of busybox features should work, and if
  104. anything doesn't we want to know about it so we can fix it.
  105. There are many other environments out there, in which busybox may build
  106. and run just fine. We just don't test them. Since busybox consists of a
  107. large number of more or less independent applets, portability is a question
  108. of which features work where. Some busybox applets (such as cat and rm) are
  109. highly portable and likely to work just about anywhere, while others (such as
  110. insmod and losetup) require recent Linux kernels with recent C libraries.
  111. Earlier versions of Linux and glibc may or may not work, for any given
  112. configuration. Linux 2.2 or earlier should mostly work (there's still
  113. some support code in things like mount.c) but this is no longer regularly
  114. tested, and inherently won't support certain features (such as long files
  115. and --bind mounts). The same is true for glibc 2.0 and 2.1: expect a higher
  116. testing and debugging burden using such old infrastructure. (The busybox
  117. developers are not very interested in supporting these older versions, but
  118. will probably accept small self-contained patches to fix simple problems.)
  119. Some environments are not recommended. Early versions of uClibc were buggy
  120. and missing many features: upgrade. Linking against libc5 or dietlibc is
  121. not supported and not interesting to the busybox developers. (The first is
  122. obsolete and has no known size or feature advantages over uClibc, the second
  123. has known bugs that its developers have actively refused to fix.) Ancient
  124. Linux kernels (2.0.x and earlier) are similarly uninteresting.
  125. In theory it's possible to use Busybox under other operating systems (such as
  126. MacOS X, Solaris, Cygwin, or the BSD Fork Du Jour). This generally involves
  127. a different kernel and a different C library at the same time. While it
  128. should be possible to port the majority of the code to work in one of
  129. these environments, don't be suprised if it doesn't work out of the box. If
  130. you're into that sort of thing, start small (selecting just a few applets)
  131. and work your way up.
  132. Shaun Jackman has recently (2005) ported busybox to a combination of newlib
  133. and libgloss, and some of his patches have been integrated. This platform
  134. may join glibc/uclibc and Linux as a supported combination with the 1.1
  135. release, but is not supported in 1.0.
  136. Supported hardware:
  137. BusyBox in general will build on any architecture supported by gcc. We
  138. support both 32 and 64 bit platforms, and both big and little endian
  139. systems.
  140. Under 2.4 Linux kernels, kernel module loading was implemented in a
  141. platform-specific manner. Busybox's insmod utility has been reported to
  142. work under ARM, CRIS, H8/300, x86, ia64, x86_64, m68k, MIPS, PowerPC, S390,
  143. SH3/4/5, Sparc, v850e, and x86_64. Anything else probably won't work.
  144. The module loading mechanism for the 2.6 kernel is much more generic, and
  145. we believe 2.6.x kernel module loading support should work on all
  146. architectures supported by the kernel.
  147. ----------------
  148. Please feed suggestions, bug reports, insults, and bribes back to the busybox
  149. maintainer:
  150. Erik Andersen
  151. <andersen@codepoet.org>