Jump to content

Driver for nForce4 LAN


planetbeing
 Share

765 posts in this topic

Recommended Posts

Hi,

 

I tried a lot of the focedeth versions posted in this thread but still have the reversed MAC problem. Is there any fix for this? Even MeDevil's version didn't work for me although I also have a nForce 430 0x03EF10DE chip...

 

Im using Zepyroth's Leopard 10.5.2.

 

Thanks in advance for any idea to solve this.

 

 

Well what I did was make sure that there are no 'force...' anythings in the /System/Library/Extensions folder, and just use Kext Helper to put on the 'forcedeth-nockd.kext' and it should work.

Link to comment
Share on other sites

Hi,

 

I tried a lot of the focedeth versions posted in this thread but still have the reversed MAC problem. Is there any fix for this? Even MeDevil's version didn't work for me although I also have a nForce 430 0x03EF10DE chip...

 

Im using Zepyroth's Leopard 10.5.2.

 

Thanks in advance for any idea to solve this.

 

 

Have you tried the forcedeth_nockd.kext? It worked for my nForce 4 chipset.

Link to comment
Share on other sites

I really can not understand all this consternation when you can put in a $6 RTL-8139 pci card and forget about it. But hell, whatever

floats your boat.

By the way, Uphuck 10.4.9 v1.4A supports Nforce 4 lan right out of the box.

Link to comment
Share on other sites

Hi, there!

 

Does anybody know if there's any way to make the nForce 5 work?

 

My system:

 

Mainboard: ASUS M2N32-SLi Deluxe WiFi Edit (Chipset: nForce 590)

CPU: AMD Athlon 64 X2 6000+

Graphics-Card: MSI NX8800 GTS 640MB

RAM: 2 GB @ 667 MHz

 

I'm using the "Zephyroth 10.5.1 AMD DVD"...

 

Thanks in advance for your help.

 

Edit: Yup! I know there's already a driver which has potential to work... (http://forum.insanelymac.com/index.php?showtopic=89475)

Link to comment
Share on other sites

epox ep-9npaj-3p, leo 10.5.1 amd

 

forcedeth-nockd.kext even does not load

 

Here is the log for forcedeth.kext:

Mar  2 05:59:34 is-acpi kernel[0]: forcedeth: PCI system 0x10DE:0x0057, subsystem 0x1695:0x1010 opened.
Mar  2 05:59:34 is-acpi kernel[0]: forcedeth: Mapped from 0xFE029000 of length 4096.
Mar  2 05:59:34 is-acpi kernel[0]: forcedeth: Allocated 3072 bytes of contiguous memory for DMA: rx at 0x2aca8000, tx at 0x2aca8400, wired at 0x1a7ca000.
Mar  2 05:59:34 is-acpi kernel[0]: forcedeth: Found nForce4 LAN with MAC: 00:04:61:48:61:74.
Mar  2 05:59:34 is-acpi kernel[0]: forcedeth: Found PHY 0x03c0:0x0031 at address 1.
Mar  2 05:59:34 is-acpi kernel[0]: com_triton_forcedeth: Ethernet address 00:04:61:48:61:74
Mar  2 06:00:05 is-acpi login[161]: USER_PROCESS: 161 ttys002
Mar  2 06:00:42 is-acpi sudo[173]:		i : TTY=ttys002; PWD=/Users/i; USER=root; COMMAND=/sbin/ifconfig en0 inet 192.168.7.1 netmask 255.255.255.0
Mar  2 06:00:42 is-acpi kernel[0]: forcedeth: Enabling... 1 2 3 4 5 6 7
Mar  2 06:00:42 is-acpi kernel[0]: forcedeth: Starting transmit/receive engines
Mar  2 06:00:42 is-acpi kernel[0]: forcedeth: Link speed now 100Mbps, code 0x10064.
Mar  2 06:00:43 is-acpi mDNSResponder[19]: getifaddrs ifa_netmask for   en0(4) Flags 8863 Family  2 192.168.7.1 has different family: 0
Mar  2 06:00:43 is-acpi mDNSResponder[19]: SetupAddr invalid sa_family 0
Mar  2 06:03:21 is-acpi kernel[0]: en0 duplicate IP address 192.168.7.1 sent from address 00:c0:df:09:09:d7


$ ping 192.168.7.1
PING 192.168.7.1 (192.168.7.1): 56 data bytes
ping: sendto: Cannot allocate memory

 

It worked in tiger (jas 10.4.8) but not stable, it faild on fast transfers (e.x. working with shares).

 

upd: 127.0.0.1 is pingable, set ip to some other subnet, it also pinged, set to 19.168.7.10 (first tried with 192.168.7.6, wich is usually set to this mac by dhcp) and it still worked. So 192.168.7.1 now pings, now trying to transfer 50Gb =)

 

But still does not work on boot.

Link to comment
Share on other sites

By the way, Uphuck 10.4.9 v1.4A supports Nforce 4 lan right out of the box.

 

does it? can't get it to work (doesn't work out of the box, nor with this driver).

 

 

my device is: PHY OUI 0x5043 @ 1 (as reported by linux forcedeth driver).

 

mac driver says noting at all (to dmesg) when kextload'ed.

 

In fact, lspci (linux) shows MCP51 Ethernet Controller not as "Ethernet controller", but as "Bridge" (PCI id: 10de:0269). Maybe this is the case? 

Link to comment
Share on other sites

slowly learning macos/darwin basics :D

 

added my pci id, now I have:

18:00:58 localhost kernel[0]: forcedeth: Initializing.
18:00:58 localhost kernel[0]: forcedeth: Probing.
18:00:58 localhost kernel[0]: forcedeth: WARNING - your nVidia device 0x10DE:0x0269 is not known to work, but it could be supported in the future. Please contact the coder. Continuing anyway...
18:00:58 localhost kernel[0]: forcedeth: Starting.
18:00:58 localhost kernel[0]: forcedeth: PCI system 0x10DE:0x0269, subsystem 0x1043:0x1385 opened.
18:00:58 localhost kernel[0]: forcedeth: Mapped from 0xDC6BC000 of length 4096.
18:00:58 localhost kernel[0]: forcedeth: Allocated 3072 bytes of contiguous memory for DMA: rx at 0x3aa73000, tx at 0x3aa73400, wired at 0x15ae5000.
18:00:58 localhost kernel[0]: forcedeth: Found nForce4 LAN with MAC: 00:1A:92:XX:XX:XX.
18:00:58 localhost kernel[0]: forcedeth: Found PHY 0x5040:0x0003 at address 1.
18:00:59 localhost kernel[0]: com_triton_forcedeth: Ethernet address 00:1a:92:XX:XX:XX.

that's all, no link is found :hysterical:

Link to comment
Share on other sites

As far as I can make out from the Linux driver's source code, your particular device is really strange in that it... mandates? 64-bit DMA. So basically, even though all the command codes are pretty much the same, the format for the buffers that handle the packet data are completely different. It's not THAT much work to support it, so it might be in the future (like the error message says), I'm limited by the fact that if I try to add it, I'd be developing for hardware that thousands of miles away from me, so it'll be a very frustrating experience.

 

So you have a couple of options: Learning xcode and modify my drivers slightly so they work on your adapter, or you can wait for me to get to it, but unless a whole bunch of other people also requests it, don't hold your breath. :/

*sniff*

 

/me is installing xcode and looking up forcedeth.c in his linux tree

Link to comment
Share on other sites

Ok - anyone who's been getting kernel panics, try this out. I haven't had any panics since I fixed the null check (except from my SATA driver :wallbash:), and while I'm not 100% sure that it's doing the right thing, at least it's not crashing. Feel free to use the release rather than debug kext, unless you particularly enjoy lots of syslog messages.

 

Note that this is a super-safe version; in the process of tracking down the bug, I put in some additional thread safety and reverted some buffer sizes to their defaults. I suspect neither change is necessary and that you can get some additional performance by taking them out, but I haven't had time to check it out yet. Like I said - not crashing is better than nothing :( So here's hoping it's _actually_ not panicking any more...

 

forcedeth.zip

Praise the Lord^H^H^H^Hchuttenh! This made my day!

Link to comment
Share on other sites

  • 2 weeks later...

My motherboard is the MSI P6N Diamond and I tried both Forcedeth kexts and got a message along the lines of :

 

Device 0x1E:0x0373 is not known to work.

 

Goes through and enables it.I get a self-assigned IP.

 

Tried changing the link speed and everything and it doesn't help at all.

 

Setting the IP manually doesn't seem to help either.

 

Any insights?

Link to comment
Share on other sites

Finally i got my on-board ethernet detected by adding the device id into Info.plist

 

I am able to configure the ethernet with IP and other details but i am not able to access any thing. I am not even able to ping to my local router.

 

I have attached the system.log output

 

Can someone offer any help on this.

logmessage.txt

Link to comment
Share on other sites

planetbeing:

 

I was going through the code and found that in "forcedeth.cpp" file, various device ids are defined

 

IOService *com_triton_forcedeth::probe(IOService *provider, SInt32 *score)

{

int i;

bool found;

UInt32 valid[][2] = {{0x0057,0x10DE},{0x0037,0x10DE},{0x0038,0x10DE},{0x0056,0x10DE},{0x0057,0x10DE}

{0x0086,0x10DE},{0x008C,0x10DE},{0x00DF,0x10DE},{0x00E6,0x10DE},{0x0372,0x10DE},

0x037,0x310DE},{0,0}};

IOService *res = super::probe(provider, score);

 

If i add my device id "0x10DE:0x0269" which is missing from the list and recompile using Xcode, will it help ?

Link to comment
Share on other sites

I was able to rebuild the driver after adding my device ID in forcedeth.cpp

 

But, now only the debug version of forcedeth.kext is working and not the one in release.

 

Can anyone tell me if this is ok and how to get the Release -> forcedeth.kext working

Link to comment
Share on other sites

Aight im very new to drivers and such for PC and MAC, so im gonna try this out. i need to make a signature but ill o that after i finish this so yall can compare my hardware and such. How would i go about getting my device Ids and such. Can i do it in windows? I'm pretty familier with networking and such, i just dont understand some hardware issues and {censored}.

Link to comment
Share on other sites

this is my ID

PCI\VEN_10DE&DEV_03EF&SUBSYS_82341043&REV_A2

PCI\VEN_10DE&DEV_03EF&SUBSYS_82341043

PCI\VEN_10DE&DEV_03EF&CC_068000

PCI\VEN_10DE&DEV_03EF&CC_0680

 

how can i edit force deth to these stats

Link to comment
Share on other sites

Last login: Thu Mar 20 20:05:43 on console

 

ryan-armstrongs-macpro31:~ ryanarmstrong$ tail -f /var/log/system.log

 

Mar 20 20:29:08 ryan-armstrongs-macpro31 kernel[0]: CODE SIGNING: cs_invalid_page: p=144[ATSServer] clearing CS_VALID

 

Mar 20 20:30:00 ryan-armstrongs-macpro31 fseventsd[33]: log dir: /Volumes/USB20FD/.fseventsd getting new uuid: 45FBFE26-4163-4AC3-A750-5153D7CFE37A

 

Mar 20 20:30:02 ryan-armstrongs-macpro31 kernel[0]: CODE SIGNING: cs_invalid_page: p=152[mdworker] clearing CS_VALID

 

Mar 20 20:30:06 ryan-armstrongs-macpro31 kernel[0]: CODE SIGNING: cs_invalid_page: p=154[mdworker] clearing CS_VALID

 

Mar 20 20:30:05 ryan-armstrongs-macpro31 com.apple.launchd[90] (0x108ba0.Locum[153]): Exited: Terminated

 

Mar 20 20:30:12 ryan-armstrongs-macpro31 kernel[0]: CODE SIGNING: cs_invalid_page: p=160[lssave] clearing CS_VALID

 

Mar 20 20:30:16 ryan-armstrongs-macpro31 kernel[0]: CODE SIGNING: cs_invalid_page: p=162[mdworker] clearing CS_VALID

 

Mar 20 20:30:34 ryan-armstrongs-macpro31 kernel[0]: CODE SIGNING: cs_invalid_page: p=163[lssave] clearing CS_VALID

 

Mar 20 20:30:39 ryan-armstrongs-macpro31 login[166]: USER_PROCESS: 166 ttys000

 

Mar 20 20:30:44 ryan-armstrongs-macpro31 kernel[0]: CODE SIGNING: cs_invalid_page: p=176[lssave] clearing CS_VALID

 

Mar 20 20:31:21 ryan-armstrongs-macpro31 login[179]: USER_PROCESS: 179 ttys001

 

Mar 20 20:32:32 ryan-armstrongs-macpro31 sudo[189]: ryanarmstrong : TTY=ttys001 ; PWD=/Users/ryanarmstrong/Desktop/forcedeth/build/Release ; USER=root ; COMMAND=/usr/sbin/chown -R root:wheel forcedeth.kext

 

Mar 20 20:33:08 ryan-armstrongs-macpro31 sudo[190]: ryanarmstrong : TTY=ttys001 ; PWD=/Users/ryanarmstrong/Desktop/forcedeth/build/Release ; USER=root ; COMMAND=/bin/chmod -R 755 forcedeth.kext

 

Mar 20 20:33:40 ryan-armstrongs-macpro31 sudo[191]: ryanarmstrong : TTY=ttys001 ; PWD=/Users/ryanarmstrong/Desktop/forcedeth/build/Release ; USER=root ; COMMAND=/sbin/kextload -v forcedeth.kext

 

Mar 20 20:33:41 ryan-armstrongs-macpro31 kernel[0]: MMAC: family specific matching fails

 

Mar 20 20:33:41 ryan-armstrongs-macpro31 kernel[0]: forcedeth: Initializing.

 

Mar 20 20:33:41 ryan-armstrongs-macpro31 kernel[0]: forcedeth: Probing.

 

Mar 20 20:33:41 ryan-armstrongs-macpro31 kernel[0]: forcedeth: Starting.

 

Mar 20 20:33:41 ryan-armstrongs-macpro31 kernel[0]: forcedeth: PCI system 0x10DE:0x0057, subsystem 0x1043:0x812A opened.

 

Mar 20 20:33:41 ryan-armstrongs-macpro31 kernel[0]: forcedeth: Mapped from 0xFE02A000 of length 4096.

 

Mar 20 20:33:41 ryan-armstrongs-macpro31 kernel[0]: forcedeth: Allocated 3072 bytes of contiguous memory for DMA: rx at 0x545c9000, tx at 0x545c9400, wired at 0x1ea30000.

 

Mar 20 20:33:41 ryan-armstrongs-macpro31 kernel[0]: forcedeth: Found nForce4 LAN with MAC: 00:1D:60:DB:37:27.

 

Mar 20 20:33:41 ryan-armstrongs-macpro31 kernel[0]: forcedeth: Could not find a valid PHY.

 

Mar 20 20:33:41 ryan-armstrongs-macpro31 kernel[0]: forcedeth: Stopping

 

Help, It didn't work for me

Link to comment
Share on other sites

Hi guys,

 

I am having an issue where it is properly detecting that I have an Nforce4 lan, but, it says the network link is down.

 

Here are my specs:

AMD Athlon X2 4200+

Gigabyte GA-M55SLI-S4 Rev 1.0 Mobo

Nvidia Nforce Networking Controller

Zephyroth ToH 10.5.1

 

I have tried the forcedeth drivers (even the nockd ones) on page 1 of this thread, and they still don't work. On page (I believe) 23/24 of this thread, planetbeing posted another version of the driver. That version, however, does not work and completely locks up the system.

 

I have attached lots of output below:

 

Terminal output when typing in the sudo kextload command:

extension forcedeth.kext has potential problems:
Warnings
{
 "Kext has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style" = true
}

