View previous topic :: View next topic |
Author |
Message |
Souf n00b
Joined: 07 Aug 2003 Posts: 29 Location: Belgium
|
Posted: Thu Aug 14, 2003 9:43 pm Post subject: Kernel module |
|
|
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 |
|
|
ballyn n00b
Joined: 14 Aug 2003 Posts: 73
|
Posted: Fri Aug 15, 2003 2:08 am Post subject: |
|
|
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 |
|
|
Souf n00b
Joined: 07 Aug 2003 Posts: 29 Location: Belgium
|
Posted: Fri Aug 15, 2003 8:27 am Post subject: |
|
|
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. |
|
Back to top |
|
|
|