Build a minimal Linuxkernel

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.