I need to recompile the kernel with minimum configuration so that after compiling its size stay below 950 KB and it should boot correctly after compilation. I need to compile with minimum possible features just to boot from the kernel. How can I do this?
|
|
940K is a hard target to hit. The kernel can be configured with various options. The special make target On an x86 system here, a Linux 3.0 kernel compiled with |
|||||||||
|
|
To make the kernel really small check lspci -vvv to determine the modules to make it bootable, disable all kernel hacking tree, enable small kernel size and use lzma method to compress the kernel. Eventually disable initramfs it can save some kb. My kernel size is 3,3M big with lzma but with bzip2 3,8M but I don't use small size kernel. Most likely lzma compression isn't available for all kernels. |
||||
|
|
|
A custom-built kernel will likely not run your software measurably faster. And if your laptop is a HP nc6400 (RB515UA) then it came with 1024 MB of memory (ref). So a 950 KB custom kernel would save memory, but your total memory usage would decrease by only a tiny amount (less than 1%). So compiling a custom kernel would not be worth the effort. If you want Ubuntu to run faster on your PC, consider:
What are the slowest operations on your computer? What operations would you most like to speed up? |
|||||
|
