The purpose of this type of compilation is mainly to understand the Linux kernel compilation process through compilation, become familiar with the working principle of the kernel, and even try to make some modifications.
Compilation only compiles the source code into a program. It will not replace the current system, nor will it affect the operation of the current system.
There is no essential difference between compiling the kernel and compiling other software. It’s all a process from code to binary. Compiling the kernel is just a little more complicated. After compilation is completed, you can use the new kernel to boot or choose the previous kernel to boot. Generally, there is no need to recompile the kernel, unless you need to customize the kernel, such as cutting the kernel, applying a new patch, or writing a kernel module yourself.
Compiling the kernel may be due to certain needs, such as kernel size requirements and removing some unused parts of the kernel. This scenario is often embedded systems. Or you have modified some part of the kernel code yourself and need to verify the function after compilation.
When compiling the module, some functional modules are compiled into .ko. You can insmod xxx.ko to use the written code functions in the system without recompiling the kernel.
After compiling the kernel, the current kernel will not be replaced. The new compiled kernel is often in a directory similar to the following, and its name is mostly bzImage /usr/src/kernels/3.xx.x-.x86_64/arch/ x86/boot/
Then you can edit the system's grub list to add the latest kernel to use it
No need to compile, install the latest version of the Linux kernel officially built by Ubuntu in 1 minute The new kernel integrates new drivers, such as Intel Core Display:
A system can install multiple kernels, such as startup files, and the new kernel will not overwrite the old kernel:
/boot/vmlinuz-VERSION
/boot/initrd.img-VERSION
During the installation of a new kernel, some kernel modules need to be recompiled, such as VirtualBox:
/lib/modules/`uname -r`/updates/dkms/vboxdrv.ko
If the new kernel does not run properly, you can select the old kernel to start in the GRUB boot process. You can also change back to the original kernel like this:
The purpose of this type of compilation is mainly to understand the Linux kernel compilation process through compilation, become familiar with the working principle of the kernel, and even try to make some modifications.
Compilation only compiles the source code into a program. It will not replace the current system, nor will it affect the operation of the current system.
There is no essential difference between compiling the kernel and compiling other software. It’s all a process from code to binary. Compiling the kernel is just a little more complicated.
After compilation is completed, you can use the new kernel to boot or choose the previous kernel to boot.
Generally, there is no need to recompile the kernel, unless you need to customize the kernel, such as cutting the kernel, applying a new patch, or writing a kernel module yourself.
He changed something and it felt good, so he said... I compiled the Linux kernel
Recommended "In-depth Understanding of the Linux Kernel"
Compiling the kernel may be due to certain needs, such as kernel size requirements and removing some unused parts of the kernel. This scenario is often embedded systems.
Or you have modified some part of the kernel code yourself and need to verify the function after compilation.
When compiling the module, some functional modules are compiled into .ko. You can insmod xxx.ko to use the written code functions in the system without recompiling the kernel.
After compiling the kernel, the current kernel will not be replaced. The new compiled kernel is often in a directory similar to the following, and its name is mostly bzImage
/usr/src/kernels/3.xx.x-.x86_64/arch/ x86/boot/
Then you can edit the system's grub list to add the latest kernel to use it
No need to compile, install the latest version of the Linux kernel officially built by Ubuntu in 1 minute
The new kernel integrates new drivers, such as Intel Core Display:
A system can install multiple kernels, such as startup files, and the new kernel will not overwrite the old kernel:
During the installation of a new kernel, some kernel modules need to be recompiled, such as VirtualBox:
If the new kernel does not run properly, you can select the old kernel to start in the GRUB boot process.
You can also change back to the original kernel like this:
Where VERSION is the original kernel version.