[Gllug] kernel module compilation / loading issues

Thomas Clive Richards thomir at gmail.com
Thu Apr 12 20:00:01 UTC 2007


Hello all,

I'm trying to build a module for a wireless network card on one machine, and 
load it on another.

The target machine is running Ubuntu 6.10 server ed, and the kernel 
is "2.6.17-10-server". So, I installed the "linux-headers-2.6.17-10-server" 
ubuntu package on my compilation machine.

The module includes a configure script, which allows me to point it to the new 
kernel headers, as opposed to the kernel headers for the currently running 
kernel on this box.

Everything builds fine, but when I go to load the module on the target machine 
insmod complains:

insmod: error inserting 'rt61.ko': -1 Invalid module format

dmesg tells me that:

rt61: disagrees about version of symbol struct_module


I'm pretty sure that I'm compiling against the correct kernel headers. Are 
there other factors that can produce this error? Perhaps gcc version? If so, 
how can I find out what version of gcc was used to compile the current 
running kernel?


Any tips? As you've probably guessed, I need this driver to connect to 
the 'Net, which I need to install development packages, which I need to 
compile the driver :P


Cheers,
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list