index.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>uClibc -- a C library for embedded systems</TITLE>
  5. </HEAD>
  6. <body text="#000000" alink="#660000" link="#660000" bgcolor="#dee2de" vlink="#660000">
  7. <basefont face="lucida, helvetica, arial" size="3">
  8. <CENTER>
  9. <p>
  10. <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=2>
  11. <TR>
  12. <td bgcolor="#000000">
  13. <FONT FACE="lucida, helvetica" COLOR="#ccccc0">
  14. <B>µ&nbsp;C&nbsp;l&nbsp;i&nbsp;b&nbsp;c</B>
  15. </FONT>
  16. </TD>
  17. </TR>
  18. </TABLE>
  19. <p>
  20. <!-- Begin Introduction section -->
  21. <TABLE WIDTH=95% CELLSPACING=1 CELLPADDING=4 BORDER=1>
  22. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  23. <A NAME="intro"> <BIG><B>
  24. uClibc -- a C library for embedded systems
  25. </font>
  26. </A></B></BIG>
  27. </TD></TR>
  28. <TR><TD BGCOLOR="#eeeee0">
  29. <a href="http://www.uclibc.org">uClibc</a> (aka µClibc/pronounced
  30. yew-see-lib-see) is a C library for developing embedded Linux systems.
  31. It is much smaller than the
  32. <a href="http://www.gnu.org/software/libc/libc.html">GNU C Library</a>,
  33. but nearly all applications supported by glibc also work perfectly with
  34. uClibc. Porting applications from glibc to uClibc typically involves
  35. just recompiling the source code. uClibc even supports shared libraries
  36. and threading. It currently runs on <a href="http://kernel.org/">standard Linux</a>
  37. and <a href="http://www.uclinux.org">MMU-less (also known as µClinux)</a>
  38. systems with support for alpha, ARM, i386, i960, h8300, m68k, mips/mipsel,
  39. PowerPC, SH, SPARC, and v850 processors.
  40. <p>
  41. If you are building an embedded Linux system and you find that glibc is
  42. eating up too much space, you should consider using uClibc. If you are
  43. building a huge fileserver with 12 Terabytes of storage, than using
  44. glibc may be a better choice...
  45. <p>
  46. uClibc is maintained by
  47. <a href="http://www.codepoet.org/andersen/erik/erik.html">Erik Andersen</a>
  48. and is licensed under the
  49. <a href="http://www.gnu.org/copyleft/lgpl.html">GNU LIBRARY GENERAL PUBLIC LICENSE</a>
  50. . This license allows you to make closed source commercial applications using
  51. uClibc (Please consider sharing some of the money you make ;-). You do not need
  52. to give away all your source code just because you use uClibc and/or run on Linux.
  53. <p>
  54. <h3>Mailing List Information</h3>
  55. uClibc has a <a href="/lists/uclibc/">mailing list</a>.<br>
  56. To subscribe, go and visit
  57. <a href="http://www.uclibc.org/mailman/listinfo/uclibc">this page</a>.
  58. <p>
  59. <h3>Frequently Asked Questions</h3>
  60. Before asking questions on the uClibc mailing list,
  61. you might want to take a look at the
  62. <a href="FAQ.html">list of Frequently Asked Questions</a>
  63. or
  64. you might want to search the mailing list archives...
  65. <form method="GET" action="http://www.google.com/custom">
  66. <input type="hidden" name="domains" value="uclibc.org">
  67. <input type="hidden" name="sitesearch" value="uclibc.org">
  68. <a href="http://www.google.com"><img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" height="32" width="75" align="middle"></a>&nbsp;<input type="text" name="q" size="31" maxlength="255" value="">&nbsp;<input type="submit" name="sa" value="search the mailing list archives">...
  69. </form>
  70. <h3>Working Applications List</h3>
  71. These days, pretty much everything compiles with uClibc. This
  72. is a <a href="uClibc-apps.html">list of applications</a> that are known
  73. to work just fine with uClibc. Since most applications work just
  74. fine with uClibc, we are especially interested in knowing about any
  75. applications that either <em>do not compile</em> or <em>do not work</em>
  76. properly with uClibc. Submissions are welcome!
  77. <!-- Begin Latest News section -->
  78. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  79. <A NAME="news">
  80. <BIG><B>
  81. Latest News</A>
  82. </B></BIG>
  83. </A>
  84. </TD></TR>
  85. <TR><TD BGCOLOR="#eeeee0">
  86. <ul>
  87. <p>
  88. <li> <b>9 January 2003, uClibc development system released</b>
  89. <br>
  90. CodePoet Consulting (i.e. Erik) has been working hard on <a
  91. href="/cgi-bin/cvsweb/buildroot/">buildroot</a> recently, and is pleased to
  92. offer a full stand-alone uClibc-only development system. This is an ext2
  93. filesystem for i386 containing all the development software you need to
  94. build your own uClibc applications. With bash, awk, make, gcc, g++,
  95. autoconf, automake, ncurses, zlib, openssl, openssh, gdb, strace, valgrind,
  96. busybox, GNU coreutils, and more, this should have pretty much everything
  97. you need to get started building your own applications linked against
  98. uClibc. By using a uClibc only system, you can avoid all the painful
  99. cross-configuration problems that have made using uClibc somewhat painful
  100. in the past. A powerpc and an arm version are in progress. Expect them
  101. to be released shortly....
  102. <p>
  103. The <a href="ftp://ftp.uclibc.org/uClibc/root_fs_0.9.17.pre-i386.bz2/">
  104. uClibc development system is an 18MB bzip2 compressed ext2 filesystem</a>,
  105. so be prepared to wait if you are on a slow link. If you wish to have more
  106. space, you can loop mount it and 'cp -a' the contents to their own
  107. partition, or do what I did... <EM>WARNING, the following can be very
  108. dangerous. Please be sure you know what you are doing before trying this.
  109. I am not responsible if you lose all your important data.</EM>I had a spare
  110. hard drive (in my case /dev/hdg but you'll want to adapt this to your own
  111. needs), so I partitioned it with a single ext2 partition filling the drive
  112. (in my case /dev/hdg1). Then I ran:<PRE>
  113. bzcat root_fs_0.9.17.pre-i386.bz2 | dd of=/dev/hdg1
  114. e2fsck -f /dev/hdg1
  115. resize2fs -p /dev/hdg1</PRE>
  116. which overwrote everything on /dev/hdg with the new uClibc devel system,
  117. and then expanded the filesystem with the uClibc devel system till it
  118. filled the whole drive.
  119. <p>
  120. <p>
  121. <li> <b>8 November 2002, uClibc 0.9.16 Released</b>
  122. <br>
  123. CodePoet Consulting is pleased to announce the immediate availability of
  124. uClibc 0.9.16. This release adds full support (including a native shared
  125. library loader) for the CRIS architecture, contributed by Tobias Anderberg.
  126. Stefan Allius contributed a number of patches to fix the initialization
  127. order for shared library global constructors and destructors as well as a
  128. large number of SuperH fixes and cleanups. uClibc now compiles with
  129. newer versions of gcc (i.e. RedHat 8.0). Thanks to Christian Michon,
  130. uClibc no longer requires perl to compile. Steven J. Hill fixed dlopen for
  131. mips. Several problems with pty and tty handling were fixed. Manuel Novoa
  132. added new support for an /etc/TZ file to globally set the system timezone,
  133. and fixed up a number of remaining wide char issues. Manuel is still hard
  134. at work on bringing full locale support (optional of course) to uClibc.
  135. And of course, this release includes the usual pile of bug fixes. Many thanks
  136. for the large number of patches and fixes that were contributed!
  137. <p>
  138. Erik and Manuel have been working on a
  139. <a href="downloads/Glibc_vs_uClibc_Differences.txt">
  140. document describing some of the differences between uClibc and glibc.</a>
  141. It's not yet 100% complete, and it hasn't been nicely formatted yet. But
  142. it contains a lot of helpful information and is worth a look.
  143. <p>
  144. And finally, the the old uClibc configuration system has been completely
  145. removed (and there was much rejoicing). It was replaced with an entirely
  146. new system based on <a href="http://www.xs4all.nl/~zippel/lc/">LinuxKernelConf</a>,
  147. which has since been included into Linux 2.5.45, so it looks like Erik made
  148. the right choice. Of course, those who have existing build systems using uClibc
  149. will need to make a few changes... We think the change is worth it.
  150. <p>
  151. As usual, the
  152. <a href="http://www.kernel.org/pub/linux/libs/uclibc/Changelog">Changelog</a>
  153. and <a href="http://www.kernel.org/pub/linux/libs/uclibc/uClibc-0.9.16.tar.bz2">source code</a>
  154. for this release are available <a href="http://www.kernel.org/pub/linux/libs/uclibc/">here</a>.
  155. You might want to download uClibc from the closest
  156. <a href="http://kernel.org/mirrors/">kernel.org mirror site</a>.
  157. Just pick the closest mirror site, and then go to
  158. <a href="http://www.kernel.org/pub/linux/libs/uclibc/">
  159. http://www.XX.kernel.org/pub/linux/libs/uclibc/</a>
  160. to download uClibc, where XX is your two letter country code.
  161. <p>
  162. Updated gcc-3.2 and gcc-2.95 toolchains will be released shortly.
  163. <p>
  164. <p>
  165. <li> <b>16 September 2002, gcc-3.2 and gcc-2.95 toolchains released</b>
  166. <br>
  167. CodePoet Consulting (i.e. Erik) has released updated gcc-3.2 and gcc-2.95
  168. uClibc toolchains. These toolchains build real gcc cross compilers (i.e.
  169. not just a wrapper) and create executables linked vs uClibc. The new
  170. gcc-3.2 provides uClibc support with the latest and greatest compiler
  171. available from the gcc team. The gcc-2.95 toolchain has been updated to
  172. the latest version of uClibc and now provides full C++ support, using the
  173. <a href="http://www.stlport.org/">STLport</a> standard C++ library.
  174. <p>
  175. This toolchain should make it easy for anyone to build uClibc based
  176. applications. <a href="http://www.kernel.org/pub/linux/libs/uclibc/toolchain/">
  177. Source code can be downloaded here</a>.
  178. Be aware that much of the needed source code will actually be downloaded on
  179. when you compile the toolchains. To build a toolchain, simply
  180. grab the source, edit the Makefile to select where you would like
  181. the toolchain installed, run 'make', and then go watch TV, eat
  182. dinner, or visit with your friends while it compiles. It takes
  183. about 15 minutes for Erik to compile the gcc-3.2 toolchain (w/C++ support)
  184. on his Athlon XP 1600 (not counting the time it takes to download
  185. source code).
  186. <p>
  187. <p> <li> <b>Old News</b>
  188. <br>
  189. <a href="old-news.html">Click here to read older news</a>.
  190. <p>
  191. </ul>
  192. <!-- Begin Sponsors section -->
  193. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  194. <A NAME="sponsors"><BIG><B>
  195. Sponsors
  196. </A></B></BIG>
  197. </TD></TR>
  198. <tr><td bgcolor="#EEEEE0">
  199. Please visit our sponsors and thank them for their support! They have
  200. provided money, equipment, bandwidth, etc. Next time you need help with a
  201. project, consider these fine companies! Several individuals have also
  202. contributed (If you have contributed and would like your name added here,
  203. just email Erik and let him know).
  204. <ul>
  205. <li><a href="http://opensource.se/">opensource.se</a><br>
  206. Embedded open source consulting in Europe.</li>
  207. <li><a href="http://i-netinnovations.com/">http://i-netinnovations.com/</a><br>
  208. Web hosting (currently hosting busybox.net and uclibc.org)</li>
  209. <li><a href="http://www.codepoet-consulting.com">Codepoet Consulting</a><br>
  210. Custom Linux, embedded Linux, BusyBox, and uClibc development.</li>
  211. </ul>
  212. <table CELLSPACING=6 CELLPADDING=6 BORDER=0><tr>
  213. <td>
  214. Do you like uClibc? Do you need support? Do you need some feature
  215. added? Then why not help out? We are happy to accept donations
  216. (such as bandwidth, mirrors sites, and hardware for the various
  217. architectures). We can also provide support contracts, and implement
  218. funded feature requests. To contribute, you can either click on the
  219. Donate image to donate using PayPal, or you can contact Erik at
  220. <a href="http://codepoet-consulting.com/">CodePoet Consulting</a>
  221. (we have a credit card machine so you can avoid PayPal if you wish).
  222. </td>
  223. <td>
  224. <!-- Begin PayPal Logo -->
  225. <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  226. <input type="hidden" name="cmd" value="_xclick">
  227. <input type="hidden" name="business" value="andersen@codepoet.org">
  228. <input type="hidden" name="item_name" value="Support uClibc">
  229. <input type="hidden" name="image_url" value="https://codepoet-consulting.com/images/codepoet.png">
  230. <input type="hidden" name="no_shipping" value="1">
  231. <input type="image" src="images/donate.png" border="0" name="submit" alt="Make donation using PayPal">
  232. </form>
  233. </td>
  234. <!-- End PayPal Logo -->
  235. </tr>
  236. </table>
  237. <!-- Begin Download section -->
  238. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  239. <A NAME="download"><BIG><B>
  240. Download
  241. </A></B></BIG>
  242. </TD></TR>
  243. <TR><TD BGCOLOR="#eeeee0">
  244. <ul>
  245. <li> Source for the latest release can always be downloaded from
  246. <a href="downloads/">http://www.uclibc.org/downloads</a>
  247. <li> A <a href="downloads/snapshots/">daily snapshot of the source</a> is
  248. available for those wishing to follow uClibc developments, but cannot
  249. or do not wish to use CVS.
  250. <li> uClibc has a publically <a href="/cgi-bin/cvsweb/uClibc/">browsable CVS tree</a>.
  251. <li> <a href="cvs_anon.html">Anonymous CVS access</a> is available to let you track development.
  252. <li> <a href="cvs_write.html">CVS write access</a> is also available for those that are actively
  253. contributing.
  254. </ul>
  255. <!-- Begin Links section -->
  256. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  257. <A NAME="links">
  258. <BIG><B>
  259. Other Open Source C libraries:
  260. </A>
  261. </B></BIG>
  262. </A>
  263. </TD></TR>
  264. <TR><TD BGCOLOR="#eeeee0">
  265. I am currently aware of the following open source C libraries.
  266. <ul>
  267. <li><a href="http://www.gnu.org/software/libc/libc.html">GNU C Library (aka glibc)</a>
  268. <li> <a href="http://www.k9wk.com/cdoc.html">Al's FREE C Runtime Library</a>
  269. <li><a href="http://www.fefe.de/dietlibc/">diet libc </a>
  270. <li>the <a href="http://www.cs.vu.nl/~ast/minix.html">minix</a>
  271. <a href="http://www.cs.vu.nl/cgi-bin/raw/pub/minix/2.0.0/src.tar"
  272. >C library</a>
  273. <li> <a href="http://sources.redhat.com/newlib/">newlib</a>
  274. <li>and there is a
  275. <a href="ftp://sourceware.cygnus.com/pub/ecos/">C library</a>, for
  276. <a href="http://sources.redhat.com/ecos/">eCos</a> as well.
  277. <ul>
  278. <!-- Begin Links section -->
  279. <TR><TD BGCOLOR="#ccccc0" ALIGN=center>
  280. <A NAME="links">
  281. <BIG><B>
  282. Links to other useful stuff
  283. </A>
  284. </B></BIG>
  285. </A>
  286. </TD></TR>
  287. <TR><TD BGCOLOR="#eeeee0">
  288. <ul>
  289. <li> <a href="http://www.uclibc.org/">The uClibc home page</a>
  290. <p>
  291. <li> <a href="/cgi-bin/cvsweb/uClibc/">The uClibc CVS tree</a>
  292. <p>
  293. <li> <a href="http://busybox.net/">BusyBox</a>
  294. <p>
  295. <li> <a href="http://udhcp.busybox.net/">udhcp</a>
  296. <p>
  297. <li> <a href="http://www.uclinux.org/">The uClinux home page</a>
  298. <p>
  299. <li> <a href="http://cvs.uclinux.org/">The uClinux CVS repository</a>
  300. <p>
  301. <li> <a href="http://codepoet-consulting.com/">CodePoet Consulting</a>
  302. <p>
  303. </ul>
  304. <!-- End of Table -->
  305. </TD></TR>
  306. </TABLE>
  307. </P>
  308. <!-- Footer -->
  309. <HR>
  310. <TABLE WIDTH="100%">
  311. <TR>
  312. <TD>
  313. <font size="-1" face="arial, helvetica, sans-serif">
  314. Mail all comments, insults, suggestions and bribes to
  315. <a href="mailto:andersen@codepoet.org">Erik Andersen</a><BR>
  316. </font>
  317. </TD>
  318. <TD>
  319. <a href="http://www.vim.org"><img border=0 width=90 height=36
  320. src="images/written.in.vi.png"
  321. alt="This site created with the vi editor"></a>
  322. </TD>
  323. <TD>
  324. <a href="http://www.gimp.org/"><img border=0 width=90 height=36
  325. src="images/gfx_by_gimp.png" alt="Graphics by GIMP"></a>
  326. </TD>
  327. <TD>
  328. <a href="http://www.linuxtoday.com"><img width=90 height=36
  329. src="images/ltbutton2.png" alt="Linux Today"></a>
  330. </TD>
  331. <TD>
  332. <p><a href="http://slashdot.org"><img width=90 height=36
  333. src="images/sdsmall.png" alt="Slashdot"></a>
  334. </TD>
  335. <TD>
  336. <a href="http://freshmeat.net"><img width=90 height=36
  337. src="images/fm.mini.png" alt="Freshmeat"></a>
  338. </TD>
  339. </TR>
  340. </TABLE>
  341. </CENTER>
  342. </BODY>
  343. </HTML>