LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-18-2004, 05:39 PM   #1
Pisces107
Member
 
Registered: Dec 2003
Distribution: Slackware Current, Gentoo , Debian SID
Posts: 90

Rep: Reputation: 15
Question How to keep modules/drivers across kernel recompiles and kernel versions?


hi,

whenever i recompile the kernel, modules/drivers for my modem/graphics card and sound wont load, and with every kernel recompile (of the same kernel version) i have to re-install them.

Q1. is there a way i don't have to reinstall drivers/modules for my modem/vga/sound after every kernel recompile ( of the same kernel version) ?


currently i'm using kernel 2.4.24 and also compiled the latest(?) 2.6.1 in. but now modules/drivers for modem/vga/sound won't compile with the new kernel version for some strange reason ( i have tried quite a few workarounds).

Q2. is there a way, OR is it possible to use sound/modem/vga modules/drivers from different/older kernel version?

TIA.

Last edited by Pisces107; 01-18-2004 at 05:43 PM.
 
Old 01-18-2004, 06:57 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
The difference between 2.4 and 2.6 kernels means you can't use 2.4 modules with 2.6 kernels or vice-versa. Even with a recompile.

With the same version kernel you shouldn't have to recompile. Though you do sometime have to reinstall. Depends if you have revision numbers, or markers in the kernel. i.e 2.4.23-1 and 2.4.23-2 won't use the same modules directory.
 
Old 01-18-2004, 09:12 PM   #3
Pisces107
Member
 
Registered: Dec 2003
Distribution: Slackware Current, Gentoo , Debian SID
Posts: 90

Original Poster
Rep: Reputation: 15
hmm...okay, but with the same kernel version , for example, 2.4.24 , with no trailing version numbers , (2.424-1 etc) , i have to recompile the modules/drivers. say, when i put something in or pull something out of the kernel and to do a compile...my understanding is, i should be able to use the modules for the same kernel version, when i'm not changing the major and/or minor versions.

so, is there a workaround i don't have to do recompile modules?

and better, is it at all possible, to use modules across kernel versions?

anyone ??
 
Old 01-18-2004, 09:32 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Quote:
hmm...okay, but with the same kernel version , for example, 2.4.24 , with no trailing version numbers , (2.424-1 etc) , i have to recompile the modules/drivers.
Why do you have too?

Quote:
say, when i put something in or pull something out of the kernel and to do a compile...my understanding is, i should be able to use the modules for the same kernel version, when i'm not changing the major and/or minor versions.
Your understanding is correct.

Quote:
so, is there a workaround i don't have to do recompile modules?
If your doing a make clean or make mrproper, this could be why your having to recompile.

Modules are not normally recompiled, even if you reconfigure ( Unless they've not been compiled before ). Make is quite clever about this. If you did not add any modules to your current kernel.

Using modules across kernel versions is a very bad idea they can appear to work but have bugs, and or not work at all. Linux actively tries to stop this, as it can damage your machine.
 
Old 01-19-2004, 04:25 PM   #5
Pisces107
Member
 
Registered: Dec 2003
Distribution: Slackware Current, Gentoo , Debian SID
Posts: 90

Original Poster
Rep: Reputation: 15
i have to recompile drivers and modules for my modem,sound card and video card afetr every compile of the same version ...because they just don't work and complain not being installed.
 
Old 01-21-2004, 08:29 PM   #6
Pisces107
Member
 
Registered: Dec 2003
Distribution: Slackware Current, Gentoo , Debian SID
Posts: 90

Original Poster
Rep: Reputation: 15
anyone ?????????
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing ATI drivers to Slackware 10 - kernel modules? wezzer Slackware 9 08-31-2004 05:12 PM
Nvidia drivers, kernel versions and Redhat 9 sausagejohnson Red Hat 1 08-17-2004 08:20 PM
/lib/modules/.../kernel/drivers empty? maxware Linux - General 7 03-05-2004 07:58 PM
After compiling 2.6 kernel >> not enough drivers in /lib/modules?? Jefklak Linux - Software 9 10-21-2003 11:55 AM
kernel recompiles, but will not boot paavaka Linux - Newbie 7 06-14-2001 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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