Friday, October 28, 2016

Centos7 Kernel Update


/usr/src
wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.7.tar.xz

tar xjf linux-2.6.18.3.tar.bz2
ln -s linux-2.6.18.3 linux
cd /usr/src/linux


/usr/src/linux:
make clean && make mrproper
cp /boot/config-`uname -r` ./.config
Then we run
make menuconfig



location is /usr/lib/modules/4.7.4-1.el7.elrepo.x86_64
kernel location /root/linux-4.7



Build And Install The Kernel

To build and install the kernel, execute these three commands:
make oldconfig
(make prepare)
make modules
make all
make modules_install
make install



make -j2 bzImage



give descriptive name
mv /boot/vmlinuz /boot/vmlinuz-4.7-custom



Create an initrd file. Again, adjust the filename to match the current kernel version:
1
mkinitrd /boot/initrd-4.7-custom.img /boot/vmlinuz-4.7-custom



make modules
make 
make install
make modules_install

troubleshooting

yum install bc
yum install openssl-devel


No comments:

Post a Comment