linux - 减小 Linux 内核镜像的大小

标签 linux linux-kernel kernel

我正在开发基于 ARM V7 架构的嵌入式主板,只有 128 MB 的闪存,我想在其中安装 Bootloader Image、Linux Kernel Image 以及根文件系统,为此我的主要目标是减小尺寸引导加载程序和 Linux 内核镜像,

我做了以下优化以减小内核大小,

     1. Deleted all the printk messages from displaying which reduced some memory,
     2. Turning off Sysfs Support decreased the size of the kernel substantially,
     3. Booting without procfs is one more work around i tried, but many pseudo 
        file systems require it.

我想知道优化和减小 linux 内核大小的所有可能技术。 我要求提供任何引用资料。

最佳答案

与 128 MB 的闪存相比,您的引导加载程序和内核镜像的大小应该相对较小,而您的根文件系统是最大的部分。那么,为什么您专注于减小引导加载程序和内核的大小,而不是关注可能最大的部分:您的根文件系统。

关于linux - 减小 Linux 内核镜像的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27674619/

相关文章:

linux - 触摸板在 Fedora 中无法使用

linux - 我可以保护两个进程之间的内存吗

networking - linux内核中UDP包的路径

linux - 需要快速中断处理程序

linux - 如何直接通过ssh/scp读取文件

c# - 使用 FTP 协议(protocol)列出包含大约 2,000,000 个文件的目录

c - linux/kernel.h 中的 sysinfo 结构

linux - 生成文件使 : Nothing to be done for `default'

linux - 为什么 __GFP_HIGHMEM 标志不能应用于 __get_free_page() 或 kmalloc()

Unix V6源代码