News and Guides: Slackware-stable Kernel Upgrade


Yesterday, i read an email from [Slackware-security] which said that they found a serious bug inside Slackware-stable release. The team informed by Google® security team on this security bug. I use Slackware Linux since 2003 where in that year is quite hard to find community, especially from where i lived, can give an information when I encountered problems in Linux. In that year, I was using Slackware 9 with kernel 2.4 and I have succeed to upgrade the kernel (not officially) into 2.6 version. Kernel 2.6 was a brand-new interesting things back in the early year of 2K.

Then yesterday after I read the email, I even think about not to respond for the patches. Because I completely forgot about how to upgrade the kernel. But now in 2K9 it is quite easy to find guide about kernel upgrading. Actually I only need two pages from Google® search. Ok now here’s the guide:

1. Download all the kernel packages you need and put them inside one directory, I recommend you to put them inside /usr/src/linux-2.6.27.31 directory. The packages itself including: kernel-generic-smp, kernel-headers, kernel-modules-smp, and kernel-source in order to compile your 3D graphic drivers. Also don’t forget to grab the kernel-mmap_min_addr_4096 package from the FTP site. FYI, this is the one that has been reported as the bug because of the kernel map addressing size.

2. Deploy all of the kernel packages by using command:
#installpkg kernel*
Be careful when you execute command with star (*) wildcard and be sure that all of the packages is served.

3. Install the kernel patch in terms of the map addressing size:
#installpkg kernel_mmap-min-addr-4096.tgz

4. Reconfigure mkinitrd, read about another articles that explains about Linux system init at my blog:
#cd /boot
#mkinitrd -k 2.6.27.31-smp -m ext3 -f ext3 -r /dev/sda2

Wait, what is -m, -f, -r functions for? Refer to the mkinitrd man pages.

5. Modify lilo bootloader configuration by using vi editor:
#vi /etc/lilo.conf
Find the line that starts with:

#Linux bootable partition config begins
image = /boot/vmlinuz-generic-smp-2.6.27.31-smp
initrd = /boot/initrd.gz
root = /dev/sda2
label = Slackware
read-only
#Linux bootable partition config ends

6. Reinstall lilo by running command:
#lilo -v

7. Restart your machine. Wait and see if all of our system init is working normally and not shows you Kernel panic!!! message.

8. Download the new svgalib_helper package, recompile it for this new kernel subversion, then do install.
#installpkg svgalib_helper-1.9.2_2.6.27.31.tgz

9. Reinstall your 3D graphic drivers. It will be better if you have the latest version.

NB. If you find an error related to alsa sound, so it’s need to be reconfigure. Run this command:
#alsaconf
Next:
#alsamixer
Finally:
#alsactl store

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: