LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-10-2007, 01:56 AM   #1
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
need help configuring kernel module for network device (forcedeth)


I have an nVidia CK804 Ethernet which is part of the nForce chipset, and it uses the forcedeth module.
It used to work fine on my old kernel (2.6.18.5), but since I built a new kernel (2.6.20.6) and it no longer works.
If I do "modprobe forcedeth", it loads the module but no device files exist in /dev... no /dev/eth0 or /dev/eth1.
What do I do for it to detect my device and create the device file?
 
Old 04-10-2007, 02:44 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
http://lkml.org/lkml/2007/2/19/373

... there seem to be lots of forcedeth problem each time there is an upgrade. Congratulations: you own an nvidia chipset

Have you tried disabling MSI in the forcedeth driver?
 
Old 04-10-2007, 02:50 AM   #3
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Simon Bridge
http://lkml.org/lkml/2007/2/19/373

... there seem to be lots of forcedeth problem each time there is an upgrade. Congratulations: you own an nvidia chipset

Have you tried disabling MSI in the forcedeth driver?
How do I do that?
...
I am looking at the patch... I'll try it out in the morning. I assume I need to rebuild the modules afterwards, right?
 
Old 04-10-2007, 03:11 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Disabling MSI is a module option. I'd look for information someplace obvious like when you added it in the menuconfig step. The module notes should tell you.

I do not have the required chipset or source so I cannot check for you, sorry.
 
Old 04-10-2007, 05:08 PM   #5
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
This may be a dumb question, but how do I apply the above patch?
I am not a pro and what I try with the "patch" command is not doing it.
 
Old 04-11-2007, 07:05 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
1. make sure you keep a copy of the unpatched source handy.

2. you need to be in the top of the source tree

3. patch <original> <patch>

4. man patch
 
Old 04-12-2007, 01:58 AM   #7
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Simon Bridge
1. make sure you keep a copy of the unpatched source handy.

2. you need to be in the top of the source tree

3. patch <original> <patch>

4. man patch
It seems like the patch is for some other version of forcedeth...
heres the output:
Code:
root:# patch forcedeth.c forcedeth.c.patch
patching file forcedeth.c
Hunk #1 FAILED at 3104.
1 out of 1 hunk FAILED -- saving rejects to file forcedeth.c.rej
I started comparing the version of forcedeth.c I have here (0.59) to the patch and they do not appear to be similar, stuff does not fall into the right coordinates either.
I don't know what to do at this point. The version of forcedeth I have with the old kernel is 0.56, I tried compiling it with the new kernel but it is missing some variable declarations so its not gonna do.
I tried 0.57 from 2.6.19.x I think and that compiled but doesn't work just like 0.59.
...
PS MSI is in fact disabled, I checked again and recompiled and still nothing.
*EDIT*
I got the latest stable source tree, 2.6.21-rc6 (patched from 2.6.20) which includes forcedeth 0.60... Gonna give that a try.
Also forgot to thank you for continued assistance... THANKS!!!
*EDIT*
The patch is not for 0.60 either...
Code:
root:# patch forcedeth.c forcedeth.c.patch
patching file forcedeth.c
Hunk #1 FAILED at 3104.
1 out of 1 hunk FAILED -- saving rejects to file forcedeth.c.rej
I am trying it anyway though.

Last edited by r00tb33r; 04-12-2007 at 02:08 AM.
 
Old 04-12-2007, 03:20 PM   #8
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
Um... Okay, I am officially stupid. If not me, then whoever wrote this software.
All this time it was iptables that was blocking any kind of access. I didn't use to be able to ping anything.
I have to disable for every kernel I build. It blocks everything on boot by default.
Apparently there was nothing for with forcedeth at any point.
Thanks for the help though.
 
Old 04-16-2007, 08:08 PM   #9
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
In that case - revise your firewall script

Note: you shouldn't disable the firewall in the kernel or access the internet with no firewall. It is a simple matter to have a different script run at startup so the default rules are replaced.
 
  


Reply



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
2.4.x Kernels and forcedeth Module Problem b1cq7 Linux - Networking 3 02-14-2006 01:19 AM
forcedeth module will not properly load meddle Linux - Networking 0 02-27-2005 06:03 PM
install problem: Suse 9.2 AMD64 Nvidia 'forcedeth' kernel module croutonjones SUSE / openSUSE 1 01-16-2005 04:50 PM
Forcedeth only works as a module with 2.6.6 kinasz Linux - General 2 05-23-2004 07:31 AM
configuring a network device on fedora2 ravalox Linux - Distributions 3 02-23-2004 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration