LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2013, 08:20 AM   #1
ankit_singh
LQ Newbie
 
Registered: Mar 2013
Posts: 20

Rep: Reputation: Disabled
Update Linux Kernel


Hello,

Currently am having Ubuntu 2.6.32 on my machine and want to update it with kernel 3.8.7.
I have followed below steps:-
1.) Downloaded Kernel 3.8.7 from kernel.org
2.) Compiled it with below steps
a.) make
b.) make modules
c.) make modules_install (after have root access "su")
d.) make install

After above steps i could see initramfs-3.8.7.img, System.map-3.8.7 and vmlinux-3.8.7 files in/boot but still on rebooting am not seeing any option for 3.8.7 boot and its booting still the old kernel (2.6.32)

Please let me know if am missing any thing??
I also noticed that congfig-3.8.7 file is missing (could see config-2.6.32-131.0.15.e16.x86_64, so thought same should be there for 3.8.7 also), is this the reason? If so then how to generate this file.

Regards,
Ankit Singh

Last edited by ankit_singh; 04-15-2013 at 08:27 AM.
 
Old 04-15-2013, 09:19 AM   #2
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 and 18 at present.
Posts: 1,192

Rep: Reputation: 204Reputation: 204Reputation: 204
If you've got all the relevant files in /boot you'll need to run
Code:
update-grub
to let the grub boot loader update itself and include the new kernel in it's boot list.

I'm running Ubuntu 10.4 LTS which is still using the 2.6.32-46 kernel which I keep up to date with the Software Update Manager. It keeps offering me an upgrade to Ubuntu 12.something (The one with Unity desktop which I don't really want yet.), it's running the 3.n kernel.
I'm not sure if there are likely to be any problems jumping from 2.6.32 up to 3.8.7.

Play Bonny!
 
Old 04-15-2013, 09:30 AM   #3
ankit_singh
LQ Newbie
 
Registered: Mar 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
I checked with /boot/grub/menu.lst and it has entry for both the version (2.6.32 and 3.8.7)
 
Old 04-15-2013, 09:53 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,302

Rep: Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720
I don't know how good it is but this shows you how to build .deb kernel packages so you can manage them with dpkg and apt-get. I've used it and it seems do do OK.
http://mapopa.blogspot.co.uk/2009/01/compiling-2.html
 
Old 04-15-2013, 10:54 AM   #5
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,959

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
I checked with /boot/grub/menu.lst and it has entry for both the version (2.6.32 and 3.8.7)
Did you run update-grub? What version of Ubuntu or you using, most current versions of Ubuntu uses grub2 which uses the /boot/grub/grub.cfg verses legacy grub which uses /boot/grub/menu.lst.

Last edited by colorpurple21859; 04-15-2013 at 10:55 AM.
 
Old 04-15-2013, 10:59 AM   #6
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Back to Debian, and only Debian.
Posts: 1,139
Blog Entries: 7

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Follow the instructions on the page 273 linked, but I think you get everything you need if instead of:

Code:
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-vanillaice kernel_image kernel_headers
cd ..
dpkg -i linux-image-3.8.*
this should be sufficient:

Code:
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-vanillaice binary
cd ..
dpkg -i linux-image-3.8.*
the latter will produce all packages you may need.
 
Old 04-15-2013, 11:15 AM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,302

Rep: Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720
Of course you can change vanillaice to something less cheezy if you want also. I tried using localmodconfig rather than menuconfig too but I'm new to this so I'm still finding out the differences.
 
Old 04-15-2013, 11:26 AM   #8
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Back to Debian, and only Debian.
Posts: 1,139
Blog Entries: 7

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
One more suggestion for the original poster. Before compiling for yourself, if a stock kernel works for you, add

Code:
http://cdn.debian.net/ experimental main
to /etc/apt/sources.list and pull the kernel from there. If it doesn't require too many packages to be removed, it may be safer. However, if it will remove packages you know you need or are unsure of, compile yourself.

This is how I get my newer kernels on a Wheezy system, but that's likely newer than yours and the rest of the packages are already up to date.
 
Old 04-15-2013, 11:45 AM   #9
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 and 18 at present.
Posts: 1,192

Rep: Reputation: 204Reputation: 204Reputation: 204
Quote:
but still on rebooting am not seeing any option for 3.8.7
So you haven't run
Code:
update-grub
yet? See colourpurple21859's post above. Ubuntu now uses grub2, you should get the new kernel as an option to boot from.

You could upgrade to Ubuntu 12.4 which I believe has the 3.x kernel then accept any further updates offered rather than installing by hand.

Play Bonny!
 
Old 04-16-2013, 03:33 AM   #10
ankit_singh
LQ Newbie
 
Registered: Mar 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks to all from the help, actually issue was in menu.lst file as it was having 3.8.7 as hidden....!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Kernel Update Arjun Linux - Newbie 3 02-13-2013 02:06 AM
[SOLVED] How to update Linux Kernel? infoslaw Linux - Newbie 16 02-28-2012 09:50 AM
how to Update a LINUX KERNEL shirazanjum Linux - Enterprise 14 10-22-2007 12:53 PM
Latest Suse "YOU" update....Linux Kernel Update Failed Balarabay1 SUSE / openSUSE 10 06-11-2006 10:07 PM


All times are GMT -5. The time now is 08:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration