Jump to content

New Driver for Realtek RTL8111

Realtek RTL8111 driver

  • Please log in to reply
1216 replies to this topic

#1201
Mieze

Mieze

    Giant Cat

  • Developers
  • 1,137 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

ok. cheers. perhaps modifying the bios a bit may help. (but of course, that isn't what this thread about.) :)

You might want to send me an IOReg dump. It might help me to find out, what the BIOS has done to the NIC.

 

Mieze



#1202
Henry2010

Henry2010

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts

I don't have any problem. but if it would help other people, here it is. Cheers :w00t:



#1203
Mieze

Mieze

    Giant Cat

  • Developers
  • 1,137 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

I don't have any problem. but if it would help other people, here it is. Cheers :w00t:

No, I need an IOReg dump of somebody with a non-working driver, but thank you for making the effort anyway.

 

Mieze



#1204
ammoune78

ammoune78

    INVOLVE THE FINDER

  • Members
  • PipPipPipPipPip
  • 366 posts
  • Gender:Male
  • Location:Morocco
  • Interests:Hardware, Firmware and OS X

Hi Mieze, thank's for this good work!

 

For me with this driver i never had problem, and i already integrated it inside my Mobo Bios because i use Ozmosis bootloader, and it work like charm! Because of size problem in my Mobo which have a 64 Mb bios chip, and i need to add more files as AppleALC, so i hope if i can decrease the size of the RTL kext!

 

Now my question is, can i build one with only support for my RTL8169E-VL/8111E-VL Ethernet and RTL8188CU Wireless, i'm happy with the current one which its compressed size is 135 Kb, but it will be a great pleasure for me if i can decrease its size with Xcode before generating its FFS file!

 

Thanks again for your good work, and best regards ^_^ !


Edited by ammoune78, 11 December 2016 - 01:09 AM.


#1205
Mieze

Mieze

    Giant Cat

  • Developers
  • 1,137 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

Now my question is, can i build one with only support for my RTL8169E-VL/8111E-VL Ethernet and RTL8188CU Wireless, i'm happy with the current one which its compressed size is 135 Kb, but it will be a great pleasure for me if i can decrease its size with Xcode before generating its FFS file!

In theory it's possible but extremely laborious as you would have to remove a lot of code and the worst thing of all is that this procedure would have to be redone after every update which is nothing I do recommend.

 

Mieze



#1206
InsanelyGuy

InsanelyGuy

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Hello, the driver is working (Im typing :)   but from time to time the network is freezing (StarCraft 2). Then I have to power off and on my Network Switch. It's not a switch issue (tested some different switches). 

 

I'm using Sierra 10.12.2 newest update and the RTL8111.kext 2.2.1   (with Yosemite I had not this issue.)

 

I think thats the network "upload" freeze bug?

 

How I can prevent a network freeze?



#1207
Mieze

Mieze

    Giant Cat

  • Developers
  • 1,137 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

Hello, the driver is working (Im typing :)   but from time to time the network is freezing (StarCraft 2). Then I have to power off and on my Network Switch. It's not a switch issue (tested some different switches). 

 

I'm using Sierra 10.12.2 newest update and the RTL8111.kext 2.2.1   (with Yosemite I had not this issue.)

 

I think thats the network "upload" freeze bug?

 

How I can prevent a network freeze?

I don't know what you are talking about because there is no such bug in the driver. If you want help, please send me your kernel logs showing at least one incident.

 

Mieze



#1208
nms

nms

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

Mieze,

I saw freshier sources (8.043) at realtek site. Anything useful in it?



#1209
Mieze

Mieze

    Giant Cat

  • Developers
  • 1,137 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

Mieze,

I saw freshier sources (8.043) at realtek site. Anything useful in it?

I compared the new Linux source against the previous version and found nothing which would justify an update as most of the changes are related to changes inside the Linux kernel.

 

Mieze


  • nms likes this

#1210
Dith

Dith

    InsanelyMac Protégé

  • Members
  • Pip
  • 25 posts
  • Gender:Not Telling

I don't know what you are talking about because there is no such bug in the driver. If you want help, please send me your kernel logs showing at least one incident.

 

Mieze

 

I'm experiencing possibly the same problem. I believe it also has been reported earlier in this thread but the person opted for placing a new network card. The issue I'm having is that my network connection gets dropped which seems to match what these two people describe. There are no significant kernel messages that give any direction in debugging this related to Ethernet or networking. I have tested the connection using a different switch, network cable and operating system and the issue only pops up in OSX no other computer on the network exhibits this issue. The issue also presented itself more recently since El Capitan and Sierra but it could also be related to what I'm describing next since I started using those services more often since those installations. I've tried three versions of your driver (v2.0.0 - v2.1.0d1 - v2.2.1) and they all result in this issue. I've also recreated my DSDT just incase. 

 

The issue seems to pop up whenever I play Spotify or YouTube videos for a length of time and then leave the computer idle for a while. This is not always the case though sometimes it occurs while I'm surfing and opening multiple websites quickly or browsing while having Spotify stream music. It seems the connection to the Internet is lost and possibly related to routing. I have checked all the bios settings related to any power savings/management as you described and even tried different variations of them. Under Sys Pref it shows the NIC is still connected with full DHCP lease assigned (IP, gateway, dns etc.). I've also tried setting duplex to different values manually and changing MTU. Pinging IP addresses/hosts on the Internet doesn't work, what does work is pinging the internal network. What also keeps working is any NFS, SMB or AFP connections on the LAN as I never have problems when this issue occurs while streaming video or dropping SSH connections to my NAS. To solve the issue clicking DHCP renew or using a command line version of this will resolve the Internet connectivity issue. I can't find anything unusual in the router log either. 

 

The issue has really been doing my head in as I've made many attempts and invested lots of time trying to diagnose the problem but there are no clear leads I can find at least. I can find console messages related to HTTP failures but those are a by product of what's causing this issue.

error 21:59:17.582157 +0100 apsd NSURLConnection finished with error - code -1001
error 21:59:17.582628 +0100 apsd HTTP load failed (error code: -999 [1:89])
error 21:59:48.579997 +0100 apsd NSURLConnection finished with error - code -1001
error 21:59:48.580686 +0100 apsd HTTP load failed (error code: -999 [1:89])
error 22:00:19.002001 +0100 com.apple.preference.network.remoteservice ERROR: Setting <private> as the first responder for window <private>, but it is in a different window ((null))! This would eventually crash when the view is freed. The first responder will be set to nil.
<private>
error 22:00:22.584382 +0100 apsd NSURLConnection finished with error - code -1001
error 22:00:22.584916 +0100 apsd HTTP load failed (error code: -999 [1:89])
error 22:00:53.580467 +0100 apsd NSURLConnection finished with error - code -1001
error 22:00:53.581062 +0100 apsd HTTP load failed (error code: -999 [1:89])
error 22:08:11.965391 +0100 helpd nw_socket_connect connectx failed: [64] Host is down
error 22:08:11.965733 +0100 helpd TIC TCP Conn Failed [2:0x7ffe4292eb40]: 1:64 Err(64)
error 22:08:11.966113 +0100 helpd HTTP load failed (error code: -1004 [1:64])
error 22:08:11.966179 +0100 helpd NSURLConnection finished with error - code -1004
In the end since I've been unable to resolve the issue I've opted for creating a launchd script placed in /Library/LaunchDaemons/com.dith.dhcprenew (sudo nano -w /Library/LaunchDaemons/com.dith.dhcprenew.plist from the terminal). Place the below contents in com.dith.dhcprenew, you might need to change en0 to a different network interface if yours is not assigned to en0. Followed by sudo launchctl load /Library/LaunchDaemons/com.dith.dhcprenew.plist to load the script.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>com.dith.dhcprenew</string>


  <key>ProgramArguments</key>
  <array>
    <string>bash</string>
    <string>-c</string>
    <string>echo &quot;add State:/Network/Interface/en0/RefreshConfiguration temporary&quot; | sudo scutil</string>
  </array>


  <key>Nice</key>
  <integer>1</integer>


  <key>StartInterval</key>
  <integer>300</integer>


  <key>RunAtLoad</key>
  <true/>


  <key>StandardErrorPath</key>
  <string>/tmp/dhcp-renew.err</string>


  <key>StandardOutPath</key>
  <string>/tmp/dhcp-renew.out</string>
</dict>
</plist>

What this script does is issue a DHCP renew every 5 minutes. The DHCP renew does not cause a drop in connection so there should be no noticeable impact. I started with 5 minutes (StartInterval 300 seconds) but will lower this value if the issue still interferes too much with my computer use. 

Attached Files



#1211
redbaty

redbaty

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

Hello Mieze, I've created a separate thread for this problem i'm having but now I realize that it probably is best to post it here. I'm copying its content here and deleting it.

 

Hello guys, I'm using a RTL8111 chip with mieze's kexts on yosemite, but altough it recognizes properly it always says that the ethernet cable is unplugged, on the last system.log entries it says:

 

 

Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: PCIe ASPM support disabled.
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: EEE support enabled.
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: RxPoll support enabled.
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: TCP/IPv4 segmentation offload enabled.
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: TCP/IPv6 segmentation offload enabled.
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: TCP/IPv6 checksum offload enabled.
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: Version 2.2.1 using interrupt mitigate value 0xcf58. Please don't support tonymacx86.com!
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: PCI power management capabilities: 0xffc3.
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: PME# from D3 (cold) supported.
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: PCIe link capabilities: 0x00477c11, link control: 0x0040.
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: RTL8168G/8111G: (Chipset 20) at 0xffffff81085cd000, 40:8d:5c:80:4e:3f
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: Device is WoL capable.
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: MSI interrupt index: 1
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: kIOEthernetWakeOnMagicPacket added to filters.
Feb 21 13:24:32 localhost kernel[0]: Ethernet [RealtekRTL8111]: Already in power state 1.
Feb 21 13:25:48 localhost kernel[0]: Ethernet [RealtekRTL8111]: No medium selected. Falling back to autonegotiation.

 

I've uploaded the entire system.log file here.

 

PS: Use only the Feb 21 entries.

PS2: On windows using 3DPNet, it recognizes my chipset as 8111C and on this kext it recognizes as 8111G

PS3: On mavericks with the same kext (Mieze 1.2.3) it runs perfecly

 

Update: With this driver it recognizes the cable, but can't get any IP Addresses.



#1212
Mieze

Mieze

    Giant Cat

  • Developers
  • 1,137 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

@redbaty: Which mainboard do you have?

 

EDIT: Update your machine to Sierra (or at least El Capitan) and try the latest Version of the driver. If it doesn't work, we'll see what I can do for you but I'm not going to waste my time with Yosemite. Sorry, but this would be too much work.

 

Mieze


Edited by Mieze, 22 February 2017 - 10:43 PM.


#1213
redbaty

redbaty

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

@Mieze I have a GA-970A-DS3P Rev 2.0, I'll try updating it to Sierra tomorrow and post the results. Anyway thanks for your reply!



#1214
aleesteva

aleesteva

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts

I installed the kext and the network card has been recognized, but has trouble connecting to the Internet. Sometimes resetting the modem or by unplugging and plugging the power cord starts to function properly. I enclose two pictures that show the error. the MB in the integrated network card is Realtek RTL8111h, I added a wireless PCI TPLINK TL-WN881ND and has no problems
sorry for my bad english (google translator)

Attached Files

  • Attached File  1.png   99.42KB   1 downloads
  • Attached File  2.png   85.74KB   1 downloads


#1215
lazzy

lazzy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 145 posts
  • Location:paris

@meize

hello i have same issue it shows ethernet but internet doesnt work.

How can i dump information for you?

-PCI Devices-
Ethernet controller        : Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
 



#1216
coudy

coudy

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts

Hello @meize, 

I talk with you about slow upload on this driver (#895), but I was able to solve it with disabling TSO. Now I have changed motherboard, but it is equipped with same LAN chipset RTL8111C. I have installed latest driver, and again I have problem with slow upload. 

I have already disabled TSO4 and TSO6 in driver info.plist file and recreated cache with "kext Utiliy".

 

here are iper3 logs:

iperf3 -c nas -t20 -i5 -R
Connecting to host nas, port 5201
Reverse mode, remote host nas is sending
[  5] local 192.168.2.10 port 49266 connected to 192.168.2.5 port 5201
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-5.00   sec   557 MBytes   934 Mbits/sec
[  5]   5.00-10.00  sec   557 MBytes   934 Mbits/sec
[  5]  10.00-15.00  sec   557 MBytes   934 Mbits/sec
[  5]  15.00-20.00  sec   557 MBytes   934 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-20.00  sec  2.18 GBytes   935 Mbits/sec   18             sender
[  5]   0.00-20.00  sec  2.18 GBytes   934 Mbits/sec                  receiver

iperf Done.



iperf3 -c nas -t20 -i5
Connecting to host nas, port 5201
[  5] local 192.168.2.10 port 49758 connected to 192.168.2.5 port 5201
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-5.00   sec  72.9 MBytes   122 Mbits/sec
[  5]   5.00-10.00  sec  62.6 MBytes   105 Mbits/sec
[  5]  10.00-15.00  sec  62.4 MBytes   105 Mbits/sec
[  5]  15.00-20.00  sec  61.6 MBytes   103 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-20.00  sec   259 MBytes   109 Mbits/sec                  sender
[  5]   0.00-20.00  sec   259 MBytes   109 Mbits/sec                  receiver

Any help ? 

Thank You 



#1217
crackasmurf

crackasmurf

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Howdy

 

Just did a fresh install of Sierra on my old hackintosh that previously had 10.6.8.

I have EP45-UD3P and Trendent TEG-PCITXR HW:3.1R.  I used ##### to try adding the realtek drivers,

but can't seem to get the network to work (it does work via USB adapter).

 

Any reason why this network card will not work with Sierra & these drivers?

Am I doing something dumb?

Should I just buy a different card to make it easier?

Or just be happy it works via USB and wait until I can afford some new hardware?  :)

 

Here is attempt to try the 2.1.0d1 version.  I think I tried all three on ##### 9 (deleting old directories in between)

Realtek RTL8168C/8111C PCI Express Gigabit Ethernet:

  Name: ethernet
  Type: Ethernet
  Bus:  PCI
  Vendor ID:    0x10ec
  Device ID:    0x8168
  Subsystem Vendor ID:  0x1458
  Subsystem ID: 0xe000
  Revision ID:  0x0002
  Link Width:   x1
  BSD name:     en1
  Kext name:    RealtekRTL8111.kext
  Location:     /Library/Extensions/RealtekRTL8111.kext
  Version:      2.1.0d1


Update:  Surely there was a reason I had originally installed that trendnet network card, but I just plugged cable into onboard LAN and it worked.  I also noted that previously with OSX 10.6.8, the trendnet network card was using AppleRTL8169Ethernet.kext.  I am not sure how to get this for Sierra.

Attached Files








1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

© 2016 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy