This is a memorandum when compiling the kernel. (Information at 05:00 on 2020) I typed in the following order and compiled it on debian 10.2.0 (x64). Since the restart failed, I am reusing the .config of the current environment.
kernel_compile_memo
sudo apt update
sudo apt install libncurses-dev bison flex libssl-dev
uname -r
cd /usr/src
sudo curl -L -# -O -R -S "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.92.tar.xz"
sudo tar -xavf linux-4.19.92.tar.xz
cd linux-4.19.92/
sudo cp -p /boot/config-4.19.0-6-amd64 .config
sudo sed -i .config -e 's/\(CONFIG_SYSTEM_TRUSTED_KEYS\).*$/\1=""/'
sudo make oldconfig
sudo make -j`nproc` bindeb-pkg
cd ..
ls -l *.deb
sudo dpkg -i linux-headers-4.19.92_4.19.92-1_amd64.deb
sudo dpkg -i linux-libc-dev_4.19.92-1_amd64.deb
sudo dpkg -i linux-image-4.19.92_4.19.92-1_amd64.deb
sudo reboot
kernel_download_memo
sudo curl -L -# -O -R -S "https://git.kernel.org/torvalds/t/linux-5.5-rc4.tar.gz"
sudo curl -L -# -O -R -S "https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.7.tar.xz"
sudo curl -L -# -O -R -S "https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.3.18.tar.xz"
sudo curl -L -# -O -R -S "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.92.tar.xz"
sudo curl -L -# -O -R -S "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.161.tar.xz"
sudo curl -L -# -O -R -S "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.207.tar.xz"
sudo curl -L -# -O -R -S "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.207.tar.xz"
sudo curl -L -# -O -R -S "https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.16.80.tar.xz"
Recommended Posts