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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-18-2004, 05:39 PM
|
#1
|
Member
Registered: Dec 2003
Distribution: Slackware Current, Gentoo , Debian SID
Posts: 90
Rep:
|
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.
|
|
|
01-18-2004, 06:57 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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.
|
|
|
01-18-2004, 09:12 PM
|
#3
|
Member
Registered: Dec 2003
Distribution: Slackware Current, Gentoo , Debian SID
Posts: 90
Original Poster
Rep:
|
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 ??
|
|
|
01-18-2004, 09:32 PM
|
#4
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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.
|
|
|
01-19-2004, 04:25 PM
|
#5
|
Member
Registered: Dec 2003
Distribution: Slackware Current, Gentoo , Debian SID
Posts: 90
Original Poster
Rep:
|
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.
|
|
|
01-21-2004, 08:29 PM
|
#6
|
Member
Registered: Dec 2003
Distribution: Slackware Current, Gentoo , Debian SID
Posts: 90
Original Poster
Rep:
|
anyone ?????????
|
|
|
All times are GMT -5. The time now is 04:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|