centos6.4 kernel upgrade to version 4.9

linux kernel upgrade
[root @ Master ~] # uname -r
2.6.32-431.el6.x86_64

Download the kernel's official website:  http://www.kernel.org 
kernel download the official website:  https://mirrors.edge.kernel.org/pub/linux/kernel/
1. Download Source Package
wget https://www.kernel.org /pub/linux/kernel/v4.x/linux-4.9.122.tar.xz
2. install the upgrade components
yum -Y groupinstall "Development Tools"
yum the install the ncurses-devel Qt -Y-devel hmaccalc zlib-devel binutils-devel libelf-devel-elfutils
3. Source package extracting
the tar xvf Linux-4.9.122.tar.xz
centos6.4 kernel upgrade to version 4.9
[the root @ Master Docker] # CD-Linux 4.9.122
[the root-Linux @ Master 4.9.122] # CP / Boot / config -2.6.32-431.el6.x86_64.
copy the current system configuration file to the file you want to upgrade the kernel, the kernel configuration using the current system to the new kernel update it.
4. Update the kernel and back up the current kernel
[root @ master linux-4.9.122] # sh -c 'yes "" | make oldconfig'
make oldconfig reads the .config file in the current directory, the options not found in the .config file the user is prompted to fill in, and then back up the .config file as .config.old, and generates a new .config file
reference  http: // stackoverflow.com/questions/4178526/what-does-make-oldconfig-do-exactly-linux-kernel-makefile and https://www.linuxidc.com/Linux/2014-01/95511.htm

5. Compile the kernel file
make -j20 bzImage # generate core files
make -j20 modules # compiler module
make -j20 modules_install # compile and install the module
to be compiled in strict accordance with the order
numbers behind -j is the number of threads used to speed up compilation , the general experience is that the number of G memory, you fill in the numbers, for example, 4G of memory, compared with -j4
[root @ Master Linux-4.9.122] # -j20 the make bzImage && && the make -j20 the make -j20 modules modules_install && make install
centos6.4 kernel upgrade to version 4.9
longer

ERROR: modinfo: could not the Find Module SCO
ERROR: modinfo: could not the Find Module L2CAP
ERROR: modinfo: could not the Find Module scsi_tgt
ERROR: modinfo: could not the Find Module ext3
ERROR: modinfo: could not the Find Module JBD
ERROR: modinfo: could the Find Module microcode a not
ERROR: modinfo: could not the Find Module vmware_balloon
ERROR: modinfo: could not the Find Module crc_t10dif
emergence of these error can be ignored
modify the configuration file /etc/grub.conf, set the new kernel boot
the newly installed kernel first position, set default = 0
centos6.4 kernel upgrade to version 4.9

After modifying the configuration file, reboot to restart the machine
[root @ Master ~] # uname -r
4.9.122
[root @ Master ~] # uname -a
Linux master.example.com 4.9.122 # 1 SMP Fri Nov 1 21:23 : 26 CST 2019 x86_64 x86_64 x86_64 GNU / Linux
query sees kernel upgrade to 4.9, you can use the installation docker
Note:
after the middle if for any reason interrupt the installation, cleaning up data compiled above action recompile the kernel upgrade installation
make mrproper # Clear data compiled and installed

Guess you like

Origin blog.51cto.com/7794482/2462466