LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...

Notices

Reply
 
Search this Thread
Old 05-26-2010, 04:04 AM   #1
OkoSanto
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)?


Hi,

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, 07:11 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,292

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

http://en.wikipedia.org/wiki/Dynamic...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:

http://wiki.centos.org/HowTos/Buildi...cff73f927731f0

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 07:13 AM.
 
2 members found this post helpful.
  


Reply

Tags
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 11:02 AM
How to update packages within Fedora Distribution before installation Raskolnikow Linux - Software 2 04-04-2004 06:51 AM
kernel-update, a success... BUT... couldn't boot from the updated-kernel Pisces107 Red Hat 7 12-17-2003 02:27 PM
updated kernel from mandrake update? paradoxni Mandriva 1 10-31-2003 02:51 PM
Slackware Security Update: KDE packages updated phoeniXflame Slackware 2 08-04-2003 09:03 AM


All times are GMT -5. The time now is 09:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration