10006. Compile the kernel option

xiaoxiao2021-03-06  93

The second part compiled 2.6 BUILD system is very different from 2.4, which is actually more simple and convenient. The first step we have to enter the source code directory cd /src/linux-2.6.0 make mrprop/linux-2.6.0 make mrproperty Make MenuConfig (Configuration Interface Based on Text Menu) After flashing a few lines, the image is as shown in the upper part of the interface. Instructions for use, use the arrow keys to move between the options, use Enter to enter the next layer menu, the highlights on each option are the keyboard shortcut, using it to quickly reach the menu item you want to set. In parentheses, press Y to compile this project into the kernel, press M to compile as a module, press N to do not choose. press? The help information of this option will be printed, press ESC to return to the upper menu. The basic concept of the GUI tool is also discussed in detail. Later I will mainly use MenuConfig to set up each option, the order of the options is based on it, and the options in other tools are basically corresponding to. Remember to compile the module of the sound card into the kernel, no sound! ! Compile and install the kernel #make #make install Compile and Install Module #Make Modules #Make Modules_Istall (transferred Module Transfer to System Standard Location) After completion, Reboot will find that the startup option will be one more 2.6 Options for the kernel. Introduction to the graphical interface configuration tool in the new core, there are two GUI configuration tools in the new kernel. The past make XConfig is now a configuration tool with the QT library as an interface program, so you have to use it to install the QT library. This package is included in the general distribution disc. The other is make gconfig This is a tool using the GTK library as an interface program. You have to install the GTK library first. These two tools have a large change in the interface in the interface, which is more in line with the usual graphical interface programs. And the traditional console configuration tool MenuConfig has nothing too much. It basically maintains the original look. I don't like the brothers of the flowering gui tools or use this :) In 2.6, I also added a few to debug as debugging The purpose of the purpose, they are AlLyesconfig, allnoconfig, allModConfig respectively indicate that all options are loaded as y, load all options to N, load all options to M. They are not prepared for kernel developers and testers, and our relationship is not big. Make MenuConfig (section) Description The first Code Maturity Level Options (Code maturity option) Press ENTER to enter the option [*] Prompt for development and / or incomplete code / drivers By default, it is selected, which will be Settings in the settings are still developed or have not completed code and drivers. You should choose it, because there are many devices may need to select this option to configure, in fact it is safe. [*] Select Only Drivers Expected To Compile Cleanly Select this option. You will not see some driver options for existence problems, which is also selected by default. If you have a device that doesn't find a driver option, you can remove this, you can find the relevant driver, but it may be BUG. [*] SELECT Only Drivers That Don't Need Compile-Time External Firmware If you don't need to choose it if you do MAP support for some external devices, this is also the default option.

