Build A Minimal Linux Kernel
来源:互联网 发布:服装批发软件哪个好 编辑:程序博客网 时间:2024/05/17 09:43
Build-A-Minimal-Linux-Kernel
Leave out the unnecessary kernel module and features to make a minimal kernel as possible as one can
Reason for thus a project
When I am to set up a diskless linux server on my local network, I notice that the linux kernel in general distrubtion is about 4.7M. When the PXE download the kernel for the diskless enveriment, the tftpd speed is only thundreds Kbyte/s, so I immediately realize that if I can build a more minimal kernel, the bootup time of the diskless server maybe decrease a lot. I search which features are not necessory for boot a linux on a network filesystem(NFS), and I get many useful instructions. However, it fails to bootup when I finish the compiling. Unfortunately, I could get no sense which configuration casue the problem. The bootup procedure can give little or even no information.
To do
I write a shell batch with these steps: 1. compare the minimal configuration file(with which, the corresponding kernel cannot bootup) and the normal config file(just from a distrubtion). 2.separate both the two configuration file with same sections, replace each fraction of the normal config file with the 'fatal' one. 3.comiple and test the kernel in QEMU, if it success to boot, try to replace more following that in step2. '-curses' '-std:mon' are some usefull option when testing the kernel with QEMU.
Results
My final successful diskless linux kernel is 2.7M.
For others, some one make up a 744KB kernel. (http://linuxman.blog.ccidnet.com/blog-htm-do-showone-uid-60710-type-blog-itemid-293122.html)
- Build A Minimal Linux Kernel
- Build linux kernel Module
- Build Linux Kernel
- build linux kernel error
- Build Linux Kernel
- build linux kernel
- build linux kernel -- make menuconfig
- Linux kernel source build error
- build linux kernel的错误
- How to build a Linux kernel and flash it to the phone
- Rebuilding A Kernel Module On The Fly(Build a kernel module without rebuilding kernel)
- Kbuild: the Linux Kernel Build System
- kbuild:the linux kernel build system
- Kbuild: the Linux Kernel Build System
- build kernel
- Build kernel
- build kernel
- ZZ:Jem's Guide: How to compile and install a new Linux kernel Configure, build, and install
- arm驱动程序——手动设备节点 (韦东山的视频总结及针对linux-2.6.30.4)
- 稀疏编码(Sparse Coding)的前世今生(二)
- 【设计理念】Android UI
- 屏幕坐标向世界坐标转换
- lucene创建索引,分组查询
- Build A Minimal Linux Kernel
- Cocos2d-x 贝塞尔曲线
- 【女性养生】十大原因让女人老得快
- android反编译
- Java Annotation详解
- webkit内核源代码导读4: CSS之解析
- PROBE函数何时调用
- liferay 编码风格
- Linux下去除windows密码