Basic Linux knowledge: Kernel compilation-Beginner's Guide-general Linux technology-Linux programming and kernel information. For details, refer to the following section. Preface:
In general, it is a little difficult for beginners to compile the kernel. It is also a test for beginners like me. After all, time and energy are limited. I don't have time to read all the documents of the kernel, and I can't fully understand it. If your reality is similar to me and you don't know much about Kernel compilation, or you haven't compiled it. Let's take a look at the article I wrote;
In fact, the most time spent in compiling the kernel is not the compilation process, but the configuration and troubleshooting process. Therefore, we can use the slackware Kernel configuration file to save the time for this process. What is the saving time ?? Do what you want to do. Haha.
Use the Slackware Kernel configuration file to compile your own kernel. You can use this method no matter what release version you use;
Why should I use the slackware Kernel configuration file to compile the kernel suitable for my machine ??
The server Load balancer Kernel configuration files are all ready-made and have been configured. They also run extremely stably in Server Load balancer. It is the best teaching material for novice siblings who do not configure the kernel. In addition, the kernel compiled by the Slackware configuration file is not too large.
In fact, the purpose of writing this article is to allow new users to learn Kernel configuration in the shortest time;
This article is suitable for beginners;
Note: The kernel version must correspond to the configuration Kernel configuration file provided by Slackware. If you do not understand it or your expression is inaccurate, just do what I said;
Practice environment: Fedora core 4.0
++ ++
Body:
++ ++
1. Download the source code of the official current testing kernel;
Address: http://www.slackware.com/getslack/
Find the image from the address above. Generally, the US and Japan are faster;
For example, we get the source code directory of testing kernel linux-2.6.12.3 through the address below;
Ftp://slackware.mirrors.tds.net/pub/...inux-2.6.12.3/
We want to download the linux-2.6.12.3 under the linux-2.6.12.3.tar.bz2 directory, then download the config-2.6.12.3
The download is complete. Let's proceed to the next step;
Ii. Use Slackware's official config-2.6.12.3 file to easily configure your own Kernel configuration file. config;
1. decompress the kernel and perform some basic work;
CODE: bash-3.00 # tar jxvf linux-2.6.12.3.tar.bz2
Bash-3.00 # mv linux-2.6.12.3/usr/src move the unzipped kernel to the/usr/src directory
Bash-3.00 # cd/usr/src
Bash-3.00 # ls-lh
Drwxr-xr-x 3 root 4.0 K August 3 12:49 kernels
Drwxr-xr-x 19 root 4.0 K August 7 16:33 linux-2.6.12.3
Drwxr-xr-x 7 root 4.0 K August 3 12:27 redhat
Bash-3.00 # cd linux-2.6.12.3
Bash-3.00 # pwd
/Usr/src/linux-2.6.12.3 |