Building a Linux Kernel 3.2.2 (Stable) on slackware 13.37

Hello all, I wanna share how to build a linux kernel 3.2.2 stable release on slackware 13.37. Purpose of upgrade is fixing bugs from the old kernel version, it also added new driver module, etc.

What’s new on kernel version 3.2.2, see at http://www.kernel.org/pub/linux/kernel/v3.0/ChangeLog-3.2.2

1. Downloading the kernel version

bash-# cd /usr/src
bash-# rm linux
bash-# wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.2.2.tar.bz2

2. Extracting

bash-# tar -jxf linux-3.2.2.tar.bz2
bash-# ln -s linux-3.2.2 linux

3. Configuring

bash-# cd linux
bash-# cp /boot/config .config

using the graphical mode in the configuration selection:

bash-# make xconfig

using the text mode:

bash-# make menuconfig

4. Building the kernel

bash-# make bzImage
bash-# make modules
bash-# make modules_install

for architecture 32 bit:

bash-# cp arch/x86/boot/bzImage /boot/vmlinuz-3.2.2

for 64 bit:

bash-# cp arch/x86_64/boot/bzImage /boot/vmlinuz-3.2.2
bash-# cp System.map /boot/System.map-3.2.2
bash-# rm /boot/System.map
bash-# ln -s /boot/System.map-3.2.2 /boot/System.map

5. Editing lilo config

bash-# vi /etc/lilo.conf

add a new section for the new kernel:

image = /boot/vmlinuz

to be

image = /boot/vmlinuz-3.2.2

and then save.

6. run lilo

bash-# lilo

7. Restart
8. Check the kernel version after reboot

bash-# uname -r
3.2.2

9. Finished, Enjoyed… :D

About these ads
This entry was posted in Linux. Bookmark the permalink.

7 Responses to Building a Linux Kernel 3.2.2 (Stable) on slackware 13.37

  1. noce job. Thank you for this short and full of information tutorial

  2. maniami says:

    hey dude, i’m newbie..
    on step 1
    bash-# rm linux

    on step 3
    bash-# cd linux

    on step 1 folder “linux” to be removed,, but why on step 3 command “cd linux” ??

  3. Ray says:

    Thanks, bro!!

  4. make mrproper before copy .config is important, sometime error happen when make menuconfig or make xconfig. thanks….

  5. linuxlalala says:

    Very good tutorial!!!

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