Jump to content

New Driver for Realtek RTL8111


Mieze
1,592 posts in this topic

Recommended Posts

@david_m: Please try the development 6 build I posted earlier in this thread and report back. Also make sure you have disabled network boot in BIOS and that there are no other Realtek drivers installed on your system!

 

Mieze

@Mieze A very quick test with dev 6 seems to work much better (I was able to download firefox, which I couldn't before). I think network boot is disabled, and as this is a fresh install I don't think there could be any other drivers already installed.

 

Cheers

 

David

Link to comment
Share on other sites

@Mieze A very quick test with dev 6 seems to work much better (I was able to download firefox, which I couldn't before). I think network boot is disabled, and as this is a fresh install I don't think there could be any other drivers already installed.

 

Cheers

 

David

 

I'll have to rework the chip recognition routine again in order to cope with this situation.

 

Mieze

Link to comment
Share on other sites

Ok, here is release candidate 2 which includes a more compatible chip recognition sequence. Instead of clearing the bits immediately before trying to identify the chip, it sticks to the old scheme and uses the new scheme, which seems to cause problems on some machines, only as a fallback mechanism in case of failure.

    /* Identify chip attached to board. */
	rtl8168_get_mac_version(tp, baseAddr);
    
    if (tp->mcfg == CFG_METHOD_DEFAULT) {
        /* In case chip recognition failed clear corresponding bits... */
        WriteReg32(TxConfig, ReadReg32(TxConfig) & ~0x7CF00000);
        
        /* ...and try again. */
        rtl8168_get_mac_version(tp, baseAddr);
    }

Please use this version instead of RC1.

 

Good luck!

 

Mieze

 


EDIT: SORRY, the Switch isn´t LACP compatible, waiting for the new switch i already ordered...

 

Thanks for the info. I'm looking forward to your first status report when the new switch has arrived.

 

Mieze 

RealtekRTL8111-V1.2.0-RC2.zip

  • Like 1
Link to comment
Share on other sites

Mieze

 

Sorry I haven't followed up on my original post about Link Bonding (LACP), Just supper swamped with work, and haven't had the time on the server to put it offline....

 

Keep up the great work with the driver!

 

Thanks Robert

  • Like 1
Link to comment
Share on other sites

Have been using your v1.1.3 for my PCIe Ethernet card (8168B) and had issues with it randomly dropping out (comes back extremely quickly, is only noticeable every now and again and seems fine while downloading)

 

Going to give v2 RC2 a go and see how I get on :)

 

Great job you are doing here, thanks :D

 

--EDIT--

 

RC2 is doing the same thing, keeps telling me there is no cable connected and then connects, does this randomly. If network traffic is high it does it a lot.

 

What logs are needed, if any?

 

--EDIT 2--

 

Sorry about this, appears I have fixed it :P

Edited by KibosJB
Link to comment
Share on other sites

What did you do to fix it?

 

Mieze

I'll have to do a little bit of testing as I'm not 100% sure what fixed it.

 

I did 2 things at the same time and the problem has gone away.

 

I disabled the on board Ethernet in UEFI and I turned off EEE in the info.plist.

 

The problem has now gone away :)

Link to comment
Share on other sites

 

 

Thanks for the info. I'm looking forward to your first status report when the new switch has arrived.

 

Mieze 

 

Switch arrived...everything went absolutely fine, LACP working properly, even with large files...still using RC1 (GA-Z77N-WIFI -> Headless Server)

Thanks....

 

What´s about the intelE1000e kext? Like to get the same working kext for a HP NC360T  :angel:  ;) (large files, jumbo frames)

 

Screen-LACP-Realtek.png

Link to comment
Share on other sites

Switch arrived...everything went absolutely fine, LACP working properly, even with large files...still using RC1 (GA-Z77N-WIFI -> Headless Server)

 

Thank you for the information. I guess there are more users out there being interested in Link Aggregation and it will surely help them.

What´s about the intelE1000e kext? Like to get the same working kext for a HP NC360T  :angel:  ;) (large files, jumbo frames)

 

 

Well, it has been delayed by the RTL8100 driver development. I decided to write that driver first because I was sick of being asked to add support for the FE NICs. Besides, due to the similarity between the RTL8111 and the RTL8100 families it was less work than starting a entirely new project.

I disabled the on board Ethernet in UEFI and I turned off EEE in the info.plist.

 

 

Yeah, I guess it was EEE because it doesn't seem to work with some switches. My 2011 iMac with its Broadcom NIC has the same problem. Once EEE is enabled there is no stable connection.  :(

 

Mieze

Link to comment
Share on other sites

@Mieze

I'm using 1.2.0-RC2. This is the first time for me losing internet connection, without sleeping, using your driver.  :D

It seems I have the same problem as post #521.

