Downloading Kernel Source Code
- Download the kernel source file to the local PC based on Software Environment, upload it to the /usr/src directory on the server, and decompress the kernel source package.
1 2
# cd /usr/src # tar -zxvf linux-5.15.98.tar.gz
- Rename the directory storing the kernel source code.
1 2
# cd /usr/src # mv linux-5.15.98 linux-kernel-5.15.98
- Suppress the local version number.
1 2
# cd /usr/src/linux-kernel-5.15.98 # touch .scmversion
Parent topic: Compiling the Kernel and ko Module