110-01 NCU CE6105 Linux Operating System
CE6105 Linux OS | NCU Fu-Hau Hsu
- ubuntu 20.04: kernel version 5.11
- ubuntu 18.04: kernel version 5.4
# Fully update the OS
sudo apt-get update && sudo apt-get upgrade -y
# just for the vm
sudo apt-get install open-vm-tools-desktop -y
# essential packages to compile kernels
sudo apt-get install build-essential libncurses-dev libssl-dev libelf-dev -y
# Clean up the installed packages
sudo apt-get clean && sudo apt-get autoremove
# Download the source code of the Linux kernel
wget -P ~/ https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.252.tar.xz
# Unpack the tarball
tar -xvf ~/linux-4.14.252.tar.xz -C ~/
# configure the kernel
make menuconfig
## 1. use Tab to move between options
## 2. 5-level paging tables
## 3. CONFIG_SYSTEM_TRUSTED_KEYS
# make with parallel processing
## compile the kernel's source code
## prepare the modules
## install the kernel
sudo make ARCH=$(arch) -j$(nproc) && sudo make modules_install ARCH=$(arch) -j$(nproc) && sudo make install ARCH=$(arch) -j$(nproc)
# update the bootloader of the OS with the new kernel
sudo update-grub
# then, boot in recovery mode
./.config
// CONFIG_SYSTEM_TRUSTED_KEYS="debian/canonical-certs.pem"
CONFIG_SYSTEM_TRUSTED_KEYS=""
sudo vi /etc/default/grub
## change below two lines ##
# GRUB_TIMEOUT_STYLE=hidden
# GRUB_TIMEOUT=0
sudo update-grub
console print
This linux kernel as configured requires 5-level paging
This cpu does not support the required "cr4.la57" features.
Unable to boot
Please use a kernel appropiate for your cpu.
system halted
solution
make menuconfig
# GO TO "Processor type and features"
# TURN OFF "Enable 5-level page tables support"
# RUN fsck MANUALLY
fsck -yf /dev/sda{%i}
# Then, exit or reboot.
exit
reboot
plz follow MIT License
within Linux need to follow its License (GPL-2.0)