Tuesday, March 10, 2009

Compile Linux kernel "" on CentOS5.2


1. 於/usr/src/kernels/解開2.6.28.7的kernel source (download: www.kernel.org)
2. 將目前的kernel config 從/boot下copy到/usr/src/kernels/
3. 於/usr/src/kernels/執行make menuconfig
-> Add EXT4
-> Remove Bluetooth
-> Remove wireless
4. 執行make bzImage
5. 執行make modules
6. 執行make modules_install
7. 執行make install
8. 檢查/boot/*, /boot/grub/grub.conf
-> 開機選用kernel開機。
2009.3.25 update:
Tested ext3 and ext4 performance on kernel 2.6.29 and result as below:
It looks like ext4 is better than ext3.
Note: To clean HD cache for each test processing by hdparm -f command.


Anonymous said...

I have follow the quick instruction that you mentioned. However, I ran into a failure messege at bootup says something about "Protocol version 5 requires 2.6.17 or above". Similar issue has been identified on bugzilla.redhar.com at https://bugzilla.redhat.com/show_bug.cgi?id=195768.

Would you mind showing me some further direction about how to resolve this issue?

瘋狂帽客 said...

我到是沒遇到此問題,我是在kernel 2.6.18-92.1.18.el5去compile,剛剛查了一下我系統的 autofs是v5.0,所以沒有問題。