4/13/14 11:57:08.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx timeout. Lost interrupt?
4/13/14 11:57:09.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx stalled? Resetting chipset. ISR=0x0, IMR=0x803f.
4/13/14 11:57:13.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Link up on en0, 1-Gigabit, Full-duplex, flow-control
4/13/14 11:57:16.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx timeout. Lost interrupt?
4/13/14 11:57:17.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx stalled? Resetting chipset. ISR=0x0, IMR=0x803f.
4/13/14 11:57:20.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Link up on en0, 1-Gigabit, Full-duplex, flow-control
4/13/14 11:57:23.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx timeout. Lost interrupt?
4/13/14 11:57:24.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx stalled? Resetting chipset. ISR=0x0, IMR=0x803f.
4/13/14 11:57:28.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Link up on en0, 1-Gigabit, Full-duplex, flow-control
4/13/14 11:57:31.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx timeout. Lost interrupt?
4/13/14 11:57:32.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx stalled? Resetting chipset. ISR=0x0, IMR=0x803f.
4/13/14 11:57:36.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Link up on en0, 1-Gigabit, Full-duplex, flow-control
4/13/14 11:57:39.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx timeout. Lost interrupt?
4/13/14 11:57:40.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx stalled? Resetting chipset. ISR=0x0, IMR=0x803f.
4/13/14 11:57:44.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Link up on en0, 1-Gigabit, Full-duplex, flow-control
4/13/14 11:57:47.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx timeout. Lost interrupt?
4/13/14 11:57:48.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx stalled? Resetting chipset. ISR=0x0, IMR=0x803f.
4/13/14 11:57:51.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Link up on en0, 1-Gigabit, Full-duplex, flow-control
4/13/14 11:57:54.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx timeout. Lost interrupt?
4/13/14 11:57:55.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx stalled? Resetting chipset. ISR=0x0, IMR=0x803f.
4/13/14 11:57:59.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Link up on en0, 1-Gigabit, Full-duplex, flow-control
4/13/14 11:58:02.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx timeout. Lost interrupt?
4/13/14 11:58:03.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx stalled? Resetting chipset. ISR=0x0, IMR=0x803f.
4/13/14 11:58:07.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Link up on en0, 1-Gigabit, Full-duplex, flow-control
4/13/14 11:58:10.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx timeout. Lost interrupt?
4/13/14 11:58:11.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx stalled? Resetting chipset. ISR=0x0, IMR=0x803f.
4/13/14 11:58:14.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Link up on en0, 1-Gigabit, Full-duplex, flow-control
4/13/14 11:58:17.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx timeout. Lost interrupt?
4/13/14 11:58:18.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx stalled? Resetting chipset. ISR=0x0, IMR=0x803f.
4/13/14 11:58:22.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Link up on en0, 1-Gigabit, Full-duplex, flow-control
4/13/14 11:58:25.000 PM kernel[0]: Ethernet [RealtekRTL8111]: Tx timeout. Lost interrupt?

Link to comment
Share on other sites

@shiecldk: Please send me you your complete kernel logs including at least the last boot sequence as I need to see it in order to find out what is going on.

 

The problem with the modified chip recognition sequence is that Realtek integrated the id bits into the transmitter config register. Unfortunately some of the id bits seem to have a different meaning in some of the RTL8111 family members which makes the modified sequence really dangerous, in particular because I don't have datasheets.

 

After all it looks like there is no save way. Maybe I should make the modified id sequence a runtime option which is disabled by default.

 

Edit: Did you upgrade your BIOS or have you modified it's settings in between?

 

Mieze

Edited by Mieze
  • Like 1
Link to comment
Share on other sites

Yeah, I guess it was EEE because it doesn't seem to work with some switches. My 2011 iMac with its Broadcom NIC has the same problem. Once EEE is enabled there is no stable connection.  :(

 

Mieze

 

Well after disabling EEE I have had a perfect connection since :)

 

Everything is now working perfectly. I don't appear to have a SINGLE issue with Mac OS X now :D

 

Thank you very much for working on this, great job :D

Link to comment
Share on other sites

Hi

I did a MyHack 10.9 Mavericks installation. Every thing went fine, except RTL8111 on board of my Intel DG31PR motherboard which is a RTL8111-GR.

This may be a very basic question, but I did as the installation said and I can't make the card appear on the network control panel to add it manually.

 

Is it there some other thing I should do like add some text to the .plist files, or have another kext installed too?

 

I have no other rtl kext file inside  S/L/E.

 

Let me tell you that this worked before with realtek mac drivers installer, but with problems plugging and unplugging the cable, so I wanted to test this.

 

Link to comment
Share on other sites

I didn't. But sometimes my Bios will reset (boot fail). Could this be the problem?

 

Possible, provided you don't restore the settings exactly as they were. As of now I haven't received any kernel logs from you.

 

Mieze

Link to comment
Share on other sites

Possible, provided you don't restore the settings exactly as they were. As of now I haven't received any kernel logs from you.

 

Mieze

Sorry, Mieze

 

I thought I've mailed you my logs...  :surprised:

I'll PM you again.

 

I found out that I saved the wrong file named "All Messages.aslquery." Now the logs are gone, so... :P

 

Btw, I remembered that I lost the internet connection when I was using Parallels Desktop 9. Hope this helps...

Edited by shiecldk
Link to comment
Share on other sites

Btw, I remembered that I lost the internet connection when I was using Parallels Desktop 9. Hope this helps...

 

I don't recommend to use virtualization with this driver because it looks like that strange things might happen when a VM is running and I won't be able to resolve this issue unless someone sends me enough information so that I can understand what is going on.

 

Mieze

Link to comment
Share on other sites

I don't recommend to use virtualization with this driver because it looks like that strange things might happen when a VM is running and I won't be able to resolve this issue unless someone sends me enough information so that I can understand what is going on.

 

Mieze

I've been using Parallels with this driver and I don't seem to have a single issue with it.

Link to comment
Share on other sites

I've been using Parallels with this driver and I don't seem to have a single issue with it.

 

Thanks for the information. Maybe those having problems simply misconfigured their system but I don't have enough information to identify any reason for the trouble they reported.

 

Mieze

Link to comment
Share on other sites

Thanks for the information. Maybe those having problems simply misconfigured their system but I don't have enough information to identify any reason for the trouble they reported.

 

Mieze

Well I will probably be running this extensively over the next few weeks and will post here should I have any problems. I run Windows and Linux in Parallels and have yet to have any issues, Windows is sharing the adapter (uses the same IP address as Mac) and Linux connects to the actual network (gets its own IP address from the router).

Link to comment
Share on other sites

×
×
  • Create New...