kextload: extension forcedeth.kext appears to be loadable
kextload: loading extension forcedeth.kext
kextload: forcedeth.kext loaded successfully
kextload: sending personalities to kernel:
kextload:	 from extension /System/Library/Extensions/IONetworkingFamily.kext:
kextload:		 IONetworkStack
kextload:		 Kernel Debugging Driver
kextload:	 from extension /System/Library/Extensions/IOPCIFamily.kext:
kextload:		 IOPCI2PCIBridge-Name
kextload:		 IOPCI2PCIBridge-i386
kextload:		 IOPCI2PCIBridge-PCI
kextload:	 from extension /Users/mikee/Desktop/forcedeth/build/Release/forcedeth.kext:
kextload:		 nForce 4 LAN
kextload: sending 6 personalities to the kernel
kextload: matching started for forcedeth.kext

 

Output in tail output:

Mar 21 12:34:55 mikees-acpi sudo[173]:	mikee : TTY=ttys001; PWD=/Users/mikee/Desktop/forcedeth/build/Release; USER=root; COMMAND=/sbin/kextload -v forcedeth.kext
Mar 21 12:34:56 mikees-acpi kernel[0]: forcedeth: Initializing.
Mar 21 12:34:56 mikees-acpi kernel[0]: forcedeth: Probing.
Mar 21 12:34:56 mikees-acpi kernel[0]: forcedeth: Starting.
Mar 21 12:34:56 mikees-acpi kernel[0]: forcedeth: PCI system 0x10DE:0x0057, subsystem 0x1458:0xE000 opened.
Mar 21 12:34:56 mikees-acpi kernel[0]: forcedeth: Mapped from 0xF3101000 of length 4096.
Mar 21 12:34:56 mikees-acpi kernel[0]: forcedeth: Allocated 3072 bytes of contiguous memory for DMA: rx at 0x4125f000, tx at 0x4125f400, wired at 0xc20e000.
Mar 21 12:34:56 mikees-acpi kernel[0]: forcedeth: Found nForce4 LAN with MAC: My:Ma:cA:dd:re:ss.
Mar 21 12:34:56 mikees-acpi kernel[0]: forcedeth: Found PHY 0x5040:0x0003 at address 1.
Mar 21 12:34:57 mikees-acpi kernel[0]: com_triton_forcedeth: Ethernet address My:Ma:cA:dd:re:ss
Mar 21 12:34:57 mikees-acpi kernel[0]: forcedeth: Enabling... 1 2 3 4 5 6 7
Mar 21 12:34:57 mikees-acpi kernel[0]: forcedeth: Starting transmit/receive engines
Mar 21 12:34:57 mikees-acpi kernel[0]: forcedeth: Network link down.

 

ifconfig output:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
 inet 127.0.0.1 netmask 0xff000000 
 inet6 ::1 prefixlen 128 
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 2030
 lladdr My:Ma:cA:dd:re:ss
 media: autoselect <full-duplex> status: inactive
 supported media: autoselect <full-duplex>
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 ether My:Ma:cA:dd:re:ss
 media: autoselect (<unknown type>) status: inactive
 supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 100baseTX <full-duplex> 100baseTX <half-duplex> 1000baseT

 

Any help would be greatly appreciated. :)

 

EDIT: After reviewing all of the posts in this thread, I've noticed that everybody with my motherboard (GA-M55SLI-S4) is having issues.

Link to comment
Share on other sites

Hello to all !

Does some forcedepth work with nForce 5 netvorking(nForce 550, chip is Vitesse VSC(smth))? If yes, which kekst should i use?

I have reaaly big problems with PCI cards..... Cant use them, so to get on-board one up and runnig is my only hope

Link to comment
Share on other sites

Doens't work for me I'm afraid. Still the same:

 

reversed MAC -> link down.

 

Hi, this wont make any difference, a mac address is only used to bind to an IP address. Unless you are using an ancient networking protocol and there is another PC with the same mac address on your subnet.

 

Anyway, to solve your mac address backwards problem, - which isnt really a problem, its just a problem if you have a cable modem that has to be reset very time you boot to a differnt OS -

 

type this in teriminal:

 

% sudo ifconfig en0 ether aa:bb:cc:dd:ee:ff

where en0 is the network interface (numbered from en0, en1, en2 ...) and aa:bb:cc:dd:ee:ff is the desired MAC address in hex notation.

 

I still cant get my card working properly btw!

Link to comment
Share on other sites

 Share

×
×
  • Create New...