In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "openSUSE how to configure the compiled kernel", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "openSUSE how to configure the compiled kernel" this article.
To configure the kernel is to generate a .config file in the source directory that defines the parameters required for kernel compilation. The configuration file directly determines what hardware, functions, and running speed the final kernel supports. Configuring the kernel requires more understanding of the system and various hardware than patching.
Fortunately, after openSUSE installation, the kernel configuration file has been stored by default / boot/config- version number-default, if your system is SUSE Linux 10.1 and has made an official kernel update, then this file is / boot/config-2.6.16.21-0.13-default. We can copy this file to the kernel source directory and modify it to optimize it. Of course, if you are fully sure of your ability to configure the kernel, you don't have to take this step and configure thousands of options manually.
If the source code fails in the middle of compiling according to the original configuration, execute the following two sentences in the source directory to clear the compiled part and the original configuration file respectively:
# make clean#make mrproper
Copy the default configuration to the kernel source directory:
# cd / usr/src/linux- version # cp / boot/config- version number-default .config
To begin configuration, there are several options for graphically configuring the kernel:
# make xconfig#make gconfig#make menuconfig
Some of them need to install the corresponding development packages with a graphical interface, such as xorg-x11-devel, and make xconfig is recommended.
All options in the .config configuration file are automatically loaded, and the graphical configuration interface pops up.
OpenSUSE uses tutorials to optimize configuration of common kernels
There are many kernel settings for all kinds of hardware, and generally speaking, there is no problem with the default configuration of SUSE. If you are compiling a new version of the kernel and adding new hardware support, please turn on the hardware support option manually. Only the most commonly used options for optimizing the kernel are mentioned here, which are recommended for users of daily desktop applications.
Processor type and features-> Processor falimy choose the category to which your CPU belongs
Processor type and features-> Preemption Model Select Preemptible Kernel (Low-Latency Desktop)
Processor type and features-> Machine check support remove the hook in front of AMD if you are an Intel user, or remove the hook in front of Intel if you are an AMD user
Processor type and features-> Memory model if other non-AMD CPU users of Intel/VIA/, remove the hook in front of K8 GART IOMMU support
Processor type and features-> Time Frequency Select 1000Hz
Power management options-> CPU Frequency scaling does not support CPU frequency adjustment of the old CPU directly remove the CPU Frequency scaling hook, and skip the following two
Power management options-> CPU Frequency scaling-> AMD Opteron/Athlon64 PowerNow! Non-AMD CPU users remove the hook before this item
Power management options-> CPU Frequency scaling-> Intel Enhanced SpeedStep non-Intel CPU users remove the hook before this item
OpenSUSE uses tutorials to configure, save and close.
OpenSUSE compiles the kernel using tutorials
After setting up, enter the compilation phase. If the patch and configuration are correct, the following steps will not go wrong, just execute them sequentially and wait for them to be completed. Generally speaking, the third step takes the longest time to compile the module. If something goes wrong, go back to configure kernel cleanup and reconfigure it.
# make bzImage#make modules#make modules_install#make install
These are all the contents of the article "how to configure and compile the kernel in openSUSE". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.