Kernel Compilation in Debian from 6.1.0 to 6.5.3
uname -r
6.1.0
Download the linux kernel version
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.5.3.tar.xz
Untar it
tar -xf linux-6.5.3.tar.xz
Install the necessary dependencies
apt-get install build-essential linux-source bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev dwarves bison
Reboot the server
Run the below commands
make mrproper
This removes any configuration files that might have been accidentally left over from previous builds.
Copy the old .config file
make olddefconfig
Run the below command to make the configuration changes in .config file.
make menuconfig
Running make localmodconfig will take your current .config and turn off any unused modules.
make localmodconfig
Build the New Kernel
make -j$(nproc)
Install the kernel modules and the kernel itself:
make modules_install
make install
Reboot the server
shutdown -r now
Run the uname command to know the kernel version
uname -r
6.5.3
No comments:
Post a Comment