Make the smallest Linuxkernel-general Linux technology-Linux programming and kernel information. The following is a detailed description. How small can Linux be? Everyone who runs the embedded system regards small as the top priority. In fact, this is wrong. If we plot the system quality and size, it should look like
|
| ----
|
| -----
|
| --------
| ---
| -----------------------
Small is certainly not bad, but not necessarily better. If the system uses 4 MB and 5 MB with no price or performance difference, 4 MB and 5 MB are the same.
How small is there?
How small is Linux? Well, you have such a little Newton spirit. I had to find a way to generate an answer.
First, I must declare that I am not necessarily the least. Do not say that I am deceiving the world. Your core is smaller than me. I have no intention of comparing them. My data is just for your reference. However, I welcome everyone to come up with their own experiences and tell everyone how to make a smaller core.
I am using 2.2.15 paid by manrake. I didn't modify any line of code, and I only got the data by modifying the configuration file.
First, use make xconfig to get all the options that can be removed.
Do not floppy
Do not use SMP or MTRR
Do not networking, SCSI
Remove all block devices, leaving only the old IDE device
Remove all character Devices
Remove all filesystems, leaving only minix
Do not sound support
Believe me, I have removed all the options. After doing so, I got a 188 K core.
Isn't it small enough? OK. In addition, replace-O3 and-O2 in the following two files with-OS.
CODE:./Makefile ./Arch/i386/kernel/Makefile |