public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* porting-problem, module snd_echoaudio: Unknown relocation: 0
@ 2003-08-27  6:45 LGW
  0 siblings, 0 replies; only message in thread
From: LGW @ 2003-08-27  6:45 UTC (permalink / raw)
  To: linux-kernel

Hi there,

I'm new to this list, and I'm new to kernel coding. But I read the 
introductions about the kernel structures, Makefiles and Modules, so I 
think I know at least a little bit.

I'm trying to port a device driver (snd-echoaudio, which is an 
additional driver for alsa) from 2.4.x kernel (alsa) to 2.6.x.

I *think* it should work the way I've done it, but it's a little bit 
messy as the kernel modules needs some C++ files for the hardware 
access. Additionally, those files need some system libraries (they 
depend on <endian.h>, <time.h> and stuff).

This was no problem with the 2.4-kernel, but I think they way they are 
linked might be the problem here.

Everything compiles and links fine, but when I try to load the module 
(yes, I read the build instructions for 2.5/2.6 modules...) I get this:
Error inserting 'sound/pci/echoaudio/snd-echoaudio.ko': -1 Invalid 
module format

while /var/log/kern.log says:
kernel: module snd_echoaudio: Unknown relocation: 0

I really don't know what to look for anymore, so I decided to ask for 
your help. When I strip the driver from everything except init and exit, 
I can load it, so the general build incantation should be alright...

regards,
  Lars

BTW: the 2.6-kernel improvements are great. Thanks to everyone!!


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-27  6:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-27  6:45 porting-problem, module snd_echoaudio: Unknown relocation: 0 LGW

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox