NanoBSD 是一个可以在内存中进行轻量、小型 FreeBSD 复制的脚本。它在嵌入式系统中很有用。 Linux中有类似NanoBSD的东西吗?特别是像一切在运行时都是只读的
这样的功能,正如它提到的这里。
NanoBSD is a script that makes light, small and in-memory FreeBSD copy. It is useful in embedded systems. Is there something similar to NanoBSD in Linux? Specially a feature like Everything is read-only at run-time
as it mentioned here .
发布评论
评论(3)
许多工具链/系统构建系统构建 Linux 根文件系统,这些文件系统被设计为完全在 ramdisc(rootfs / tmpfs)之外运行。这意味着所有内容都在运行时读/写,但在重新启动后不会持续存在(当然,持久性 FS 可以作为非根 FS 挂载)。
其中最著名的是 Busybox(带或不带 uclibc),它附带各种脚本来构建占用空间非常小的基于 Linux 的嵌入式系统(根 FS 通常只有几 Mb;只需添加一个内核)。 Busybox/Linux 与 GNU/Linux 不同,但它非常相似 - 大多数事情更简单或选项更少;有些功能完全不存在或可以在编译时禁用。
Linux 不像 FreeBSD 那样是一个操作系统,而是一个内核。您可以选择分层 GNU C 库和工具(我认为所有主要的通用发行版都这样做)或其他东西 - 这主要用于较小的系统,包括 uclibc、Android 等。
A lot of toolchain / system build systems build Linux root filesystems which are designed to run completely out of a ramdisc (rootfs / tmpfs). This means that everything is read/write at runtime, but it does not persist across reboots (a persistent FS can of course, be mounted as a non-root FS).
The most well known of these is Busybox (with or without uclibc), which ships with various scripts to build very small-footprint Linux-based embedded systems (root FS is typically a few Mb only; just add a kernel). Busybox/Linux is not the same as GNU/Linux, but it is fairly similar - most things are simpler or have fewer options; some features are entirely absent or can be disabled at compile-time.
Linux is NOT an Operating system like FreeBSD, rather it is a kernel. You can choose to layer either GNU C library and tools (which I think all major general-purpose distributions do) or something else - which is mostly used for smaller systems, including uclibc, Android etc.
Linux 确实有数百个工具链、构建环境和嵌入式发行版,其中一些大小只有几兆字节。许多还支持运行 Linux 的部分或多种不同处理器(i386 及其朋友、ARM、Power 等)。
为了让您开始一些我觉得有趣的项目:OpenWrt 和 OpenEmbedded 和 lpclinux,用于 NXP LPC3xxx ARM 处理器的 Linux,但实际上有数百个。
一些其他资源
Linux from scrap。 此 pdf 提供了有关不同可用版本的一些见解嵌入式 Linux 系统的文件系统。
There are literally hundreds of toolchains, build environments and embedded distros of Linux, some only a couple of megabytes in size. Many also support some or many of the different processors Linux runs on (i386 and friends, ARM, Power, ...).
To get you started a couple of projects I find interesting: OpenWrt and OpenEmbedded, and lpclinux, Linux for NXP LPC3xxx ARM processors but there are really hundreds of them.
Some other resources
A very good source that (also) touches a number of issues specific to embedded systems is Linux from scratch. And this pdf gives some insight in the different available filesystems for an embedded Linux system.
我会看一下 TinyCore-Linux。
这不是真正的 ro,但几乎是相同的概念,我认为还有一个是获取操作系统/二进制部分 ro,如果配置部分是可写的。
i would take a look at TinyCore-Linux.
which isn't really ro but nearly the same Concept and i think there is also a was to get the OS/Binary Part ro were the config part is writeable.