LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 07: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 07:27 AM.
 
Old 04-15-2013, 08:19 AM   #2
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
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, 08: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, 08:53 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 09:54 AM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
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 09:55 AM.
 
Old 04-15-2013, 09:59 AM   #6
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
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, 10:15 AM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 10:26 AM   #8
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
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, 10:45 AM   #9
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
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, 02: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



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 01:06 AM
[SOLVED] How to update Linux Kernel? infoslaw Linux - Newbie 16 02-28-2012 08:50 AM
how to Update a LINUX KERNEL shirazanjum Linux - Enterprise 14 10-22-2007 11:53 AM
Latest Suse "YOU" update....Linux Kernel Update Failed Balarabay1 SUSE / openSUSE 10 06-11-2006 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 PM.

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
Open Source Consulting | Domain Registration