最简单的 x86 嵌入式 Linux 是什么?
我想玩一些嵌入式Linux。我希望它能够在 x86 处理器上运行(首先,它将在我的普通 PC 上运行)。我在网上查看过,但我发现的那些似乎很难设置或缺乏适当的文档。那么,有哪些优秀的嵌入式 x86 兼容 Linux 发行版,它们易于设置,或者有关于如何设置的良好文档?
I want to play around with some embedded linux. I want it to be able to run on an x86 processor (for start, it will be running on my regular PC). I have looked online, but the ones I have found seem hard to setup or lack proper documentation. So what are some good embedded x86 compatible linux distros that are easy to setup or have good documentation on how to get things setup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
BusyBox
BusyBox 被设计为与 Linux 内核一起使用的小型可执行文件,这使得它非常适合与嵌入式设备。它为任何小型或嵌入式系统提供了一个相当完整的环境。
BusyBox
BusyBox is designed to be a small executable for use with the Linux kernel, which makes it ideal for use with embedded devices. It provides a fairly complete environment for any small or embedded system.
“嵌入式Linux”到底是什么意思?这取决于你想在上面运行什么。
例如,您可以使用 OpenWRT,但肯定还有其他可能更适合您的目的。
如果您想构建一些多媒体内容,Moblin 也可能是一个解决方案。
What do you actually mean by "Embedded Linux"? It depends what you want to run on that.
For example you can use OpenWRT, but there are surely others which might better fit your purpose.
If you want to build some multimedia thing, Moblin might be a solution as well.
您可能想查看Beagle Board。
它不是 x86,而是体面的开发人员社区,它将提供如何构建和运行嵌入式 Linux 的好主意。(即闪存文件系统,有些有限的 RAM...)而且它真的很便宜!
我还可以推荐这两本书:
构建嵌入式Linux系统和
嵌入式 Linux 入门
You might want to look at the Beagle Board.
It's not x86, but decent community of developers, and it will give a good idea how to build and run embedded Linux.(i.e. flash file system, somewhat limited RAM...) and its real cheap!
I can also recommend these two books:
Building Embedded Linux Systems and
Embedded Linux Primer
我首先看一下 busybox 附带的 buildroot 工具的输出。
您建议您想要制作自己的 Linux 发行版,这很好,但您确实需要首先知道如何使用现有发行版。我假设您完全了解 Linux 的基本启动和工作原理。您需要
我强烈建议使用模拟器(例如 vmware)来测试它,它可以大大减少周转时间。开发系统需要有相当大的磁盘空间,因为您可能需要编译上面列表中的所有内容,可能还需要一些其他工具(例如 gcc 和 C 库),这些工具都不小。您的构建盒可能需要运行适当的 Linux 发行版。
我已经做到了这一点,它很有趣,但有时令人沮丧(调试本身就是一项任务)
快乐黑客:)
I'd start by having a look at the output of the buildroot tool which comes with busybox.
You are suggesting that you want to make your own Linux distribution, this is fine but you really need to know how to use an existing one first. I am assuming you understand fully how Linux boots and works on a basic level. You'll need
I'd strongly recommend using an emulator (such as vmware) to test this, it reduces turnaround time a lot. A development system will need to have rather a lot of disc space, as you'll probably need to compile everything in the above list, and possibly some other tools as well (such as gcc and C library) which aren't small. Your build box will probably need to be running a proper Linux distribution.
I have done this and it's good fun, but frustrating at times (debugging can be a mission in itself)
Happy hacking :)
Busybox + LFS、Gentoo、Arch 都很好地完成了这项工作
首先,你需要在开发计算机上的 chroot 监狱中编译你的东西,最后你不需要编译,但你需要镜像/保留你自己的存储库,因为你可以'不能从官方 arch 存储库获取旧包。
Busybox + LFS, Gentoo, Arch all do the job well
First to you'd compile your stuff in a chroot jail on dev computer, last you don't need to compile but you need to mirror/keep your own repository because you can't get old packages from official arch repositories.
我建议使用 debian
I suggest debian
由于“嵌入式”的定义因交谈对象的不同而有所不同,因此嵌入式 Linux 发行版的定义也会有所不同。
正如其他人所说,您可以使用发行版构建工具包,例如:
您还可以使用任何“标准”Linux 发行版,这通常可以针对嵌入式环境进行定制。它们的优点是在正常环境中经过严格的测试。因此,您可以选择以下任何一个:
最后,您还可以从源代码完全构建自己的。在这种情况下, BusyBox 可能会有所帮助,因为它提供了很多功能和通用应用程序。为了帮助您解决这个问题,有一个很好的 3 部分系列:
使用 Busybox 构建微型 Linux 系统
(第 1 部分、第 2 部分 和 第 3 部分)Since the definition of "embedded" vary depending on who you talk to, what is considered an embedded Linux distribution will also vary.
As other have said, you can go with distribution building tool kit, like :
You can also use any "standard" Linux distribution, which can often be customized for an embedded environment. They have the advantage of being heavily tested in their normal environment. So you can choose any of :
Finally, you can also build your own completely, from source. In that case, BusyBox will probably be helpful since it provide a lot of functionalities and common application. To help you with that, there is the nice 3 parts series :
Building Tiny Linux Systems with Busybox
(part 1, part 2, and part 3)您可能想查看 OpenEmbedded 项目。它是一个元发行版,这意味着它更像是一个发行版构建工具包,而不是现成的发行版。但使用它可能需要您付出努力。但这同样适用于所有嵌入式解决方案。
You may want to take a look at the OpenEmbedded project. It is a meta-distribution, meaning it's more of a distribution construction kit rather than ready distribution. But using it may take effort on your part. The same applies to all embedded solutions, though.