减小 Linux 内核映像的大小

ara*_*567 2 linux kernel linux-kernel

我正在开发基于 ARM V7 架构的嵌入式主板,只有 128 MB 闪存,我想在其中安装 Bootloader 映像、Linux 内核映像以及根文件系统,为此我的主要目标是减少启动的大小加载程序和 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.
Run Code Online (Sandbox Code Playgroud)

我想了解所有可能的优化和减小 Linux 内核大小的技术。我要求提供任何参考资料。

Tho*_*oni 6

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