Compile the new 2.6.17 Linux kernel for IBM ThinkPad T43

I just finished compiling the newest 2.6.17 Linux kernel and I am getting much better performance. In what follows, I will show you how to compile and configure the latest kernel for IBM Thinkpad T43.

Before you begin, you will need to get a kernel
Download the 2.6.17 kernel and it’s performance patch: The 2.6.17 kernel
Latest Kernel Patch

1. Install needed utilities to configure the kernel
sudo apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev
2. Now we are going to move the kernel and unpack it.
sudo cp linux-2.6.16.tar.bz2 /usr/src
3. Now we are going to move to /usr/src
cd /usr/src
4. Now unpack it:
sudo tar -xvjf linux-2.6.17.tar.bz2
5. Rename the folder:
sudo mv linux-2.6.17/ linux-2.6.17ck1
6. Now we are going to remove the link to the linux directory:
sudo rm -rf linux
7. Make a new link to the new kernel:
sudo ln -s /usr/src/linux-2.6.17ck1 linux
8. Move to the Linux directory:
cd /usr/src/linux
9. Make yourself root:
sudo -s -H
10. Apply the performance patch:
bzcat /home/$USER/patch-2.6.17-ck1.bz2| patch -p1
11. Now we are going to import your current kernel configuration:
uname -r
12. Now import it: Make sure to replace the kernel version in this following command from the one from uname -r.
sudo cp /boot/config-2.6.14-ck1 .config
or you can download my .config file,full optmized for IBM T43

13.Configure the kernel:
make xconfig
14. Let’s build the kernel: Make sure that you are in /usr/src/linux with full root access. Make sure that you are. This will build a debian file that you can install.

Now, in terminal do the following:
make-kpkg clean
make-kpkg -initrd –revision=IBM+T43 kernel_image kernel_headers modules_image
Note: You can replace “IBM+T43″ with anything you want.

15. Install the .deb fine in /usr/src. In terminal do
sudo dpkg -i
Now reboot and you will have a much faster system !

16. Setup the HDAPS (IBM Hard Drive Active Protection System)

HDAPS is already included in kernel 2.6.14 and later,but not loaded by default.in terminal do the following:

sudo modprobe hdaps
sudo echo hdaps >> /etc/modules
sudo reboot

the hdaps is working now,if you having problems,check dmesg :

sudo dmesg |grep hdaps
hdaps: IBM ThinkPad T43 detected.
hdaps: initial latch check good (0×01).
hdaps: device successfully initialized.
input: hdaps as /class/input/input3
hdaps: driver successfully loaded.

17.install the monitor for hdaps
download gnome-tilt at https://sourceforge.net/project/showfiles.php?group_id=138242
in terminal do the following:
sh ./configure
make install

and add the tilt to System->Preference->Sessions->Startup Programs。

16. Colorzing the prompt
This step is very simple. And can be endlessly customized if you so feel.
Code:

cp ~/.bashrc ~/.bashrc_bak
gedit ~/.bashrc

Look for the following:
Code:

# set a fancy prompt (non-color, unless we know we “want” color)
case “$TERM” in
xterm-color)
PS1=’${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ‘
;;
*)
PS1=’${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ‘
;;
esac

# Comment in the above and uncomment this below for a color prompt
PS1=’${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ‘

and replace it with:
Code:

# set a fancy prompt (non-color, unless we know we “want” color)
#case “$TERM” in
#xterm-color)
# PS1=’${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ‘
# ;;
#*)
# PS1=’${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ‘
# ;;
#esac

# Comment in the above and uncomment this below for a color prompt
PS1=’${debian_chroot:+($debian_chroot)}\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[00m\]\$ ‘

Related posts:

TAGS: , , , , ,


6 Comments »

Christian On February 5th, 2009 at 8:16 am (#)

Can you please upload your .config or maybee send it as an email to me?

Adam On February 21st, 2007 at 3:40 am (#)

I am also interested in seeing your .config file, but am not finding the link…

konckoff handbags On January 3rd, 2007 at 8:20 pm (#)

konckoff handbags

compile the new 2.6.17 linux kernel for ibm thinkpad t43 : dean …

dance exotic wear wholesale On December 19th, 2006 at 2:11 pm (#)

dance exotic wear wholesale

Compile the new 2.6.17 Linux kernel for IBM ThinkPad T43 : DEAN LEE:/DEV/BLOG

IeriWinner_76 On December 10th, 2006 at 6:47 am (#)

IeriWinner_76

HI! I’ve have similar topic at my blog! Please check it..
Thanks.
[url=http://www.google.com][/url]

http://www.google.com

dhave On December 4th, 2006 at 9:59 pm (#)

Hi, I’d be interested in taking a look at your .config file optimized for a T43. I have a T43 that I’d like to try it on. I couldn’t find a download link on your site, however. Thanks!


Leave a comment


(will not be published)