LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-13-2007, 03:29 AM   #1
kovacsp
LQ Newbie
 
Registered: Apr 2007
Posts: 9

Rep: Reputation: 0
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
 
Old 12-13-2007, 03:45 AM   #2
kovacsp
LQ Newbie
 
Registered: Apr 2007
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
forcedeth freezes my NIC. How do I compile newer version? jalla2000 Linux - Hardware 6 09-20-2007 12:35 PM
forcedeth drivers don't work AlteRFirE Linux - Networking 2 11-18-2006 05:17 PM
all the newer kernels im compiling pause on udev darksmiley Linux - General 6 12-28-2005 09:05 AM
forcedeth nvidia nforce network driver does not work renas.r Linux - Networking 1 08-22-2005 10:46 PM
Compiling an older kernel on a newer system J_Szucs Linux - General 7 05-30-2005 01:49 AM


All times are GMT -5. The time now is 07:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration