Compiling the Linux Kernel

  • Due to work reasons, I need to check the source code of the current Ubuntu system kernel, but there is no source code in the current system, so I manually compile the kernel, so that I can check the kernel code output corresponding to syslog. The following is only recorded, not too detailed, according to the steps posted in these blogs can be successful.
    • 1. Download the headers installation file of the target version and install it with DPKG
    • 2. Go to Kernel.org to download tar and select Source Code to download it
    • 3. The compilation
    • 4. Other

Due to work reasons, I need to check the source code of the current Ubuntu system kernel, but there is no source code in the current system, so I manually compile the kernel, so that I can check the kernel code output corresponding to syslog. The following is only recorded, not too detailed, according to the steps posted in these blogs can be successful.

1. Download the headers installation file of the target version and install it with DPKG

How to install Linux kernel 5.4 blog.csdn.net/weixin_4322…

Ubuntu how to download the Linux kernel source blog.csdn.net/weixin_4204…

2. Go to Kernel.org to download tar and select Source Code to download it

3. The compilation

The Linux kernel compilation blog.csdn.net/ibless/arti…

Final summary version of the Linux kernel compilation blog.csdn.net/weibo123012…

How to compile install Linux kernel www.cnblogs.com/harrypotter…

Solve WARNING: compile the kernel Section mismatch (es) blog.csdn.net/flfihpv259/…

4. Other

Delete the old Ubuntu kernel blog.csdn.net/weixin_3066…