前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >BusyBox制作文件系统

BusyBox制作文件系统

原创
作者头像
知忆
修改2021-06-15 10:49:57
8110
修改2021-06-15 10:49:57
举报

一、简介

BusyBox 是很多标准Linux® 工具的一个单个可执行实现。BusyBox 包含了一些简单的工具,例如cat 和 echo,还包含了一些更大、更复杂的工具,例如 grep、find、mount 以及 telnet(不过它的选项比传统的版本要少);有些人将 BusyBox 称为 Linux 工具里的瑞士军刀。

BusyBox 的诞生

BusyBox 最初是由 Bruce Perens 在 1996 年为 Debian GNU/Linux 安装盘编写的。其目标是在一张软盘上创建一个可引导的 GNU/Linux 系统,这可以用作安装盘和急救盘。一张软盘可以保存大约 1.4-1.7MB 的内容,因此这里没有多少空间留给 Linux 内核以及相关的用户应用程序使用。

BusyBox 许可证

BusyBox 是按照 GNU General Public License(GPL)许可证发行的。这意味着如果我们在一个项目中使用 BusyBox,就必须遵守这个许可证。我们可以在 BusyBox Web 站点(请参看本文后面 参考资料 一节的内容)上看到这个许可证的内容。BusyBox 团队似乎正忙于监视违反这个许可证的情况。实际上,他们维护了一个 “Hall of Shame” 页面来说明违反者的情况。

BusyBox 揭露了这样一个事实:很多标准 Linux 工具都可以共享很多共同的元素。例如,很多基于文件的工具(比如 grep 和 find)都需要在目录中搜索文件的代码。当这些工具被合并到一个可执行程序中时,它们就可以共享这些相同的元素,这样可以产生更小的可执行程序。实际上,BusyBox 可以将大约 3.5MB的工具包装成大约 200KB 大小。这就为可引导的磁盘和使用 Linux 的嵌入式设备提供了更多功能。我们可以对 2.4 和 2.6 版本的 Linux 内核使用BusyBox。

BusyBox: The Swiss Army Knife of Embedded Linux

BusyBox combines tiny versions of many commonUNIX utilities into a single small executable. It provides replacements formost of the utilities you usually find in GNU fileutils, shellutils, etc. Theutilities in BusyBox generally have fewer options than their full-featured GNUcousins; however, the options that are included provide the expectedfunctionality and behave very much like their GNU counterparts. BusyBoxprovides a fairly complete environment for any small or embedded system.

BusyBox has been written withsize-optimization and limited resources in mind. It is also extremely modularso you can easily include or exclude commands (or features) at compile time.This makes it easy to customize your embedded systems. To create a workingsystem, just add some device nodes in /dev, a few configuration files in /etc,and a Linux kernel.

BusyBoxis maintained by Denys Vlasenko, and licensed under the GNU GENERAL PUBLICLICENSE version 2.

Get BusyBox

Download Source

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档