Linux2.6 kernel compiled successfully
1) required tools:
Module tool: modutils-2.4.21-23.src.rpm
// Load the module. It does not need to be compiled independently before 2.4.
// Module storage location:/lib/modules/kernel version directory/kernel/Drivers
// Lsmod: view the loaded modules
Source code: linux-2.6.9.tar.gz
// Select the part to be compiled. The latest Kernel 2.6.9 supports NTFS partitions (read-only)
// View the file systems supported by the existing system: CAT/proc/filesystems
// Display the kernel version: uname-R
Unquote: Run CD/lib/modules/'uname-R' as a command'
(3) can be added with Patch: patch-2.6.9.gz
(2) Basic Steps for compiling the kernel
(1) The main compilation command: Make make modules_install make install
(2) Basic installation: Installation module and kernel Installation
Certificate ------------------------------------------------------------------------------------------------------------------------------------------------
Install the 2.6 kernel
1 installation module :( 1) execute RPM command to set modutils-2.4.21-23.src.rpm
Install to/usr/src/RedHat/sources
// Rpm-IVH modutils-2.4.21-23.src.rpm
// The module tool is installed in/usr/src/RedHat/sources by default after the RPM package is installed.
(2)has 2 files in sourciesmodule-init-tools.tar.gz
Modutils-2.4.21.tar.gz
Load module-init-tools.tar.gz
// Tar-xzvf module-init-tools.tar.gz
// Modutils-2.4.21.tar.gz file is not the main to use, do not accept pressure
(3)module-init-tools.tar.gz file, there will be
Module-init-tools-3.0-pre1
(4) enter the module-init-tools-3.0-pre1 folder
// CD module-init-tools-3.0-pre1
(5) Compile in module-init-tools-3.0-pre1
//./Configure -- prefix =/modules and then execute make and
Make install is compiled to this module
// Note:/modules is a self-created folder for future management convenience.
After the compilation module is complete, there will be bin man sbin three folders in the/modules file.
(6) automatically load the Module upon startup. edit/etc/profile
// VI/etc/profile
(7) In the/etc/profile file, add the Path =/modules/bin:/modules/sbin: $ path on the top of the export.
(8) enter the module Folder/modules
Go to sbin and execute the command.
./Generate_modprobe.conf/etc/modprobe. conf
// Note: generate_modprobe.conf has this command in the file sbin.
/Etc/modprobe. conf is input by yourself and is specified
// The above operation is to specify the init
(9) restart the computer, or use source/etc/profile to make the operation effective.
(10)start now compile the internal kernel to press linux-2.6.9.tar.gz to/usr/src
// Tar-xzvf linux-2.6.9.tar.gz-C/usr/src
(11) There is a linux-2.6.9 folder in/usr/src after pressing
(12) make a connection file to the linux-2.6.9
// Create a link file: ln-s linux-2.6.9/Linux
// Create a linked file to facilitate management
(13) Go To The create link file Linux to start compiling the kernel
Run make menuconfig to select the content to be compiled. By default
// Note M: load as a module
*: Directly compile the data into the kernel.
Null: no operation, no compilation
Then execute make
Run modules_install.
Run make install.
The kernel has been compiled.