Build A Minimal Linux Kernel
2013-05-29 14:25
288 查看
Build-A-Minimal-Linux-Kernel
Leave out the unnecessary kernel module and features to make a minimal kernel as possible as one canReason
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 realizethat 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, replaceeach 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 linux kernel
- Build linux kernel
- build linux kernel -- make menuconfig
- kbuild:the linux kernel build system
- Kbuild: the Linux Kernel Build System
- Patches for VMware® Workstation 8.0.0 build-471780 for Linux kernel 3.2.0
- How to build a Linux kernel and flash it to the phone
- Howto: Build Linux Kernel Module Against Installed Kernel w/o Full Kernel Source Tree
- Linux kernel source build error
- Build Linux Kernel
- 嵌入式 内核编译总是遇到make: ***/root/build_kernel/linux-2.6.14.1/arch/arm 是目录
- systemtap ERROR: Build-id mismatch: "kernel" vs. "vmlinux" byte 0
- How to Compile Linux Kernel from Source to Build Custom Kernel
- Build linux kernel Module
- Vmware Workstation 10.0.1 build-1379776 patch for Linux kernel 3.13
- Build Linux Kernel
- Howto: Build Linux Kernel Module Against Installed Kernel w/o Full Kernel Source Tree
- linux mint Unable to build kernel module. See log file /tmp/vmware-root/modconfig
- build linux kernel的错误
- Patches for VMware® Workstation 8.0.0 build-471780 for Linux kernel 3.2.0