Where do I get the source that comes with the distribution?  I installed
the kernel-source package, but it doesn't appear to have everything I
need.

Wayne Driscoll
Product Developer
JME Software LLC
NOTE:  All opinions are strictly my own.




-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
Mark Post
Sent: Thursday, November 29, 2007 10:30 PM
To: [email protected]
Subject: Re: Building kernel modules on Linux 390

>>> On Thu, Nov 29, 2007 at  6:52 PM, in message
<[EMAIL PROTECTED]>, Wayne
Driscoll
<[EMAIL PROTECTED]> wrote: 
> I have SLES10 installed in a guest under z/VM.  When issuing uname -r,
I
> get 
> 2.6.16.21-0.8-default
> So I downloaded the 2.6.16.21 kernel source.

Um, from where?  kernel.org?  You should use the kernel source that
comes with your distribution.

> I built a module using
> that build tree, but when I run insmod to install it, I get the
> following:
> insmod: error inserting 'hwmod.ko': -1 Invalid module format
> When I look at /var/log/messages, I see the following:
> kernel: hwmod: disagrees about version of symbol struct_module
> How can I determine what versions I need to get this to work?

I think that's a result of you not using the kernel-source RPM from
Novell.  I'm not _sure_ of that, but that would be good first step to
see if the problem goes away.  I would recommend, however, using the
latest kernel and kernel source available, 2.6.16.53-0.18.
2.6.16.21-0.8 is from back in 2006.


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to