Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel module
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Souf
n00b
n00b


Joined: 07 Aug 2003
Posts: 29
Location: Belgium

PostPosted: Thu Aug 14, 2003 9:43 pm    Post subject: Kernel module Reply with quote

Hello everybody,

I currently have kernel version 2.4.20-gentoo-r5 running. This is the only one I have ever installed and compiled.
Now I compile the driver of my new PCI-card, after setting the include option in the makefile, and when I try this:
Code:

insmod rtl8180_24x.o

I get this:
Code:

rtl8180_24x.o: kernel-module version mismatch
rtl8180_24x.o was compiled for kernel version 2.4.19 while this kernel is version 2.4.20-gentoo-r5.

I then tried to force it in:
Code:

bash-2.05b# insmod -f rtl8180_24x.o
Warning: kernel-module version mismatch
        rtl8180_24x.o was compiled for kernel version 2.4.19
        while this kernel is version 2.4.20-gentoo-r5
Warning: loading rtl8180_24x.o will taint the kernel: forced load
  See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module rtl8180_24x loaded, with warnings

Next I edited the /etc/modules.autoload file and added rtl8180 at the end.
I also copied the object file to the /lib/modules/net directory.
When I reboot my PC, I just get the message: "failed to load rtl8180".

Is this because the driver isn't compiled right? Or am I doing something else wrong?
I"m really stuck here. Can somebody please help me out?

Greetz,

Souf. (Gentoo newbie)
Back to top
View user's profile Send private message
ballyn
n00b
n00b


Joined: 14 Aug 2003
Posts: 73

PostPosted: Fri Aug 15, 2003 2:08 am    Post subject: Reply with quote

How are you compiling the driver? Where is the source from, etc.? If it's using your kernel sources and you do a:

cd /usr/src
cat linux-2.4.20-gentoo-r5/include/linux/version.h

You should see the correct output:

#define UTS_RELEASE "2.4.20-gentoo-r5"

If not, that's your problem, if so, I'd do a "grep 2.4.19 *" in your rtl8180 source directory and see where that version number is coming from.

You could also just always force the module in a startup script or something, but it's probably better to get the versioning right.

Good luck.
Back to top
View user's profile Send private message
Souf
n00b
n00b


Joined: 07 Aug 2003
Posts: 29
Location: Belgium

PostPosted: Fri Aug 15, 2003 8:27 am    Post subject: Reply with quote

Thanks for the reply. It works fine now. The include path in the makefile was wrong afterall. (I forgot to append "-r5" to the source directory)

Stupid me. :oops:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum