Hello Slackers;
I bought a new notebook (Ivy Bridge Micro-Architecture) and installed Slackware64 14.0 running on long term supported 3.2.29 Linux kernel. After installation, everything was good. A new notebook, a new release and a new kernel... While studying on Slackware in the next hours, OS suddenly freezed. Then, I experienced again the same thing a few more times. After googling the problem, I saw that many people had experienced the same problem on Ivy Bridge Platform using 3.2.x Linux kernel. Upgrading 3.2.x kernel to 3.5.x completely solved the freeze problem for me.
Below, I explained that how 3.5.4 linux kernel simply compiled and installed along side the 3.2.29 Linux kernel on Slackware64 14.0 using "config-huge-3.5.4.x64" kernel configuration file in "/testing/source" directory of the official Slackware tree (or Slackware installation DVD). You can also use one of the other kernel configuration files depending on your choice and os architecture.
For switching to the new kernel 3.5.4, open a terminal emulator and run the following commands correspondingly.
mkdir -p /usr/src
cd /usr/src
su
wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.4.tar.bz2
tar -jxvf linux-3.5.4.tar.bz2
rm linux-3.5.4.tar.bz2
rm linux
ln -s linux-3.5.4 linux
cd linux-3.5.4
Remove any existing kernel configuration file.
make clean
make mrproper
Download the kernel configuration file. (For Slackware 14.0 32-bit, download "../ config-huge-3.5.4")
wget http://mirrors.slackware.com/slackware/slackware64-14.0/testing/source/config-testing-3.5.4/config-huge-3.5.4.x64
mv config-huge-3.5.4.x64 .config
For additional kernel options, configure the kernel source by "make menuconfig" command and save the configuration.
make menuconfig
make all
make modules_install
cp arch/x86/boot/bzImage /boot/vmlinuz-huge-3.5.4
cp System.map /boot/System.map-huge-3.5.4
cp .config /boot/config-huge-3.5.4
cd /boot
rm System.map
ln -s System.map-huge-3.5.4 System.map
nano /etc/lilo.conf
Add following lines, to create your new kernel section, into "/etc/lilo.conf" file above or below the default kernel section by replacing X with your root partition device number and save.
image = /boot/vmlinuz-huge-3.5.4
root = /dev/sdaX
label = 3.5.4
read-only
Finally run "lilo" command and reboot system.
lilo
reboot
After booting into new kernel, you can check your new kernel version by:
Output of "uname -r" command should be "3.5.4".
For further information about kernel compilation, look at here and here.
Take care! |