LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-27-2013, 08:08 AM   #1
retghy
LQ Newbie
 
Registered: Jul 2011
Posts: 17

Rep: Reputation: Disabled
Using latest kernel on a not so new distro


Hello to all good morning.

I'd like to know if there is any limitation about installing the latest version of linux kernel in for example Debian version 6.0.4 (squeeze)?

Does this affects in any way its stability?

Or is it even possible without upgrading other packages like gnome?

Thank you very much in advanced.
 
Old 05-27-2013, 08:36 AM   #2
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
As I understand it you can run into problems when your versions of libraries or compilers are of older versions than the newer kernel was designed to be compiled with. The kernel itself though ought to be backwards-compatible (but is not 100% guaranteed to be).
I compile my own kernel on Debian and have had no problems, though I am running Sid.
I roughly followed the following with some minor changes*: http://mapopa.blogspot.co.uk/2009/01/compiling-2.html
There may be better guides out there but at least following this one your kernel is installed using dpkg so it is automatically added to grub and it can easily be removed using apt, Synaptic or whatever if you want to.

*(I downloaded https://www.kernel.org/pub/linux/ker...x-3.9.4.tar.xz
Because the above is a tar.xz I issued "tar -Jxvf linux-3.9.4.tar.xz" -- note the upper-case 'J'
I didn't disable Xen
I used "make localmodconfig" before "make menuconfig"
To compile I issued "time fakeroot make-kpkg -j 8 --initrd --append-to-version=-myuser kernel_image kernel_headers" so that I could see how long it took, instruct make to use 8 threads where possible and used my own name for the kernel)
 
1 members found this post helpful.
Old 05-27-2013, 09:47 AM   #3
retghy
LQ Newbie
 
Registered: Jul 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hello, thanks for your reply.

So it is possible to install latest kernels to Debian Squeeze (6.0.4) for example without troubles.

I thought that after certain version newest kernels were not installable.

I got that idea because there is not much on google when you search kernel 3.9 in debian squeeze.

Thank you very much.
 
Old 05-27-2013, 09:55 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 think it should be OK but I am not 100% sure. If it's a production system then I wouldn't do it but if this is a home system you are "playing" with then I'd say it's worth a try.
 
Old 05-27-2013, 10:15 AM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
If you're using Grub and have several linux-images (the one you're using now that works, for example) then you can always install a new version which will appear at the top of the grub menu. You can try out the new kernel and if it doesn't work just reboot select the older kernel from the grub menu. You can then delete that newer kernel that doesn't work and be all the wiser and none the worse.
jdk
 
1 members found this post helpful.
Old 05-27-2013, 10:18 AM   #6
retghy
LQ Newbie
 
Registered: Jul 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
Well, that's the thing, it is a production machine, it's my workstation. I'm using version 3.2 of linux kernel without problem but these debs are found in the official debian backports repository.

I've never compiled a new kernel before but I will follow the instructions found in the link you provided.

Thank you again.
 
Old 06-03-2013, 07:27 AM   #7
retghy
LQ Newbie
 
Registered: Jul 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
I just want to let you all know that I successfully compiled kernel 3.9 in Debian squeeze 6.0.4 following the guide provided by the fellow 273.

Final files:

linux-headers-3.9.4-vanillaice_3.9.4-vanillaice-10.00.Custom_i386.deb
linux-image-3.9.4-vanillaice_3.9.4-vanillaice-10.00.Custom_i386.deb

The only problem I had was with a folder not found Documentation/lguest....

What I did was create a symbolic from tools/lguest, that's where I found that folder.

Thank you all.
 
Old 06-03-2013, 09:17 AM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Glad to hear about your success.
As a courtesy to others you might mark this thread as [Solved] using the Thread Tools menu located just above your first post on this thread.
Thanks,
jdk
 
  


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
free latest distro download jessica_lilly Red Hat 6 11-02-2007 02:37 AM
N00b installation help with latest slackware distro sociopathicsolicitor Slackware 6 08-20-2006 05:35 PM
Latest distro- yet easiest for complete newbie? H4rM Linux - Newbie 4 10-14-2005 08:20 PM
Latest Gentoo distro Voodudejnr Linux - Newbie 4 12-19-2004 04:28 PM
Distro's latest kernels? studpenguin Linux - Newbie 4 04-16-2004 07:44 PM

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

All times are GMT -5. The time now is 08:24 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