LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Compiling newer forcedeth and making it work (http://www.linuxquestions.org/questions/linux-hardware-18/compiling-newer-forcedeth-and-making-it-work-606470/)

kovacsp 12-13-2007 04:29 AM

Compiling newer forcedeth and making it work
 
Dear all,

The Suse 9.3 default kernel (2.6.11.4-20a) contains version 0.31 of the forcedeth driver (according to the source). This version seems not to work with the gigabit Ethernet on my mainbord (Gigabyte GA-M59SLI-S4).
So I'm trying to use the latest version found on the nvidia website (http://www.nvidia.com/object/linux_nforce_1.21.html).
This package contains precompiled RPMs for varios distros, but mot for Suse 9.3, but it actually contains forcedeth.h and a readme.txt in the source directory for each distro (which all seem to be the same in fact).
It says "For forcedeth.ko, just copy the forcedeth.c and makefile to same directory and then make it". But there is no Makefile in the package.
So I tried the following:
go to kernel source
make menuconfig, didn't change anything
make modules
everything compiled successfully
rename the original forcedeth.c to forcedeth_old.c and original forcedeth.ko to forcedeh_old.ko
copy new forcedeth.c to kernel source
make modules again (successful)
copy reulting forcedeth.ko to /lib/modules/2.6.11.4-20a-smp/kernel/drivers/net
insmod forcedeth.ko

And I get the error message:
insmod: error inserting 'forcedeth.ko': -1 Invalid module format

However, insmod forcedeth_old.ko runs without error message (but does not do anything useful for me)

How could I solve this? (I cannot just move to a newer / another distro as numerous computers need to be fixed).

Some more info:
linux:/ # linux:/usr/src/linux/drivers/net # lspci
0000:00:00.0 RAM memory: nVidia Corporation: Unknown device 02f4 (rev a2)
0000:00:00.1 RAM memory: nVidia Corporation: Unknown device 02fa (rev a2)
0000:00:00.2 RAM memory: nVidia Corporation: Unknown device 02fe (rev a2)
0000:00:00.3 RAM memory: nVidia Corporation: Unknown device 02f8 (rev a2)
0000:00:00.4 RAM memory: nVidia Corporation: Unknown device 02f9 (rev a2)
0000:00:00.5 RAM memory: nVidia Corporation: Unknown device 02ff (rev a2)
0000:00:00.6 RAM memory: nVidia Corporation: Unknown device 027f (rev a2)
0000:00:00.7 RAM memory: nVidia Corporation: Unknown device 027e (rev a2)
0000:00:04.0 PCI bridge: nVidia Corporation: Unknown device 02fb (rev a1)
0000:00:08.0 RAM memory: nVidia Corporation: Unknown device 0369 (rev a1)
0000:00:09.0 ISA bridge: nVidia Corporation: Unknown device 0360 (rev a2)
0000:00:09.1 SMBus: nVidia Corporation: Unknown device 0368 (rev a2)
0000:00:09.2 RAM memory: nVidia Corporation: Unknown device 036a (rev a2)
0000:00:0a.0 USB Controller: nVidia Corporation: Unknown device 036c (rev a1)
0000:00:0a.1 USB Controller: nVidia Corporation: Unknown device 036d (rev a2)
0000:00:0c.0 IDE interface: nVidia Corporation: Unknown device 036e (rev a1)
0000:00:0d.0 IDE interface: nVidia Corporation: Unknown device 037f (rev a2)
0000:00:0d.1 IDE interface: nVidia Corporation: Unknown device 037f (rev a2)
0000:00:0d.2 IDE interface: nVidia Corporation: Unknown device 037f (rev a2)
0000:00:0e.0 PCI bridge: nVidia Corporation: Unknown device 0370 (rev a2)
0000:00:0e.1 Class 0403: nVidia Corporation: Unknown device 0371 (rev a2)
0000:00:11.0 Bridge: nVidia Corporation: Unknown device 0373 (rev a2)
0000:00:15.0 PCI bridge: nVidia Corporation: Unknown device 0378 (rev a2)
0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
0000:01:00.0 VGA compatible controller: nVidia Corporation: Unknown device 0193 (rev a2)
0000:02:07.0 RAID bus controller: Silicon Image, Inc. (formerly CMD Technology Inc) SiI 3512 [SATALink/SATARaid] Serial ATA Controller (rev 01)
0000:02:08.0 Ethernet controller: SysKonnect SK-98xx V2.0 Gigabit Ethernet Adapter (rev 10)
0000:02:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
linux:/usr/src/linux/drivers/net # uname -a
Linux linux 2.6.11.4-20a-smp #1 SMP Wed Mar 23 21:52:37 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux
linux:/usr/src/linux/drivers/net #


Thanks for your kind help in advance,
Peter

kovacsp 12-13-2007 04:45 AM

Oh, dmesg has some more info for me:
forcedeth: no version for "struct_module" found: kernel tainted.
forcedeth: version magic '2.6.11.4-20a-default gcc-3.3' should be '2.6.11.4-20a-smp SMP gcc-3.3'
load_module: err 0xfffffffffffffff8 (dont worry)
forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.31.
forcedeth: version magic '2.6.11.4-20a-default gcc-3.3' should be '2.6.11.4-20a-smp SMP gcc-3.3'
load_module: err 0xfffffffffffffff8 (dont worry)

But how come the kernel source contained in the kernel-source package does not fit the running kernel exactly?

Peter


All times are GMT -5. The time now is 03:24 AM.