In some cases, your computer may return an error message stating that it is compiling its own centos kernel. There can be several reasons for this error.
g.When you compile a constructor tagged with a kernel module, such as a device driver that resides on a CentOS system, you end up installing the kernel header files that are practically installed, i.e. the. The C header is included in the Linux kernel name.
g.
Custom execution of an embedded Linux kernel is always useful, especially when you want to enable or remove certain kernel features that are not included in the kernels provided by the standard distribution these days.
In this article, I will explain how to compile with a CentOS 7 distribution and use the current Linux kernel from source (the instructions here also worked well in RHEL and Fedora).
If users don’t want to run these complex builds, follow our simple article where experts explain how to install or upgrade a kernel on CentOS 7 using a 3rd party RPM repository. Required
Install Packages To Compile The Kernel
First, you need to update the software package databases, install the necessary development tools to build the kernel, and install the ncurses directory using the following yum command.
Download the latest 4.17 kernel sources using the wget command from the / usr / src / directory, or you can download the latest kernel by going to kernel.org.
# new cd / usr / src /# wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.17.11.tar.xz
# tar -xvf linux-4.17.11.tar.xz# CD-Linux-4.17.11 /
Configure CentOS 7 In Kernel
The kernel must be configured correctly, with an emphasis on the configuration options required in a CentOS environment g.
I highly recommend that you copy the current kernel configuration ( .config ) from the entire / boot directory to the new linux-4.17.11 kernel directory.
Now run make menuconfig to configure the Linux kernel. Once you complete the following steps, a command window will appear with all the options. Here you can enable or disable positive kernel functionality. If you are not familiar with largeWith these menus, simply press the ESC key to exit the menu.
# cd /usr/src/linux-4.17.11/# customize your menu
Once the kernel formatting options are set, click “Save” to save the configuration interface and exit the menu via the menu.