A new chapter in system technology development: compiling Linux kernel

Source: Internet
Author: User
Article title: a new chapter in system technology development: compiling the Linux kernel. Linux is a technology channel of the IT lab in China. It includes some basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. when we can basically manipulate this Linux machine, we may wish to perform some operations on it, make it more suitable for your environment. Just like a friend who loves racing cars, you can't help but modify your favorite seat frame.

To change the car, in addition to changing the spring, tires, brakes, exhaust, skirt, tail, etc., if you want the car to truly play the performance, of course, it is inevitable to change the engine. The core compilation below is to change the engine for Linux. In the future, we will also install the X windows such as KDE and GNOME, which are modified by fog lights, seats, steering wheel, and table boards. These changes show the user's personal style one by one, and there are also many products to choose from, just like the change? *? Too many? In addition to omo, you can also select "unlimited ".

What is the core?

I have mentioned the core of shell in the previous sections. if you have read the articles about the job system in "Computer Basics", I believe I do not need to explain it more. Besides, I don't want to repeat it. if you don't know what the core is, you can go to "Computer Basics.

Linux, which we usually talk about, is the core of its stability and strength. In fact, the definition of Linux is only the core, but the system currently used is packaged. besides the core, there are various suites (including different shells) integration. If you have time and are willing to grab it on the Internet, you can find the kits on your own. Some people help you compile the core, set and integrate the suite, write the installation program, provide the suite management tools, and set the environment properly, and then burn it into a CD, that is our common Linux system. We call the release versions of these Linux suits Distribution. for example, the well-known RedHat, Slackware, OpenLinux, TurboLinux, SuSE, Debian, and so on are all distrobutions. No matter how they are packaged, the first thing in the kernel, that is, the core of use, is the same: all are Linux!

How is the core defined? To put it simply, it is the Operating System, which is responsible for processing everything in all systems, including hard drive control, memory management, travel management, file System, network functions, and so on. We can regard the core as an interface operating system between the program and the hardware. we can leave the core and nothing can be used. The compilation of the core will also affect the system performance. even some system functions (such as TCP/IP) must be compiled into the core.

However, before compiling the core, please first ask yourself if this is necessary? Because, in the current Linux Distro, the core force of its pre-installation is to compile everything as much as possible in the form of modules, and these modules can be inserted and removed. This is a very flexible design: when you need a module, it will be loaded into the core; when the birds bow, you can remove the module from the core: The call comes, the lingering go, it's easy! You must know that the performance of the operating system is good or bad and stable. one of the key factors is that the core size is short and concise. A bloated core, yes, can provide all functions, but it also sacrifices the system performance and stability. Therefore, when compiling the core, 'Make the core as small as possible 'is the highest principle.

Just like changing a car: the lighter the car body, the better its controllability. if you are a 100%-inch enthusiast, it is very likely that in your car box, in addition to the improved front seat and anti-rollover bracket, all other items that can be removed are removed, and the device is bare. Ah ~~ If you have a lot of Kitty, Snoppy, and dozens of speakers and CD audios in your car, I can only say that you are a "car lover", and you are definitely not qualified to be a "car racing gender "! If you can design all the surrounding cars into modules, it would be better to: when you need to make a bubble, get all the cool tricks; when you need to run around midnight, remove all the items.

Similarly, if you are a 100% Linux enthusiast, it is absolutely intolerable to find that the core contains something you don't want. However, for beginners, you don't have to worry about having to get started with Linux enthusiasts. First, you need to familiarize yourself with the core functions before you can truly build your own precise core. To be honest, if it is not fashionable, the core pre-installed with Distro is enough. The pre-installed cores are equipped with very adequate modules to meet your needs at any time. Unless you really know that the hardware you want is only supported in the new core, or you know from kernel.org that the old core has a serious vulnerability, you do not need to be so diligent.

Now, if you have 100,001 reasons to compile the core, let's take a tour of the core compilation together!

Select version

Whether your core is captured on the Internet or copied from CDROM, you must first determine whether this version is suitable for you?

In fact, the Linux core version number implies some important information. Let's take a look at your current core version: # uname-r

2.4.2-2

I don't know what you know about these numbers? It doesn't matter if you don't know. let me tell you:

<主版本> . <次版本> . <修订版本> - <副版本>

[1] [2] [3] [4] [5] Next page

Related Article

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.