Jump to content
Mieze

New Driver for Realtek RTL8111

1,467 posts in this topic

Recommended Posts

Why? Binaries can be found here on IM in the Download section. Placing them on GitHub would require additional work to keep them in sync but if you give me a good reason to do so, I might rethink my decision.

 

Mieze

 

FWIW, I had great success when I put a built binary under the "release" section on one of my github projects.  The nice thing is you can specify some notes about the release, and you can assign a git tag or branch that corresponds to it too.  Then just upload the binary there. its easy and nice way to provide the binary, github is providing the disk space for it.  It has been very much appreciated by users.  FWIW.

Share this post


Link to post
Share on other sites
Advertisement

I compile and build succeeded in Xcode 9.0  from open source kext RealtekRTL8111 https://github.com/Mieze/RTL8111_driver_for_OS_X 

 

Not code change, default setting but only I set Mac Development Target and Base SDK for only run on 10.13

 

@Mieze see, only Xcode display warning: 

Unused function 'rtl8168_set_bios_setting' 

 

for:  rtl8168_set_bios_setting(struct net_device *dev)

 

Please testing and feedback raport 

RealtekRTL8111.kext---xcode-9.0.zip

Share this post


Link to post
Share on other sites

I compile and build succeeded in Xcode 9.0  from open source kext RealtekRTL8111 https://github.com/Mieze/RTL8111_driver_for_OS_X 

 

Not code change, default setting but only I set Mac Development Target and Base SDK for only run on 10.13

 

@Mieze see, only Xcode display warning: 

 

for:  rtl8168_set_bios_setting(struct net_device *dev)

 

Please testing and feedback raport 

So far, so good, so what?

 

Mieze

Share this post


Link to post
Share on other sites
I want to report a problem with the RealtekRTL8111 driver v2.2.1

 

