Jump to content

Intel 82566 NIC


monsti
 Share

38 posts in this topic

Recommended Posts

Hello,

 

here a view words on the Intel 82566 NIC. This card is use in recent mainboards, e.g. some Asus boards.

 

This card won't work with the common hacks to the AppleIntel8255x.kext in Info.plist. So don't try it - no way.

 

I checked the Linux e1000 driver and i found out that the 82566 has some problems:

 

/usr/src/linux/drivers/net/e1000/e1000_hw.c: (This is from a recent 2.6 kernel)

 

/******************************************************************************

* Work-around for 82566 power-down: on D3 entry-

* 1) disable gigabit link

* 2) write VR power-down enable

* 3) read it back

* if successful continue, else issue LCD reset and repeat

*

* hw - struct containing variables accessed by shared code

******************************************************************************/

void

e1000_phy_powerdown_workaround(struct e1000_hw *hw)

[...]

 

/******************************************************************************

* Work-around for 82566 Kumeran PCS lock loss:

* On link status change (i.e. PCI reset, speed change) and link is up and

* speed is gigabit-

* 0) if workaround is optionally disabled do nothing

* 1) wait 1ms for Kumeran link to come up

* 2) check Kumeran Diagnostic register PCS lock loss bit

* 3) if not set the link is locked (all is good), otherwise...

* 4) reset the PHY

* 5) repeat up to 10 times

* Note: this is only called for IGP3 copper when speed is 1gb.

*

* hw - struct containing variables accessed by shared code

******************************************************************************/

static int32_t

e1000_kumeran_lock_loss_workaround(struct e1000_hw *hw)

 

[...]

 

Also the init needs some special treatment.

 

 

Conclusion: The 82566 chip is a big pice of {censored}! But at some point of time apple will have to fix their AppleIntel8255x.kext.

 

Anyway - what we need is a driver! Here two suggestions:

 

1) Can somebody with an Apple Developer Network access please try extracting the 8255x (or a possible successor) from the 10.5.2 beta patches?

 

2) I try to add the linux patches to the 8255x Kext. But i need some help. Somebody with coding skills or knowlege on the IOKit please PM me.

 

 

Happy hackint0shing.

Link to comment
Share on other sites

You can read the thread for more details. Bigdaddyrob2g said he worked with someone from Small Tree, which is a company that wrote several ethernet drivers for their mac based products. (Google it :) )

 

Thx. You helped me with the Small Tree hint. Their readme also contains some hints that the 82566 is a damn pice of s*it. After a suspend the network might be not reconnected. That's why the linux guys wrote theres workarounds.

 

I am currently still hacking my own driver based on the Darwin source. But i currently have no success in reading the EPROM status bits.

Link to comment
Share on other sites

I am currently still hacking my own driver based on the Darwin source. But i currently have no success in reading the EPROM status bits.

Did the same thing but haven't really had time to sit down and look at it.

 

Ars Technica has a great tutorial about writing a ethernet driver in OS X that might be useful to look over.

If you can't find it and want it PM me, I think PDF version of it.

Link to comment
Share on other sites

Great work, you can hopefully text bigdaddyrob2g with your findings, or make your own driver.

His number is on post 276 on the xps 410 resource extravaganza.

as for me, you may be asking why I'm not coding. I'll tell you, I wish I could, but I have absolutely no programming knowledge, I just know a lot on how to operate windows, and the innards of computers. I don't enjoy this position a lot :D

Link to comment
Share on other sites

  • 4 weeks later...
Did the same thing but haven't really had time to sit down and look at it.

 

Ars Technica has a great tutorial about writing a ethernet driver in OS X that might be useful to look over.

If you can't find it and want it PM me, I think PDF version of it.

 

 

I'd love a linky to this :D Can't find it anywhere on the site.

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

My HP DC7700 comes with the Intel 82566 built in, I replaced it with a Intel 82558 PCI card and OSX finds it out of the box, I am using the Compaq PCI card model NC3121, can be found on ebay cheap.

Link to comment
Share on other sites

Ok so I decided to start writing a driver that will work with the 82566. I have EEPROM access working and I can pull the MAC address. The driver registers with OSX and pops up the "new network interface found" dialog. Some transmit/receive logic and it should be usable in a limited capacity (auto-negotiation only, no workarounds or fixes yet)

 

How many different systems are based on this chip? I have a laptop, otherwise I would have just popped a new NIC in there and not bothered with it...

 

- Turbo

Link to comment
Share on other sites

Hi Turbo,

 

I hope you get it working, it has been a long standing issue for many users like me. I think that almost any Intel motherboard based on the 965 chipset or newer is using some variant of the 82566 NIC in my case is a DP965LT. If you need any beta testing let me know I will do it for the simple pleasure of see this {censored} live and kicking, because as many hopeless owners - until today - of this NIC I decided to buy a PCI replacement.

 

Cheers and wish you full success.

Link to comment
Share on other sites

Ok so I decided to start writing a driver that will work with the 82566. I have EEPROM access working and I can pull the MAC address. The driver registers with OSX and pops up the "new network interface found" dialog. Some transmit/receive logic and it should be usable in a limited capacity (auto-negotiation only, no workarounds or fixes yet)

 

How many different systems are based on this chip? I have a laptop, otherwise I would have just popped a new NIC in there and not bothered with it...

 

- Turbo

 

wow! That's some great work man! =) Do you think that this driver could work for the Intel 82575EB to?

Link to comment
Share on other sites

  • 3 weeks later...
Ok so I decided to start writing a driver that will work with the 82566.

 

If you need any help, let me know. I was thinking about starting this as well, but if you've already got a start, awesome.

 

How many different systems are based on this chip?

 

Tons. Most ultra-new laptops have this chip, or a chip like it. HP has started using it, and IBM/Lenovo are using it in the T61, R61, and X61.

Link to comment
Share on other sites

  • 4 weeks later...

Turbo has a blog? Where?

 

I just bought a new Intel DG35EC mobo and it, too, has this ethernet chip on it. All motherboards with the ICH8 chipset probably have one. I'm not planning on running OSX on the new machine I'm building, but in the future who knows?

 

The Ars articles by cremes were helpful to me when I wrote my latest driver, but only up to a point. He goes overboard with the C++ classes in my opinion, and that makes his tulip driver overly complicated. If you're new to IOKit device drivers then creme's driver is going to confuse you more than it will help you. By all means read what he has to say, but I wouldn't use that driver code as a starting point. Some of the samples available from Apple's developer site are easier to understand (that doesn't mean they are "easy").

 

creme's driver was written in 2002, way before Leopard was released, so it doesn't completely represent the "state of the art" in OSX device drivers.

Link to comment
Share on other sites

Hi

I have the Intel gigabit 82566 network onboard.

The only thing that does not work for me.

Anywone can help me?

 

Post #11 above. :) Some of you people don't deserve any help, I swear. Can't you read? You probably didn't even bother.

Link to comment
Share on other sites

Post #11 above. :D Some of you people don't deserve any help, I swear. Can't you read? You probably didn't even bother.

 

Easy cowboy, while i totally agree with what you're saying, its unfortunate but some people need to have things spelled out in ascii art. =/

 

 

tubro's blog can be found here:

 

http://0xfeedbeef.com/osx86/

 

He apparently reports that his nic is working but theres no link to download it!

 

/facepalm

 

 

Turbo, can you please post the link to download the sacred driver!!!

 

.. with cream and sugar on top!

Link to comment
Share on other sites

 Share

×
×
  • Create New...