Compile Linux Kernel 2.6.31.5 on Centos 5.4

[root@server1 ~]# uname -a;date;uptime
Linux server1 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 athlon i386 GNU/Linux
Sat Oct 24 20:51:19 MYT 2009
20:51:19 up 4 min,  2 users,  load average: 0.24, 0.36, 0.16
[root@server1 ~]# cat /etc/redhat-release
CentOS release 5.4 (Final)

Download Kernel file from kernel.org, but it depends on your internet connection.

[root@server1 ~]# cd /usr/src
[root@server1 src]# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.5.tar.bz2
–2009-10-24 20:56:56–  http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.5.tar.bz2
Resolving www.kernel.org… 199.6.1.164, 204.152.191.37, 130.239.17.4, …
Connecting to www.kernel.org|199.6.1.164|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 61448996 (59M) [application/x-bzip2]
Saving to: `linux-2.6.31.5.tar.bz2′

2% [>                                               ] 1,554,891    212K/s  eta 7m 18s

make sure that your system already have gcc.

[root@server1 src]# yum install gcc
Loaded plugins: fastestmirror
Determining fastest mirrors
* addons: centos.maulvi.net
* base: centos.maulvi.net
* extras: centos.maulvi.net
* updates: centos.maulvi.net
addons                                                            |  951 B     00:00
addons/primary                                                 |  201 B     00:00
base                                                               | 2.1 kB     00:00
base/primary_db                                                  | 1.6 MB     00:12
extras                                                             | 1.1 kB     00:00
extras/primary                                                  | 107 kB     00:00
extras                                                              324/324
updates                                                             |  951 B     00:00
updates/primary                                                   |  202 B     00:00
Setting up Install Process
Package gcc-4.1.2-46.el5.i386 already installed and latest version
Nothing to do

Tar the file

[root@server1 src]# tar -xjvf linux-2.6.31.5.tar.bz2

[root@server1 linux-2.6.31.5]#make menuconfig

Red Hat Enterprise Linux 5-2009-10-24-13-23-37

Red Hat Enterprise Linux 5-2009-10-24-13-23-55

Red Hat Enterprise Linux 5-2009-10-24-13-24-44

[root@server1 linux-2.6.31.5]# make

[root@server1 linux-2.6.31.5]# make modules
CHK     include/linux/version.h
CHK     include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL    scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 1019 modules

[root@server1 linux-2.6.31.5]# make modules_install

[root@server1 linux-2.6.31.5]# make install
sh /usr/src/linux-2.6.31.5/arch/x86/boot/install.sh 2.6.31.5 arch/x86/boot/bzImage \
System.map “/boot”

[root@server1 linux-2.6.31.5]# cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.31.5)
root (hd0,0)
kernel /vmlinuz-2.6.31.5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.31.5.img
title CentOS (2.6.18-164.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-164.el5.img
[root@server1 linux-2.6.31.5]#

Then rebooted your system.

By akuadi

76 thoughts on “Compile Linux Kernel 2.6.31.5 on Centos 5.4”
  1. Examining “What Stands out as the What” may in fact make it impossible to make-believe that will Valentino Achak Deng plus the different Dropped Area plus all of the individuals as well as children with dealt with, and also keep have, fates for example her tend not to are present

  2. The very crux of your writing whilst sounding agreeable initially, did not settle properly with me after some time. Somewhere within the sentences you managed to make me a believer but only for a very short while. I still have got a problem with your jumps in assumptions and one would do nicely to help fill in those breaks. In the event that you actually can accomplish that, I could certainly be impressed.

  3. Thank you, I have just been looking for info about this subject for a while and yours is the best I have found out till now. But, what concerning the bottom line? Are you certain in regards to the supply?

  4. My main NYR is to not keep soda in the house. I like drinking water, but if I have soft drinks around then I am much more likely to grab one so I will just try not to keep it in the house in 2011.

  5. You seem to have a abilty for communicating your knowledge consisely and an effective manner.This ability to communicate well will surely serve you and your readers well.

  6. The core of your writing whilst sounding agreeable in the beginning, did not really work well with me personally after some time. Someplace throughout the paragraphs you actually were able to make me a believer unfortunately only for a short while. I however have a problem with your jumps in logic and you might do nicely to fill in all those breaks. When you can accomplish that, I could surely be fascinated.

  7. Are you thinking of purchasing a food processor?  If so, there are a variety of factors to keep in thoughts when you make that purchase.  Choice and price tag are possibly two of the more vital variables that you’ll most very likely fat your determination on, but there are other issues like extra functions, and capability.  The foods processor that you obtain will be applied on a common foundation and can assist you obtain terrific success, but if you don’t purchase the an individual that ideal matches your requires, likelihood are you are not going to use to it’s total capabilities.  

  8. I have not read too many good things about Webfetti – mainly people wanting to remove it from their computers, so I’m looking for alternatives that I do not need to install.. Do you have web-sites where I can copy codes from to change the layout of my blogspot blog? The templates on blogspot are fine to get you started, but I’m ready for a change..

  9. I loved as much as you’ll receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get bought an impatience over that you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly very often inside case you shield this increase.

  10. Lots of thanks for posting this, I’ve been researching this on google. I’ve been lookig at opinions from many persons, rather than an typical web page, that’s why I like blogs so much. Many thanks!

  11. *When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks!

  12. Many thanks for your post. I’d really like to say that the cost of car insurance varies widely from one scheme to another, due to the fact there are so many different facets which bring about the overall cost. Such as, the model and make of the automobile will have a significant bearing on the fee. A reliable old family auto will have a more economical premium than a flashy expensive car.

  13. Thx for your post. I’d like to comment that the expense of car insurance varies widely from one insurance policy to another, given that there are so many different issues which play a role in the overall cost. By way of example, the make and model of the car or truck will have an enormous bearing on the purchase price. A reliable old family car or truck will have an inexpensive premium than just a flashy racecar.

  14. Thanks for the thoughts you have discussed here. Furthermore, I believe usually there are some factors that keep your insurance premium decrease. One is, to think about buying motors that are inside good set of car insurance providers. Cars which are expensive will be more at risk of being snatched. Aside from that insurance is also based on the value of your automobile, so the higher in price it is, then higher this premium you spend.

  15. I do love the way you have framed this difficulty plus it does indeed give us a lot of fodder for thought. Nonetheless, from just what I have observed, I only wish as other feedback pile on that individuals continue to be on issue and don’t start on a soap box associated with some other news of the day. Anyway, thank you for this exceptional point and while I can not agree with the idea in totality, I value the viewpoint.

  16. out having to do with almost all the blogs i have looked over, such as this particular one and not to be off subject – still to actually produce change monetarily a person ought to have faith in them selves more than anything

  17. -PITTMAN: Right, if you are a Catholic, and you believe what the Pope teaches, you know, that any form of birth control is a sin. And you dont want to do that, that

  18. Have you noticed the news has changed its approach recently? What once seemed like a never discussed issue has become more prevelant. Overall though Im looking for a change.

  19. Daniel, yea I can see what you probably did there. I really favored that part, but hehe I am not that harsh like my dad with these things. He at all times tells me crazy stories back within the day and calls me a loser. I suppose its time I transfer out of my dad and mom basement LOL. Aaanyways, what about you? what does your dad think xD Anyway, in my language, there will not be a lot good supply like this.

  20. Thanks for expressing your ideas. A very important factor is that individuals have an alternative between federal student loan along with a private student loan where it is easier to decide on student loan debt consolidation loan than through the federal student loan.

  21. Thanks for the guidelines you have provided here. Another thing I would like to say is that laptop or computer memory specifications generally go up along with other innovations in the technologies. For instance, when new generations of processor chips are introduced to the market, there is usually a matching increase in the dimensions demands of both laptop memory and also hard drive space. This is because the program operated through these cpus will inevitably boost in power to take advantage of the new technologies.

  22. One thing I would like to discuss is that weightloss routine fast can be carried out by the suitable diet and exercise. A person’s size not merely affects appearance, but also the actual quality of life. Self-esteem, despression symptoms, health risks, as well as physical ability are afflicted in fat gain. It is possible to make everything right and at the same time having a gain. If this happens, a medical problem may be the culprit. While an excessive amount of food and not enough exercise are usually to blame, common medical conditions and widespread prescriptions can certainly greatly add to size. Thx for your post right here.

  23. The beauty of these blogging engines and CMS platforms is the want of limitations and easiness of touching that allows developers to sumptuous acceptance and ‘skin’ the position in much a way that with real short one would never react what it is making the site ticktock all without limiting cognition and effectivity.

  24. When I originally commented I clicked the -Notify me when new feedback are added- checkbox and now every time a remark is added I get four emails with the same comment. Is there any approach you’ll be able to remove me from that service? Thanks!

  25. If you’re still on the fence: grab your favorite earphones, head down to a Best Buy and ask to plug them into a Zune then an iPod and see which one sounds better to you, and which interface makes you smile more. Then you’ll know which is right for you.

Leave a Reply

Your email address will not be published. Required fields are marked *