LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-09-2007, 03:46 AM   #1
simplyA
LQ Newbie
 
Registered: Apr 2007
Location: Iran
Distribution: CentOS, SUSE, Debian, RedHat
Posts: 14

Rep: Reputation: 0
Question 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?

Thanks in advance,

simplyA
 
Old 06-09-2007, 10:32 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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.

Edit: Typo.

Last edited by HappyTux; 06-09-2007 at 10:34 PM.
 
Old 06-10-2007, 06:23 AM   #3
simplyA
LQ Newbie
 
Registered: Apr 2007
Location: Iran
Distribution: CentOS, SUSE, Debian, RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
Hi HappyTux,

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.

Edit: Typo
 
Old 06-10-2007, 11:43 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by simplyA
Hi HappyTux,

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.
 
Old 06-11-2007, 12:59 AM   #5
simplyA
LQ Newbie
 
Registered: Apr 2007
Location: Iran
Distribution: CentOS, SUSE, Debian, RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
Hi HappyTux,

I'm sorry to have caused confusion on this!

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.


Anyway, thanks a lot for your help.

simplyA
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel-headers and custom compiled kernels jaakkop Slackware 2 11-22-2005 11:21 AM
DHCP not pulling IP on later 2.4 self compiled kernels php Slackware 1 05-15-2005 04:21 PM
compiling kernels for different systems alaios Linux - General 2 11-06-2004 03:48 PM
can't export my display to another systems jaybrus LinuxQuestions.org Member Intro 2 05-15-2004 04:29 AM
can't export my display to another systems jaybrus Linux - General 1 05-14-2004 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:04 AM.

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