It seemed to work nicely on my new El Capitan setup, but after much frustration, turned out to be incompatible with the osx nfsd daemon. I use this machine as an NFS server for streaming to various Kodi devices on my LAN ( http://kodi.wiki/view/NFS#NFS_sharing_from_OS_X). Large videos would not start playing, and smaller videos (lower bitrate, and thus less demanding of a fast ethernet connection, I assume) would only work intermittently. Often they would stutter.

 

I hope this problem can be easily reproduced across various hardware and software versions, but here is my setup: GA-G31M-ES2L motherboard with a RTL 8111C chip. I was in the process of upgrading this machine from osx 10.8.5 to 10.11.6. After troubleshooting potential firewall issues and Apple possibly botching up the nfsd daemon, I eventually went back to the Lnx2Mac RealtekRTL81xx.kext v0.0.90 that I'd used for a long time on Mountain Lion. Everything worked as normal with that old driver.

Share this post


Link to post
Share on other sites

 

I want to report a problem with the RealtekRTL8111 driver v2.2.1
 
It seemed to work nicely on my new El Capitan setup, but after much frustration, turned out to be incompatible with the osx nfsd daemon. I use this machine as an NFS server for streaming to various Kodi devices on my LAN ( http://kodi.wiki/view/NFS#NFS_sharing_from_OS_X). Large videos would not start playing, and smaller videos (lower bitrate, and thus less demanding of a fast ethernet connection, I assume) would only work intermittently. Often they would stutter.
 
I hope this problem can be easily reproduced across various hardware and software versions, but here is my setup: GA-G31M-ES2L motherboard with a RTL 8111C chip. I was in the process of upgrading this machine from osx 10.8.5 to 10.11.6. After troubleshooting potential firewall issues and Apple possibly botching up the nfsd daemon, I eventually went back to the Lnx2Mac RealtekRTL81xx.kext v0.0.90 that I'd used for a long time on Mountain Lion. Everything worked as normal with that old driver.

 

I've explained it serval times before that this is a power management issue and that I'm not going to waste my time with 10 years old hardware. Sorry, but it's not worth the effort.

 

Mieze

Share this post


Link to post
Share on other sites

I've explained it serval times before that this is a power management issue and that I'm not going to waste my time with 10 years old hardware. Sorry, but it's not worth the effort.

 

Mieze

OK, sorry to hear you're not developing this driver any longer. Do you know of any workarounds for this issue, such as disabling EEE? If not, can you suggest any older versions of this driver or other branches that may not have the problem? I would like to use something better than the Lnx2Mac kext, it breaks if I set a custom MTU.

Share this post


Link to post
Share on other sites

OK, sorry to hear you're not developing this driver any longer. Do you know of any workarounds for this issue, such as disabling EEE? If not, can you suggest any older versions of this driver or other branches that may not have the problem? I would like to use something better than the Lnx2Mac kext, it breaks if I set a custom MTU.

Looks like you've got it wrong! I will continue to provide updates but I won't wast my time with outdated hardware which will be recycled in the near future.

 

By the way, the power management issue is not a driver bug, it's a weakness of OS X because Apple has given up support for those machines a long time ago.

 

Mieze

Share this post


Link to post
Share on other sites

I'm going to be using this machine for many years, so your recycle comment is off base. I appreciate your development efforts, but don't see that as justifying you yelling at me and repeating yourself. I think my questions about known workarounds or alternate versions are valid and think you should maybe not bother posting non-answers that could deter others from helping.

Share this post


Link to post
Share on other sites

I'm going to be using this machine for many years, so your recycle comment is off base. I appreciate your development efforts, but don't see that as justifying you yelling at me and repeating yourself. I think my questions about known workarounds or alternate versions are valid and think you should maybe not bother posting non-answers that could deter others from helping.

Are you looking for help or are you looking for a fight? I just told you what I told anybody who asked this kind of question and you'll probably understand that I get tired answering the same old questions over and over again when the answer could have been googled easily.

 

Personally I don't care what you are doing with this machine and I don't prevent anybody from doing anything. I just wanted to make clear that I won't spend my time with outdated hardware because I consider it to be a waste of (my spare) time.

 

Mieze

Share this post


Link to post
Share on other sites

Hello Meize, I am from India.  I had just installed sierra on my HP Laptop.  I5 6200 U, 250 GB SSD, 16 GB DDR3, Intel HD 520 and Nvdia 940 M.  Most of the hard ware works.  However, the ethernet is not working. Tried your drivers.  But still no success.  Installed the kext in S/L/E.  But while booting, it does not recognize.  Any ideas how to fix? 

 

In Windows System Information it shows as Realtek Gigabit PCI E.   Thanks.

Share this post


Link to post
Share on other sites

Hello Meize, I am from India.  I had just installed sierra on my HP Laptop.  I5 6200 U, 250 GB SSD, 16 GB DDR3, Intel HD 520 and Nvdia 940 M.  Most of the hard ware works.  However, the ethernet is not working. Tried your drivers.  But still no success.  Installed the kext in S/L/E.  But while booting, it does not recognize.  Any ideas how to fix? 

 

In Windows System Information it shows as Realtek Gigabit PCI E.   Thanks.

Please send me your kernel logs which include a full boot sequence. For instructions please refer to post#1 of this thread.

 

Mieze

Share this post


Link to post
Share on other sites

@sarvodaya1219: According to your IOReg dump you've got an RTL810x Fast Ethernet Controller which means that you are using the wrong driver.

 

Mieze

Share this post


Link to post
Share on other sites

Hello Mieze, when the driver will be updated if you know, I have problems with upload stream, the download stream is OK, but upload is bad in High Sierra, previously in Sierra the upload stream is OK, my ethernet is RTL8111B linking at Gigabit connection,  I have 300/300 Mb FTTH in Spain of Movistar. Thanks.

Share this post


Link to post
Share on other sites

Hello Mieze, when the driver will be updated if you know, I have problems with upload stream, the download stream is OK, but upload is bad in High Sierra, previously in Sierra the upload stream is OK, my ethernet is RTL8111B linking at Gigabit connection,  I have 300/300 Mb FTTH in Spain of Movistar. Thanks.

Which mainboard/CPU do you have?

 

Mieze

Share this post


Link to post
Share on other sites

Hello Mieze, when the driver will be updated if you know, I have problems with upload stream, the download stream is OK, but upload is bad in High Sierra, previously in Sierra the upload stream is OK, my ethernet is RTL8111B linking at Gigabit connection,  I have 300/300 Mb FTTH in Spain of Movistar. Thanks.

Ok, I did solved it, for anyone that have the previous problem, you must change from automatically auto-negotiation link in Ethernet to 1000 BaseT  in my case that I have 300/300 Mb.  :thumbsup_anim:  :thumbsup_anim:

I Hope I helped you.  :thumbsup_anim:

Which mainboard/CPU do you have?

 

Mieze

Thanks for your attention Mieze.  :D  :D

Share this post


Link to post
Share on other sites

Hi Meize,

 

I have Realtek 8168E card and 10.13.1 mac.

 

From AIDA64:

Realtek RTL8168/8111 PCI-E Gigabit Ethernet Adapter (PHY: Realtek RTL8111)  PCI
PCI\VEN_10EC&DEV_8168&SUBSYS_10031025&REV_0E

My hardware is:

Motherboard: Acer M4640g
CPU: i7-6700 (Slylake)
Graphic: HD530
LAN: RTL8168
Audio: ACL662

 

When I try to install your kext I got kernel panic after attempt to initialize card.

I have no logs (kernel log is empty about any reatek/ethernet card)

 

Your kext have compatibility with high sierra?

post-440028-0-39791500-1513600433_thumb.jpg

Share this post


Link to post
Share on other sites

Hi Meize,

 

I have Realtek 8168E card and 10.13.1 mac.

 

From AIDA64:

Realtek RTL8168/8111 PCI-E Gigabit Ethernet Adapter (PHY: Realtek RTL8111)  PCI
PCI\VEN_10EC&DEV_8168&SUBSYS_10031025&REV_0E

My hardware is:

Motherboard: Acer M4640g
CPU: i7-6700 (Slylake)
Graphic: HD530
LAN: RTL8168
Audio: ACL662

 

When I try to install your kext I got kernel panic after attempt to initialize card.

I have no logs (kernel log is empty about any reatek/ethernet card)

 

Your kext have compatibility with high sierra?

There is no compatibility issue with High Sierra. In case you've got a kernel panic on initialization, please fix your system. You might either have messed up system caches or a DSDT problem which prevents the driver from accessing the hardware properly.

 

Mieze

Share this post


Link to post
Share on other sites

In case you've got a kernel panic on initialization, please fix your system. You might either have messed up system caches or a DSDT problem which prevents the driver from accessing the hardware properly.

 

I have clear system (made from original "High Sierra Installer.app" from AppStore) with clover. 

 

Can you help me?

 

Clover: https://drive.google.com/open?id=1nLBxAQ10KmvbrCibp8E6PeC2h4DDxLbN

ioreg: https://drive.google.com/open?id=1NaAQPNAIQpM1EIx047lUViOnjUg_vdPw

darwin dump (attemp with another realtek kext, already fully removed): https://drive.google.com/open?id=1j5KeHjSjD7nGNBZG7Csw3Nr7Ay77a2Zj

Share this post


Link to post
Share on other sites

@dimak08: what kind of nonsense is that? As RP05 is the slot your Realtek NIC is using why did you add devices COM1, COM2, EHC0 and SMIK?  :no:

post-983225-0-88561000-1515970506_thumb.png

 

Mieze

Share this post


Link to post
Share on other sites

I have a High Sierra install with the latest patch, 10.13.2 (17C205).  I cannot get my RTL8111H working (ASRock Z170M-ITX/ac).  I have the driver installed correct (I think) and it's the latest version:

 

✗ kextstat | grep Real
   63    0 0xffffff7f81a45000 0x67000    0x67000    com.insanelymac.RealtekRTL8111 (2.2.1) FDD47F63-B851-312E-AC10-047DCBD6708F <18 12 5 4 3 1>
 
The IOReg Dump, which shows the controller on RP12/PXSX and everything shows in System Preferences > Network.  I just cannot get a DHCP and if I set a static IP I cannot send or receive.    I'm not sure what is going on.
 
Any ideas?
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

Announcements

  • Similar Content

    • By Mieze
      This project is dedicated to Lucy, my lovely little Tyrannofelis Rex. 
       

       
      LucyRTL8125Ethernet is an open source driver for the Realtek RTL8125 family of 2.5GBit Ethernet controllers.
       
      Key Features of the Driver
      Supports all versions of Realtek's RTL8125 2.5GBit Ethernet Controllers found on recent boards. Support for multisegment packets relieving the network stack of unnecessary copy operations when assembling packets for transmission. No-copy receive and transmit. Only small packets are copied on reception because creating a copy is more efficient than allocating a new buffer. TCP, UDP and IPv4 checksum offload (receive and transmit). TCP segmentation offload over IPv4 and IPv6. Support for TCP/IPv4, UDP/IPv4, TCP/IPv6 and UDP/IPv6 checksum offload. Supports jumbo frames up to 9000 bytes (strongly recommended for 2.5GBit operation). Fully optimized for Catalina (doesn't work with Mojave and below). Note that older versions of macOS might not support 2.5GB Ethernet. Supports Wake on LAN (untested). Supports VLAN (untested). Support for Energy Efficient Ethernet (EEE) which can be disabled by setting enableEEE to NO in the drivers Info.plist without rebuild. The default is YES. The driver is published under GPLv2.  
      Current Status
      The driver has been tested successfully under Catalina (10.15.4 and above) and, according to first tests, is working stable. I haven't experienced any Kernel Panics during my tests and is working stable on my primary work machine. The driver has been designed to work with Catalina but might also work with Mojave, provided you build from source with Xcode 10.. Please keep in mind that support for 2.5GBit Ethernet was introduced in Mojave (or maybe High Sierra?) so that there is no way to make it work with Sierra or below.  
      Known Issues
      Using autoselect medium it seems to prefer negotiating a connection speed of 1Gbit with my switch so that I had to select 2.5GBit/s manually in order to achieve this speed but it might be different with other switches.   Installation
      You might want to install the driver to /L/E as usual but it's also ok to use Clover's injection function (installation in the EFI folder). Use your favorite kext installation tool for installation or perform the installation manually (for Clover injection). It's your call!  
      Troubleshooting
      Make sure you have followed the installation instructions especially when you have issues with certain domains while the others are working fine. Use the debug version to collect log data when trying to track down problems. The kernel log messages can be retrieved with "log show --predicate "processID == 0" --debug" in order to retrieve kernel logs. Include the log data when asking for support or giving feedback. I'm an engineer, not a clairvoyant. Don't copy and paste large amounts of log data to your post. Create an archive with the log data and attach it to your post. In case you don't want to make your log data publicly accessible, contact me via PM and I will provide you a mail address to send it directly to me.  Delete the following files: /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist /Library/Preferences/SystemConfiguration/preferences.plist In Terminal run netstat -s in order to display network statistics. Carefully examine the data for any unusual activity like a high number of packets with bad IP header checksums, etc. In case auto-configuration of the link layer connection doesn't work it might be necessary to select the medium manually in System Preferences under Network for the interface. Use Wireshark to create a packet dump in order to collect diagnostic information. Keep in mind that there are many manufacturers of network equipment. Although Ethernet is an IEEE standard, different implementations may show different behavior causing incompatibilities. In case you are having trouble try a different switch or a different cable.  
      Changelog
      Version 1.0.0d6 (2020-06-14) Fixed chip recognition. Version 1.0.0d3 (2020-04-20) First working development release.  
      Getting the driver
      Source code can be found on GitHub: https://github.com/Mieze/LucyRTL8125Ethernet You'll find the lastest prebuilt binary here in this thread (see below).  
       
    • By Yosa Tristian
      Can someone help me?
      When I turn on the USB Wireless Adapter (Wifi Dongle), my mouse is lagging (like quick ejecting & rejecting).
      When I turn off the Wifi Dongle, my mouse runs smooth again.
       
      Mouse: Fantech G13 Rhasta II
      Wifi Dongle: TPLink TL-WN725N
      Wifi Dongle Driver : https://github.com/chris1111/Wireless-USB-Adapter
       
      And if you don't mind, can you check my hackintosh configuration? maybe something isn't right yet
      Send me Yosas-MacBook-Pro.zip
    • By Mieze
      Key Features of the Driver
      Supports Qualcomm Atheros AR816x, AR817x, Killer E220x, Killer E2400 and Killer E2500. Support for multisegment packets relieving the network stack of unnecessary copy operations when assembling packets for transmission. No-copy receive and transmit. Only small packets are copied on reception because creating a copy is more efficient than allocating a new buffer. TCP, UDP and IPv4 checksum offload (receive and transmit). Support for TCP/IPv6 and UDP/IPv6 checksum offload. Makes use of the chip's TCP Segmentation Offload (TSO) feature with IPv4 and IPv6 in order to reduce CPU load while sending large amounts of data. Fully optimized for Mountain Lion, Mavericks and Yosemite (64bit architecture) but should work with Lion (only 64bit) too, provided you build from source with the 10.7 SDK. Wake on LAN support. VLAN support used to be broken in older versions but is working since version 2.3.2. The driver is published under GPLv2.
    • By miliuco
      Install macOS 10.15 Catalina on Gigabyte P55-USB3 with Radeon RX 580 graphics card using a USB device created with the createinstallmedia command and Clover as bootloader. Instructions to install macOS 10.14 Mojave on this computer are almost identical, replacing Catalina app with Mojave, so this article is suitable for both versions of macOS. The Gigabyte P55-USB3 motherboard (and some others from the same brand with the P55 / H55 chipset) have made it easy to build a hackintosh and install macOS since 10 years ago. Although it is an old motherboard, the behavior with Mojave or Catalina is very good after changing the classic hard drive (HDD) for a solid state drive (SSD).

      Components of the hackintosh
      Gigabyte GA-P55-USB3 motherboard: P55 chipset, 1156 socket, ALC892 audio, Gigabit RTL8111D network, DDR3 RAM Intel Core i5-750 processor for socket 1156: 4 cores, 8MB cache, clock rate 2.66 GHz Fenvi FV-T919 wireless + Bluetooth card: PCI-Express, wifi is ac type, detected by macOS as Airport and Apple Bluetooth Radeon RX 580 8 GB graphics card: works OOB but with a few details to be considered, it has its own article.  
      Previous requirements
      Install macOS Catalina app in /Applications folder USB flash drive with at least 16GB prepared from Disk Utility with MBR partition scheme and formatted as Mac Os Plus (on older Gigabyte boards like mine, USB sticks partitioned with GUID scheme instead of MBR usually hang the system when booting) Recent version of Clover (I have used r5117) Recent versions of Lilu (at least 1.4.4) and WhateverGreen (at least 1.3.9) to fine-tune the behavior of the graphics card Recent version of RealtekRTL8111 (I have used 2.2.2) FaceSMC version 6.26-322 (newer versions disable automatic mounting of USB devices on my system).  
      Create install USB
      Run this command from Terminal (assuming the target device is called USB):
      Bash: sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/USB /Applications/Install\ macOS\ Catalina.app
      Clover must be installed on the USB memory, I choose the following options:
      Bootloader > Install boot0af on the MBR CloverEFi > CloverEFI 64-bit SATA BIOS Drivers, 64 bit > Recommended drivers > FSInject + SMCHelper + XhciDxe BIOS Drivers, 64 bit > File System drivers > ApfsDriverLoader Install RC scripts on selected volume Optional RC scripts > Disable sleep proxy client.  
      You have to copy 4 kexts to the EFI/CLOVER/kexts/Other folder of the USB device: FaceSMC 6.26-322, Lilu 1.4.4, WhateverGreen 1.3.9 and RealtekRTL8111 2.2.2. Regarding the config.plist file, the most significant is:
      Boot > kext-dev-mode = 1 in Boot arguments GUI > Theme embedded, EmbeddedThemeType Dark, Screen Resolution 1920x1080, Preboot in Hide Volume Graphics > blank, nothing is checked except if foxbox solution is used to have more than 2 connectors enabled RT Variables > 0x28 in BooterConfig and 0x67 in CsrActiveConfig SMBios > iMac14,2 Sytem Parameters> Yes in Inject Kexts and check Inject System ID.  
      Install macOS Catalina

      Boot from the USB device and choose Install macOS from Install macOS Catalina. The installation program runs until the PC restarts. Here choose Install macOS from HDD (the name of the volume you are installing macOS on). With RX 580 graphics card, the screen goes black in this second phase of the installation, it is a phase in which the user has nothing to do until the PC is restarted so you can let it work until the Clover menu again. You have to choose Boot macOS from HDDto boot the installed system from the hard disk, the screen is recovered and you can configure the account and the initial options. From this moment the screen works fine.

      In summary:
      Boot from USB > Clover menu > Install macOS from Install macOS Catalina > screen works fine Boot from USB > Clover menu > Install macOS from HDD > black screen Boot from USB > Clover menu > Boot macOS from HDD > screen works fine.  
      Install Clover and kexts on the hard drive

      Clover needs to be installed on the disk where we just installed macOS. Options are the same as when installing it on the USB memory. You also have to copy the 4 kexts (FaceSMC 6.26-322, Lilu 1.4.4, WhateverGreen 1.3.9 and RealtekRTL8111 2.2.2) into the EFI/CLOVER/kexts/Other folder on the EFI partition of the disk. And review the config.plist file remembering the comments for the USB.

      If everything goes well, the computer starts from the hard disk with a running copy of macOS Catalina.
       
       

×