Remote Exploit Forums

Go Back   Remote Exploit Forums > Newbie Area


Newbie Area Welcome to the BackTrack Forums! Please check this section and post to it if you are new to BackTrack, the Forums, or both.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-14-2009, 03:50 PM
Ceratog's Avatar
Junior Member
 
Join Date: Oct 2009
Location: In the stream of data
Posts: 5
Send a message via AIM to Ceratog Send a message via Yahoo to Ceratog
Post 2.6.31.6 Kernel Upgrade

Since I am ADD and OCD, I upgraded to the 2.6.31.6 kernel last night and though I have not checked all my apps, everything seems to be in order. I thought I would share the steps I used. Keep in mind that this was done on BT4 (pre) final which is installed on my HDD. The following steps are also unique to the 2.6.31.6 kernel and should be adjusted accordingly for the specific kernel you are building.

The first thing I did was to make sure my distro was current using apt-get.

You can retrieve the latest kernel from kernel.org. Once it is downloaded you need to move/copy it to /usr/src. Then, as root from a shell:

1) cd /usr/src
2) tar xvjf linux-2.6.31.6.tar.bz2
3) cd linux-2.6.31.6
4) zcat /proc/config.gz > .config
5) make menuconfig
(You are on your own with this step in that the kernel for each computer is architecture specific. If you are at a loss here then either learn what to do in this step or don't compile a new kernel. Mistakes in this step may possibly be disastrous. Consider yourself warned.)
6) make
(This may take a fair amount of time.)
7) make modules
8) make modules_install
9) mkinitramfs -o /boot/initrd.img-2.6.31.6 2.6.31.6
10) cp /usr/src/linux-2.6.31.6/arch/x86/boot/bzImage /boot/vmlinuz-2.6.30.5
11) cp /usr/src/linux-2.6.31.6/System.map /boot/System.map-2.6.31.6
12) Edit /boot/grub/menu.lst to boot into the new kernel.
(I merely copied the existing boot entry, pasted it above the old one and modified it to show the new vmlinuz and initrd.img. This left the old boot image in place in case something went terribly wrong with the new kernel.)
13) reboot
14) (from a shell) sudo fix-splash

You should now have a shiny new kernel.

Disclaimer: As I said, I have not yet had the time to run this kernel through the paces. It is NOT customized for BT4 nor Debian and I may very well have broken some of my apps by upgrading. As I also said, I was too ADD/OCD to resist. I trust some of the vets will tell us if and why this upgrade may or may not be a bad idea.

Props to admrt for his post which provided the info I needed to get this done.
__________________
----
chown -R us ./base
----

Last edited by Ceratog; 11-14-2009 at 05:52 PM.
Reply With Quote
  #2 (permalink)  
Old 11-14-2009, 04:23 PM
archangel.amael's Avatar
Moderator
 
Join Date: Nov 2007
Location: behind the wire
Posts: 3,457
Default

Not that there is anything wrong with it, or that it will not work, be forewarned to expect no support from the dev team if you follow this guide and something goes wrong.
__________________
The very existence of flame-throwers proves that some time, somewhere, someone said to themselves, You know, I want to set those people over there on fire, but I'm just not close enough to get the job done.
George Carlin
Reply With Quote
  #3 (permalink)  
Old 11-14-2009, 05:27 PM
pureh@te's Avatar
Jenkem Addict
 
Join Date: Mar 2007
Location: /dev/null
Posts: 5,401
Default

I am so glad that for once the OP added a disclaimer that stuff may break

This actually will work better for bt4-prefinal than it did for slackware so it will probably work ok although ubuntu has a different kernel building procedure. The fact remains though that like the OP said kernel building is specific to machines (If done correctly) so its very hard to give support if you do this.

However once again I applaud the OP for adding the proper warnings and disclaimers to him post.
Reply With Quote
  #4 (permalink)  
Old 11-14-2009, 05:50 PM
Ceratog's Avatar
Junior Member
 
Join Date: Oct 2009
Location: In the stream of data
Posts: 5
Send a message via AIM to Ceratog Send a message via Yahoo to Ceratog
Default

Why thank you, sir!
__________________
----
chown -R us ./base
----
Reply With Quote
Reply

Bookmarks

Tags
2.6.31.6, kernel, upgrade

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:08 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2