LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-11-2013, 05:18 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
How do you deal with new hardware and an old kernel?


Hello

We are considering standardising on Debian but are concerned about Debian stable's support for new hardware toward the end of the release cycle.

AIUI (please correct if wrong):
  1. It is the kernel (Linux itself) that is mostly responsible for supporting hardware.
  2. Debian stable's kernel is not upgraded prior to the next stable release except for security fixes.
  3. The last few Debian release cycles have been ~1.5 to ~2 years.
We install on new laptops and newly built PCs so we do need to support recently released hardware.

If my understanding is correct and this is an issue, how practicable is it to run a Debian stable release with a later kernel? Are compatibility issues likely? Does it make new installations significantly more complex?
 
Old 10-11-2013, 09:03 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
1. Correct
2. Correct
3. Correct

Solution: Use the latest kernel from the backports repository.
 
1 members found this post helpful.
Old 10-11-2013, 08:46 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Thanks TobiSGD that's clear and helpful

Using your answer for search terms, I found pages that answered the compatibility and installation complexity questions:
  • "Backports cannot be tested as extensively as Debian stable, and backports are provided on an as-is basis, with risk of incompatibilities with other components in Debian stable. Use with care!" (http://backports.debian.org/)
  • The procedure is to install the as-released kernel and then upgrade it (would have been nice to put the later kernel into the installation .iso so installation itself was a one-step process).
 
Old 10-13-2013, 05:42 AM   #4
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
While most hardware suppoort ends up in the kernel, other stuff (e.g. alsa, xorg) can often support hardware the kernel doesnt.

Another option over backporting a kernel is to use the liquorix kernel

http://liquorix.net/
 
1 members found this post helpful.
Old 10-13-2013, 11:15 AM   #5
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Alternatively, installing a freshly baked kernel from the kernel.org guys is a very effective way of dealing with the "old kernel" issue Debian has. Personally I always install a new kernel, as to enable the installation of the nVidia drivers (who need the source of the running kernel installed) Currently I'm running "old-stable" with a 3.8 kernel.
 
1 members found this post helpful.
Old 10-13-2013, 09:35 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Thanks cascade9

From the linked page "Liquorix is a distro kernel replacement ... for desktop, multimedia, and gaming ..." so may not be the best choice for servers. Are there advantages over backport or kernel.org kernels to justify using one kernel for personal computers and another for servers ... ?

Thanks Dutch Master

That has a nice direct simplicity. What are the pros and cons compared with Liquorix or backport kernels? AFAIK Debian developers modify the upstream kernel source for Debian use; they must believe there are benefits in doing so or they wouldn't bother.

Even Slackware's Pat, renowned for making only essential changes to upstream, say this about the kernel: "I do not patch the official kernel sources, but it's not exactly a virgin either" (reference: http://ftp.isr.ist.utl.pt/pub/slackw...14.0/source/k/).

Last edited by catkin; 10-13-2013 at 09:39 PM. Reason: Added reference
 
Old 10-14-2013, 12:19 AM   #7
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Installing from source always works. You get to choose the options which the kernel will be build with and you have the latest hardware support at your disposal. But it also requires manually upgrading your system to a newer kernel and manually remove the old one. When you upgrade the kernel this way, any kernel dependent modules (like video drivers or Virtualbox stuff) needs manual intervention (i.e. a full recompile and build) to conform to the new kernel. DKMS may help, but may not work faultlessly every time. And most importantly: installing a new kernel from source circumvents the package manager, so it has no longer full control nor a complete overview of the installed software. However: you can, allegedly, create a kernel package containing the new kernel so the package manager has a way of controlling it, but I never got it to work. Having all the options also means you need to have at least a basic idea of what they do. Fortunately, the supplied default options are pretty d8rn good for a box-standard kernel. You'd only need to dive into the specific section your specialist hardware drivers resides to enable them and keep the rest at their default values.

There was a good tutorial by DigitalHermit, unfortunately that has now vanished. Besides, it's outdated too, dealing with 2.4 and early 2.6 kernels. I'm sure you can find others
 
1 members found this post helpful.
Old 10-14-2013, 04:00 AM   #8
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Quote:
Originally Posted by catkin View Post
From the linked page "Liquorix is a distro kernel replacement ... for desktop, multimedia, and gaming ..." so may not be the best choice for servers. Are there advantages over backport or kernel.org kernels to justify using one kernel for personal computers and another for servers ... ?
The debian kernel is pretty much configured for servers. The liquorix kernel is meant to be low latency and optimised more for desktops. Its also got some 'out of tree' stuff-

Quote:
Compared to the mainline Linux kernel, the Liquorix 3.2 kernel includes out-of-tree patches like the BFS scheduler.
http://www.phoronix.com/scan.php?pag...uorix_32&num=1

If you just want a newer kernel for hardware support on new laptops/desktops, it might be just what you are after.

I'd probably backport a kernel if you have a server that has new enough hardware that it isnt recoginsed by the stock debian 'stable' kernel.
 
1 members found this post helpful.
Old 10-15-2013, 10:18 PM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Thanks for the further information Dutch Master and cascade9
 
Old 10-16-2013, 06:24 AM   #10
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
The backports kernel is a good option, but with these kernels you're relying on it being maintained and the maintainer not just skipping on to a new release. 3.10.x in backports, which is a longterm kernel, should now be safe however and should track 3.10.x in testing.

You can quite easily build a newer kernel. I would not recommend Liquorix, simply because you will be running on laptop/desktop computers and servers.

Debian's kernel config is a compromise between desktops and servers, so it's likely to be your best option to avoid maintaining two different kernel types. I would suggest getting the kernel source for 3.10.x from testing or upstream and building a newer kernel against that. Do not just install a kernel binary package from testing/unstable.

If you build from the debianised kernel source it's pretty much just a case of building the kernel "the debian way" with no config changes and installing the resulting deb packages.

If you build from upstream, you'll want to copy over 3.2's config and then "make oldconfig" to update the config (To avoid this I would recommend using the debianised source from testing).

The downside of building from source is that you will of course have to maintain you own kernels. This means rebuilding and installing when there is an update - and managing the distribution of the kernel updates to all your boxes.
 
1 members found this post helpful.
Old 10-16-2013, 08:59 AM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Thanks cynwulf

Given all this helpful information on the pros and cons of various solutions and aiming for a policy which minimises the administrative work while meeting the imperative of supporting the hardware, the policy could be "Use backport kernel packages; if they do not support the hardware, build from debian testing source the debian way and use those packages".
 
Old 10-18-2013, 02:41 AM   #12
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
I think that liquorix on desktops/laptops and backporting on servers is the way I would go. But if you want or your ogranisation needs a single rule, and you will be running on new hardware servers, that is the easiest way.
 
Old 10-18-2013, 07:07 AM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you are a gamer I would think twice about using the Liquorix kernel.
http://www.phoronix.com/scan.php?pag...1_kernel&num=1
 
Old 10-18-2013, 08:39 PM   #14
Tadaen
Member
 
Registered: Sep 2005
Distribution: Arch
Posts: 210

Rep: Reputation: 39
Apologize if this is a hijack. Read over the thread as I'm in a similar situation only home use, not enterprise. Am I right in reading that backporting a kernel best option on brand new hardware? New desktop & laptop in a couple months, would prefer to go straight debian. Just worried about supporting hardware.

(Building my own desktop, buying laptop likely from xoticpc.com without an OS)

Last edited by Tadaen; 10-18-2013 at 08:47 PM.
 
Old 10-20-2013, 03:01 AM   #15
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
... well, without a good kernel, you are in troubles. So you should compile and compile over to get all hardware working.
Tricky.

Look an old machine with a Sarge Debian. All is into the kernel, otherwise it would never work:
http://www.linuxquestions.org/questi...3&d=1374855525
 
  


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
If I can deal with 'kernel panic - not syncing VFS: unable to mount root FS ...' nottotallystupid Ubuntu 3 08-03-2010 03:01 PM
LXer: The Fourth ‘Patent Deal’ was with Europe… and the Sixth Deal That Won’t be LXer Syndicated Linux News 0 10-24-2007 03:40 PM
kernel 2.6 whats the deal demmylls Linux - General 2 09-11-2003 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:34 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
Open Source Consulting | Domain Registration