The options of the second item General Setup are as follows [*] Support for Paging Of Anonymous Memory will enable your kernel to support virtual memory, that is, let your computer seem to have more memory space than actual memory. Very large program. It is selected by default. [*] System V IPC provides communication mechanisms for the process, which will enable exchange information between the processes in the system and the ability to maintain synchronization. Some procedures can only be running in the case of choosing Y, so you must choose here. [] BSD Process Accounting Here, the choice of Y will make the kernel to create an account as the user layer (the process notifies the kernel through a special system call), and the kernel will record the relevant information of the process to an account file when the program exits. In the case of the creation time, creator, memory occupation, etc. of the process. If you need Y, Y it :) [*] Sysctl Support This will provide an interface to change some core parameters and variables that can be dynamically, without restarting the system. Opening this option will increase the volume of at least 8kb. If your kernel uses only the production installation and recovery system system, you can not choose to reduce the use of memory. [] Kernel .config support This will compile the kernel's configuration information to the relevant documentation, you can use some tools to extract it to re-build the kernel, generally do not choose it. [] Remove Keernel Features (for Embedded Systems) ---> This option will remove some features from the kernel to reduce the core volume. For desktop users, this is not a good idea, so don't choose it. As in it, I will introduce in the future revenue. The third Loadable Module Support This option is as follows: [*] Enable loadable module support This option allows your kernel support module, what is the module? The module is a small piece of code. After compiling, it can be added to the kernel during the system kernel run, thereby adding some characteristics to the kernel or supports some kind of hardware. Generally, some unusless drives or properties can be compiled into a module to reduce the volume of the kernel. You can use the ModProbe command to load it to the kernel during runtime (it can be removed when you don't need it). Some features are compiled as a module, not often used, especially if the driver that is not required when the system is started, can be compiled into a module, and if it is some driving, the driving, such as the file system, The support of the system bus is not to be compiled, and if the system cannot be started. (Of course, there are some ways to work, I will mention it later) [] module unloading option allows you to uninstall the module that is no longer used, if you don't choose, you will not uninstall any module (some modules can not be uninstalled, No matter whether this option is selected). Don't choose this option to minimize your kernel size [] Module Versioning Support (Experimental) This option will allow you to use the modules compiled in other versions of kernels, but it is not reliable, so we don't choose it [*] Automatic Kernel Module Loading Usually, if our kernel uses some of some tasks to use some of the drivers or features of the module, we must first use the ModProbe command to load it, the kernel can use.

However, if you have selected this option, it is a great feature that you can load the desired module when you need this option. This is a great feature, of course, you want to choose Y :) Fourth Processor Type and Features Subarchitecture Type (PC-compatible) This is a relatively new feature, the main purpose is to make Linux to support a variety of PC standards, and the PC we use is the so-called IBM compatible structure (PC / AT). This option allows you to choose some other architectures. We generally choose PC-Compatible. Processor Family (Pentium-4 / Celeron (P4-Based) / Xeon This doesn't have to say it, what CPU is you choose :) [] Generic X86 Support This option provides the maximum compatibility of the X86 series It is used to support some very few CPUs of the X86 system, which may reduce some system performance. So if your CPU can find this in the list, don't choose this. [] HPET TIMER Support This is also a new feature, HPET is the new INTEL set up to replace the traditional 8254 (PIT) interrupt timer with the RTC timer, full name called high-precision event timer. If you have a newer machine, you will choose it, it is a safe option, even if your hardware doesn't support HPET, it will not cause problems because it automatically uses 8254. [*] Symmetric multi-processing support doesn't have to talk more, if you choose a multiprocessor system, if you use a single CPU system like me or put it out. (Maximum Number Of CPUS (2-255) This is used to allow Linux to support a few CPUs, based on your needs. [*] Preemptible kernel This is a new feature, almost all articles of 2.6 will mention it, this It is a priority kernel. That is to say by some priority priorities, you can perform with some low priority programs, even if these programs are executed under the core state (this is actually not a real first-style core). Thereby reducing the kernel lava, increasing the response of the system. Of course, the kernel in some special points is unacceptable, such as the scheduling program in the kernel itself is not being preemptive, this feature can improve the desktop system, real-time system performance So, still choose. [*] Machine Check Exception If you have problems in your system, such as CPU overheat, the kernel will print related information on the screen to remind you. This feature is required to support. You can view / proc / cpuinfo See if there is a MCE logo, there is a choice. If you are very unfortunate, you will have a problem after you choose it, you can turn off when you start it. [*] Check for non-Fatal Errors ON AMD Athlon / DURON / INTEL PENTIUM 4 Opens this option will check the problem that may exist on your machine. If there is a non-fatal error that will automatically fix and record, this can help you find the problem with the program, Is a good option, of course it can only be used on the CPU in AMD Athlon / DURON / Intel Pentium 4. If you are using one of them, you will choose it. [*] Check for p4 thermal shrottling interrupt. If you Open this option, when the CPU temperature of P4 is too high (which is also the temperature control device of the P4, it will display the relevant information on the screen, and choose it according to your situation.

<> Toshiba Laptop Support This option is for Toshiba notebooks, which can be used to access TOSHIBA system management model, that is, you can set BIOS directly. But pay attention to it only in Toshiba's own BIOS. If you have a Toshiba notebook, but it's a BIOS is phoenix, then this option is still the Liangshan Miller ---- Useless :) <> Dell Laptop Support This is basically the same as the above option, you can do it :) < > / Dev / cpu / microcode - Intel IA32 CPU Microcode Support This option will allow you to update the microcode of the Intel IA32 series processor, of course, you must also choose DEVFS to use it in the file system option. If you translate it as a module you still need to add this line alias char-major-10-184 Microcode Core itself does not have a microcode binary, you can get new information to this URL. <> / Dev / cpu / * / msr - MODEL-SPECIFIC Register Support This option Desktop User is generally not used, it is mainly used in Intel's embedded CPU, and this register also relies on different CPU types. Different, generally can be used to change some of the use of some physical structures of CPUs, but different CPU applications are also very different. <> / Dev / cpu / * / cpuid - CPU Information Support This will create a range of device files in the / DEV / CPU to allow the process to access the specified CPU. Never choose. <> BIOS Enhanced Disk Drive Calls Determine Boot Disk (Experimental) This will open Enhanced Disk Device Services in the BIOS in real mode to determine which disk starts. This is usually safe, but most BIOS providers do not implement this feature. High Memory Support (OFF) If you have a large capacity memory (more than 4G) you want to select it so that the kernel can use this part of the memory. Even if this is a life, this part is always OFF, if you have you. [] Math Emulation If there is no mathematical coprocessor on your CPU, open this option to make the kernel to simulate one to enhance floating point computing power, but slow can. If you are not using an antique CPU (486SX before) This item will never need. [*] MTRR (Memory Type Range Register) Support in the processor of the Intel P6 (PPRO, PII, and updated) There is a memory type range register for controlling the memory range accessed by the processor. Open it typically enhance the display performance of the graphics card, so we must say Y :) Fifth Power Management Options (APM) (Advanced Power Management) [*] Power Management Support If you want your linux Support advanced power management (which is usually the soft offline we say, system sleep, etc.) requires it. [] Software Suspend (Experimental) Select this option You can hang your computer (a bit like XP in XP) After opening this feature, you can use SWSUSP or ShutDown -z to hang your computer.

This system makes your current work (that is, the content in current memory) into your swap partition, use startup parameters when you start start up "Resume = / dev / your swap partition ", The kernel will restore the last work kernel from the mirror icon file, which can greatly improve the start speed of the system. When you don't want to restore the last job, pass the parameters "NoResume" to the kernel. However, your exchange partition will not be used after the system is started, you can use the mkswap command to reformat your swap partition. This feature does not require support for advanced power management. Very good function, I have been useful, everyone will try it :) [] Suspend-to-disk support This option is basically the same as the above features, but more flexible, you can specify a dedicated one by the subsections below. Exchange partitions to save memory mirror icons. () Default Resume Partition combines with the options above to specify partitions that save the mirror. ACPI (Advanced Configuration and Power Interface) Support ---> From here to the configuration interface of ACPI power management, pay attention to the ACPI and APM cannot be used at the same time. If you configure these at the same time, then if you find one when the system is started The ACPI device that works will be closed. ACPI will be loaded: [*] ACPI Support This option should not be said, if you want your system to use ACPI to manage your power, you should choose it, Want to work, you have to install the ACPID daemon in the system. [*] Sleep State (Experimental) Select this option to make your system hang the function, that is, you can temporarily interrupt your work, let your system with a state of low power energy (Sleep State) The system status you at this time will be saved on memory or disk (depending on the depth of the hang), when you need it to return to the normal working status. However, due to the difference between the various systems, this function is not perfect. Only few devices can support this feature perfect, so it is not recommended to use it. <> Ac adapter This is used to support the AC adapter in the mobile system to indicate that the current system is using AC power, which does not require this option for the desktop. <> Battery This option is used to provide the battery status information in the mobile system via / proc / ACPI / Battery. With the same above options, there is no effect on the desktop. <*> Button This option is used to register an event based on the power button, such as Power, Sleep, etc. When you press the button, the event will happen, a daemon will read / proc / ACPI / Event, and execute the user in these events The action defined, for example, let the system shut down. <*> FAN This option provides control support for the system fan, can control the system fan through the program of the user layer (such as opening, closing, reading the current fan's running status, etc., but only a very small number of hardware supports it) . <*> Processor Opens this option will allow your system to handle the ability of the IDIE status, that is, save your processor to save electricity when free. Personally think this option is necessary. <*> Thermal Zone When your system temperature is too high, ACPI can use this option to control your system, adjust the system's working status to protect your CPU, great features must be chosen, otherwise Don't use ACPI.

转载请注明原文地址:https://www.9cbs.com/read-106057.html

New Post(0)