Linux kernel version 5.3 released. This version includes many improvements including support for AMD Navi GPU, support for new IPv4 addresses in the 0.0.0.0/8 range, the lightweight hypervisor ACRN for embedded IoT devices and much more.
Linux Kernel 5.3 released
This is release brings many new features and improved support for networking, security, drivers and other new stuff in Linux. Let us see some of the essential new features. From the announcement release note:
So we’ve had a fairly quiet last week, but I think it was good that we ended up having that extra week and the final rc8.
Even if the reason for that extra week was my travel schedule rather than any pending issues, we ended up having a few good fixes come in, including some for some bad btrfs behavior. Yeah, there’s some unnecessary noise in there too (like the speling fixes), but we also had several last-minute reverts for things that caused issues.
One _particularly_ last-minute revert is the top-most commit (ignoringthe version change itself) done just before the release, and while it’s very annoying, it’s perhaps also instructive.
What’s new in Linux kernel 5.3
- Driver support for AMD Navi GPUs.
- Support for Zhaoxin x86 CPUs.
- Better management of PIDs on Linux that solves PID reuse problems.
- Improved power management for Xeon CPUs that supports Intel speed select technology.
- Linux now supports the 0.0.0.0/8 IPv4 range. Please note that it is not declared as standards and followed by other operating systems. But it now a valid IPv4 address range, allowing for 16 million new IPv4 addresses.
- The ACRN hypervisor IoT device. The ACRN created with real-time and safety-criticality in mind, optimized to embedded development.
- Support improved and added for tablets, touch screens, keyboards, and mouses.
- Apple MacBook and MacBook pro keyboard support for Linux desktop users
- File systems have improved for NFS, CIFS, AFS, CODA, OCFS2, Ceph, ext4, Btrfs, and XFS.
- Linux support for measuring the boot command line during kexec
- New support for TCG2 event logs on EFI systems
- Kernel has the ability to filter audit records based on the network address family and more.
How to compile and install Linux kernel 5.3
Download Linux kernel source code:
Type the following unzx command or xz command command to extract it:
unxz -v linux-5.3.tar.xz
xz -d -v linux-5.3.tar.xz
Verify Linux kernel tartball with pgp:
Security of source code is very important. Hence, verify it with the help of gpg command
gpg --verify linux-5.3.tar.sign
If you do not get “BAD signature” output from the “gpg –verify” command, untar/extract the Linux kernel tarball using the tar command, enter:
tar xvf linux-5.3.tar
Next, copy existing config file using the cp command
cp -v /boot/config-$(uname -r) .config
Install the required compilers and other tools for Linux OS
You must have development tools such as GCC compilers and related tools installed to compile the Linux kernel.
Type the following apt command or apt-get command to install the same:
sudo apt-get install build-essential libncurses-dev bison flex libssl-dev libelf-dev
See “Ubuntu Linux Install GNU GCC Compiler and Development Environment” for more info.
Try yum command:
sudo yum group install "Development Tools"
sudo yum groupinstall "Development Tools"
Additional packages too:
sudo yum install ncurses-devel bison flex elfutils-libelf-devel openssl-devel
How to install GCC and development tools on a Fedora Linux
Run the following dnf command:
sudo dnf group install "Development Tools"
sudo dnf install ncurses-devel bison flex elfutils-libelf-devel openssl-devel
Configuring the kernel
Now you can start the kernel configuration by typing the following command in source code directory:
Start compiling and to create a compressed kernel image, enter:
make -j $(nproc)
Install the Linux kernel modules
sudo make modules_install
Install the Linux kernel
So far we have compiled the Linux kernel and installed kernel modules. It is time to install the kernel itself:
sudo make install
Update grub config
You need to modify Grub 2 boot loader configurations. Type the following command at a shell prompt as per your Linux distro:
CentOS/RHEL/Oracle/Scientific and Fedora Linux
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
$ sudo grubby --set-default /boot/vmlinuz-5.3
You can confirm the details with the following commands:
grubby --info=ALL | more
The following commands are optional as make install does everything for your but included here for historical reasons only:
$ sudo update-initramfs -c -k 5.3
$ sudo update-grub
You have compiled a Linux kernel. The process takes some time, however now you have a custom Linux kernel for your system. Let us reboot the Linux system, run:
Verify new Linux kernel version after reboot:
Linux 5.3 x86_64
Now that Linux kernel 5.3 is released we learned about changes including installations. See how to compile and install Linux Kernel 5.2.15 from source code for more info.
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
|Category||List of Unix and Linux commands|
|Firewall||Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04|
|Network Utilities||dig • host • ip • nmap|
|OpenVPN||CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04|
|Package Manager||apk • apt|
|Processes Management||bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time|
|Searching||grep • whereis • which|
|User Information||groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w|
|WireGuard VPN||Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04|