Export compiled driver module to other systems kernels
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
Export compiled driver module to other systems kernels
Hi @all,
I have patched my current system kernel (2.6.18.2) and added a new driver. The driver compiled successfully and works without any probs. Now, I have 6 other systems (linux workstations) with the same kernel running and architecture.
How can I export my installed driver module to the other systems without the need to re-compile the other kernels?
Does the output of uname -r show the same on all systems including the one you compiled on if so try copying the driver.ko to the proper directory in the /lib/modules/2.6.18.2/.... (I assume) then run depmod -a and modprobe driver, hopefully it will now work on all of them.
one mistake I made, was that the clients indeed do have the same kernel but additionally are patched for xen. I thought that this shouldn't be a big deal but unfortunately it didn't work.
When I try your approach I get a
<snip>
dm_raid4_5: disagrees about version of symbol struct_module
</snip>
Isn't there a way to export the compiled module to those other workstations without recompiling their kernel? My problem actually is that even if I wanted to, the clients are all CentOS5 systems and it's not possible to recompile the kernel shipped with it.
Best Regards,
simplyA
P.S:
OUTPUT FROM ONE WORKSTATION:
[root@wks1 ~]# uname -a
Linux wks1 2.6.18-8.el5xen #1 SMP Thu Mar 15 19:56:43 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
[root@wks1 ~]#
I do have a 2.6.18-8 and not a 2.6.18-2 kernel. sorry.
one mistake I made, was that the clients indeed do have the same kernel but additionally are patched for xen. I thought that this shouldn't be a big deal but unfortunately it didn't work.
When I try your approach I get a
<snip>
dm_raid4_5: disagrees about version of symbol struct_module
</snip>
Isn't there a way to export the compiled module to those other workstations without recompiling their kernel? My problem actually is that even if I wanted to, the clients are all CentOS5 systems and it's not possible to recompile the kernel shipped with it.
Ok this is getting a little beyond my experience but one thing I do not understand here is you say the CentOS kernel cannot be recompiled so how are you getting this kernel module then if the source cannot be recompiled?? Is this other system not running the same kernel as the rest because this would be the only way it could work the output of the uname -r has to be the same on all the systems for it to have a chance. You might want to see if the CentOS folks have a dedicated support list for these type of problems.
Let me explain it a bit more:
My system does have the same kernel version 2.6.18-8 as the other workstations. The only difference is that a) I have downloaded the kernel from kernel.org (due to the compiling problem) and b) my kernel isn't patched/modified for xen.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.