How to update the Linux kernel-general Linux technology-Linux programming and kernel information. Today, I downloaded a 2.4.18 kernel from the Internet based on the kernel recompilation content in "Guide to learn Linux kernel while working" written by Li shanping, the host is originally installed with the 2.4.20 kernel.
1. decompress the kernel source code package under/usr/local/src.
2. Use make mrproper to clear all configuration files in the directory and intermediate files generated when the previous core is generated;
3. Use make menuconfig to configure the kernel (because it is only an experiment, use its default configuration );
4. Use make dep to check the dependency and integrity of source code files;
5. Use make clean to clear the target file and make sure all the relevant files are in the latest version;
6. Use make bzImage to generate a kernel image file (stored in/usr/local/src/linux/arch/i386/boot );
7. Copy the image file bzImage to the/boot directory;
8. Compile modules through make modules;
9. Install the module to the standard Module Directory through make modules_install;
10. Modify the Startup File according to the system startup method (lilo or grub). My file is grub, so find the File menu under/boot/grub. in the lst file, modify the content as follows: