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 .
NanoBSD是一个脚本,可以制作轻量级,小型和内存中的FreeBSD副本。它在嵌入式系统中很有用。在Linux中有类似于NanoBSD的东西吗?特别像Everything这样的功能在运行时是只读的,如此处所述。
3 个解决方案
#1
5
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).
许多工具链/系统构建系统构建Linux根文件系统,这些系统设计为完全由ramdisc(rootfs / tmpfs)运行。这意味着一切都在运行时读/写,但它不会在重新启动后持续存在(持久FS当然可以作为非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.
其中最着名的是Busybox(有或没有uclibc),它附带了各种脚本来构建非常小的基于Linux的嵌入式系统(根FS通常只有几个Mb;只需添加一个内核)。 Busybox / Linux与GNU / Linux不同,但它非常相似 - 大多数东西更简单或选项更少;某些功能完全不存在或者可以在编译时禁用。
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不是像FreeBSD那样的操作系统,而是一个内核。您可以选择将GNU C库和工具(我认为所有主要的通用发行版都可以)或其他东西分层 - 这主要用于较小的系统,包括uclibc,Android等。
#2
5
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, ...).
Linux上有数百个工具链,构建环境和嵌入式发行版,有些只有几兆字节。许多还支持Linux运行的一些或许多不同处理器(i386和朋友,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.
为了帮助您开始我感兴趣的几个项目:OpenWrt和OpenEmbedded,以及用于NXP LPC3xxx ARM处理器的lpclinux,Linux,但实际上有数百个。
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.
一个非常好的来源(也)涉及嵌入式系统特有的一些问题,是Linux从头开始。此pdf为嵌入式Linux系统的不同可用文件系统提供了一些见解。
#3
1
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.
我会看看TinyCore-Linux。这不是真正的ro但几乎相同的概念,我认为还有一个是获得OS /二进制部分ro的配置部分是可写的。
#1
5
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).
许多工具链/系统构建系统构建Linux根文件系统,这些系统设计为完全由ramdisc(rootfs / tmpfs)运行。这意味着一切都在运行时读/写,但它不会在重新启动后持续存在(持久FS当然可以作为非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.
其中最着名的是Busybox(有或没有uclibc),它附带了各种脚本来构建非常小的基于Linux的嵌入式系统(根FS通常只有几个Mb;只需添加一个内核)。 Busybox / Linux与GNU / Linux不同,但它非常相似 - 大多数东西更简单或选项更少;某些功能完全不存在或者可以在编译时禁用。
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不是像FreeBSD那样的操作系统,而是一个内核。您可以选择将GNU C库和工具(我认为所有主要的通用发行版都可以)或其他东西分层 - 这主要用于较小的系统,包括uclibc,Android等。
#2
5
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, ...).
Linux上有数百个工具链,构建环境和嵌入式发行版,有些只有几兆字节。许多还支持Linux运行的一些或许多不同处理器(i386和朋友,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.
为了帮助您开始我感兴趣的几个项目:OpenWrt和OpenEmbedded,以及用于NXP LPC3xxx ARM处理器的lpclinux,Linux,但实际上有数百个。
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.
一个非常好的来源(也)涉及嵌入式系统特有的一些问题,是Linux从头开始。此pdf为嵌入式Linux系统的不同可用文件系统提供了一些见解。
#3
1
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.
我会看看TinyCore-Linux。这不是真正的ro但几乎相同的概念,我认为还有一个是获得OS /二进制部分ro的配置部分是可写的。