Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions
User Name
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.


  Search this Thread
Old 05-26-2010, 05:04 AM   #1
LQ Newbie
Registered: May 2009
Distribution: Kubuntu 9.04
Posts: 10

Rep: Reputation: 0
How do driver packages get updated with kernel update (any distribution)?


This is more of a general interest question, rather than a problem that needs solving. Any takers?

I was wondering how distributions manage to update all their driver packages when they ship a new kernel version. What I mean is: when I use a manually compiled kernel module, say, ndiswrapper wifi driver, I need to recompile it with the current kernel headers after every kernel update. However, when I'm using the ndiswrapper packages from my distribution (I'm using kubuntu but I can imagine this is similar in many distributions?), everything just works after a kernel update, even though package management doesn't seem to download a new ndiswrapper package version. Also, I can't imagine canonical is compiling new packages for every kernel update. So how do they do it? Google told me about "dynamic kernel module support", does this have anything to do with it?

The follow-up, ubuntu/debian-specific, question, would be: can I create my own package like that (since the ndiswrapper package in the official repositories is outdated and doesn't work too well).

Thank you in advance!
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-27-2010, 08:11 AM   #2
Senior Member
Registered: Oct 2003
Posts: 2,575

Rep: Reputation: 220Reputation: 220Reputation: 220
The kernel modules are automatically recompiled through a system originally developed by Dell called dkms, i.e. dynamic kernel module support:

Many distros use dkms, fedora, mandriva, ubuntu and probably others that I'm not aware of.

As for creating your own dkms kernel module for ndiswrapper, if you have the source for the newer version of ndiswrapper and dkms installed, then it's possible:

The above is for an RH based system, but it should be adaptable to debian based systems as well.

Last edited by kilgoretrout; 05-27-2010 at 08:13 AM.
2 members found this post helpful.


compilation, drivers, kernel, module

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
update distribution iso files with updated packages hipermc2 Linux - General 2 01-19-2005 12:02 PM
How to update packages within Fedora Distribution before installation Raskolnikow Linux - Software 2 04-04-2004 07:51 AM
kernel-update, a success... BUT... couldn't boot from the updated-kernel Pisces107 Red Hat 7 12-17-2003 03:27 PM
updated kernel from mandrake update? paradoxni Mandriva 1 10-31-2003 03:51 PM
Slackware Security Update: KDE packages updated phoeniXflame Slackware 2 08-04-2003 10:03 AM > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 07:30 PM.

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