Jump to content

Driver for Realtek's RTL810x Fast Ethernet Series

Realtek RTL8105 RTL8101 RTL8102 RTL8106 RTL8103 RTL8401 RTL8402 driver

  • Please log in to reply
71 replies to this topic

#41
lisai9093

lisai9093

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 101 posts
  • Gender:Male

I did another test: to unload and reload the rtl8100.kext.

 

After sleep, console shows:

Before unload/reload:
Ethernet [RealtekRTL8100]: RTL8105E: (Chipset 12) at 0xffffff80f124e000,  8:9e: 1:2b:b4:25

After:
Ethernet [RealtekRTL8100]: RTL8105E: (Chipset 12) at 0xffffff80e9aa5000,  0: 0: 0: 0: 0: 0

Shows MAC address is not properly initialized.

 

And I tried this procedure before sleep, no problem at all. Wish it is helpful info.



#42
Mieze

Mieze

    Giant Cat

  • Coders
  • 519 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

I did another test: to unload and reload the rtl8100.kext.

 

After sleep, console shows:

Before unload/reload:
Ethernet [RealtekRTL8100]: RTL8105E: (Chipset 12) at 0xffffff80f124e000,  8:9e: 1:2b:b4:25

After:
Ethernet [RealtekRTL8100]: RTL8105E: (Chipset 12) at 0xffffff80e9aa5000,  0: 0: 0: 0: 0: 0

Shows MAC address is not properly initialized.

 

And I tried this procedure before sleep, no problem at all. Wish it is helpful info.

 

Yeah, got an idea! Are you able to build from source?

 

Mieze



#43
lisai9093

lisai9093

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 101 posts
  • Gender:Male

Yeah, got an idea! Are you able to build from source?

 

Mieze

Nice. No, I don't have Xcode installed. I could download it but need some time.



#44
lisai9093

lisai9093

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 101 posts
  • Gender:Male

Nice. No, I don't have Xcode installed. I could download it but need some time.

Ok, my Xcode has been downloaded. What is next?



#45
Mieze

Mieze

    Giant Cat

  • Coders
  • 519 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

Ok, my Xcode has been downloaded. What is next?

 Just returned home. I'll send you a new version to test soon.

 

Mieze


Please try the attached version and report back.

 

Good luck!

 

Mieze

 

Attached Files



#46
lisai9093

lisai9093

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 101 posts
  • Gender:Male

 Just returned home. I'll send you a new version to test soon.

 

Mieze


Please try the attached version and report back.

 

Good luck!

 

Mieze

Thx. Unfortunately it is still not working. Unload/reload shows:

Before:
Ethernet [RealtekRTL8100]: RTL8105E: (Chipset 12) at 0xffffff80f136d000,  8:9e: 1:2b:b4:25

After:
Ethernet [RealtekRTL8100]: RTL8105E: (Chipset 12) at 0xffffff80f136d000,  0: 0: 0: 0: 0: 0


#47
Mieze

Mieze

    Giant Cat

  • Coders
  • 519 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

@lisai9093: Can you please send me your DSDT. It might be as well something outside of thee driver which causes the failure after wakeup.

 

Mieze



#48
lisai9093

lisai9093

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 101 posts
  • Gender:Male

@lisai9093: Can you please send me your DSDT. It might be as well something outside of thee driver which causes the failure after wakeup.

 

Mieze

 

Here it is:Attached File  dsdt.aml.zip   21.04KB   2 downloads

 

I've tried @ikkoku's DSDT without success.  :(



#49
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male

I can confirm the quality of this driver. Congratulations, Mieze!



#50
Mieze

Mieze

    Giant Cat

  • Coders
  • 519 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

Here it is:attachicon.gifdsdt.aml.zip

 

I've tried @ikkoku's DSDT without success.  :(

 

I've checked your DSDT and found no problem. It's really strange but it seems as if your NIC doesn't get powered on completely after wakeup.

 

As ikkoku has no problems with sleep/wakeup using the same chipset, I assume that the cause of the problem isn't located inside the driver. Have you verified that there is no other driver for your NIC installed. I recently had a user reporting a funny problem with the RTL8111 driver and finally it turned out that he had forgotten to remove Realtek's own driver before installing mine.

 

You should also review your BIOS settings very carefully. Is energy saving and suspension (sleep = S3 state) configured correctly? Are PCIe devices allowed to generate wakeup events? What entity is handling wakeup events: the BIOS or OS X?

 

Mieze



#51
Zythyr

Zythyr

    InsanelyMac Protégé

  • Members
  • PipPip
  • 79 posts

Meize,

 

I really really want to thank you very much for taking the effort and building the FE driver for us! I really appreciate it. 



#52
tosbaha2k

tosbaha2k

    InsanelyMac Protégé

  • Members
  • Pip
  • 25 posts

Thanks for the driver it worked very well for RTL8106E-US. Is there anything that I can do to help you? Logs, test etc ? Thanks!



#53
Mieze

Mieze

    Giant Cat

  • Coders
  • 519 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

I just update the binary and the source code in the first post of this thread with the release candidate. Changes since the last version are minimal, nevertheless I would like everyone to test it again. In case nobody finds a serious problem in this release candidate I will make it the official version 1.0.

 

Good luck!

 

Mieze 



#54
verleihnix

verleihnix

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 164 posts
  • Gender:Male

Hello Mieze,

 

great work so far. Looking a long time for a working driver.

It's a Lenovo Lappy Z560 from my daughter running 10.9.2.

The link is not coming up. See log.

Last three lines will const. repeated.

 

Ethernet [RealtekRTL8100]: Warning: PCIe ASPM enabled.

Ethernet [RealtekRTL8100]: EEE support enabled.

Ethernet [RealtekRTL8100]: TCP/IPv4 segmentation offload enabled.

Ethernet [RealtekRTL8100]: TCP/IPv6 checksum offload enabled.

Ethernet [RealtekRTL8100]: Using interrupt mitigate value 0x0.

Ethernet [RealtekRTL8100]: RTL8103E: (Chipset 7) at 0xffffff807b336000, xx:xx:xx:xx:xx:xx

Ethernet [RealtekRTL8100]: Link up on en0, 100-Megabit, Full-duplex, flow-control

Ethernet [RealtekRTL8100]: Tx timeout. Lost interrupt?

Ethernet [RealtekRTL8100]: Tx stalled? Resetting chipset. ISR=0xffff, IMR=0xffff.

Ethernet [RealtekRTL8100]: Link up on en0, 100-Megabit, Full-duplex, flow-control

Ethernet [RealtekRTL8100]: Tx timeout. Lost interrupt?

Ethernet [RealtekRTL8100]: Tx stalled? Resetting chipset. ISR=0xffff, IMR=0xffff.

Attached Files



#55
Mieze

Mieze

    Giant Cat

  • Coders
  • 519 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

Hello Mieze,

 

great work so far. Looking a long time for a working driver.

It's a Lenovo Lappy Z560 from my daughter running 10.9.2.

The link is not coming up. See log.

Last three lines will const. repeated.

 

Ethernet [RealtekRTL8100]: Warning: PCIe ASPM enabled.

Ethernet [RealtekRTL8100]: EEE support enabled.

Ethernet [RealtekRTL8100]: TCP/IPv4 segmentation offload enabled.

Ethernet [RealtekRTL8100]: TCP/IPv6 checksum offload enabled.

Ethernet [RealtekRTL8100]: Using interrupt mitigate value 0x0.

Ethernet [RealtekRTL8100]: RTL8103E: (Chipset 7) at 0xffffff807b336000, xx:xx:xx:xx:xx:xx

Ethernet [RealtekRTL8100]: Link up on en0, 100-Megabit, Full-duplex, flow-control

Ethernet [RealtekRTL8100]: Tx timeout. Lost interrupt?

Ethernet [RealtekRTL8100]: Tx stalled? Resetting chipset. ISR=0xffff, IMR=0xffff.

Ethernet [RealtekRTL8100]: Link up on en0, 100-Megabit, Full-duplex, flow-control

Ethernet [RealtekRTL8100]: Tx timeout. Lost interrupt?

Ethernet [RealtekRTL8100]: Tx stalled? Resetting chipset. ISR=0xffff, IMR=0xffff.

 

The link is up but the transmitter hangs, but this doesn't seem to be the reason which is causing the trouble. Please take a look at the line in the logs identifying the chipset and compare it with System Profiler's screenshoot. It says RTL8103E while the screenshot shows an RTL8101E. There must be something which is interfering. Have you removed any other driver for the NIC which you installed previously?

 

Or have you modified the source in any way?

 

Mieze



#56
verleihnix

verleihnix

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 164 posts
  • Gender:Male

The link is up but the transmitter hangs, but this doesn't seem to be the reason which is causing the trouble. Please take a look at the line in the logs identifying the chipset and compare it with System Profiler's screenshoot. It says RTL8103E while the screenshot shows an RTL8101E. There must be something which is interfering. Have you removed any other driver for the NIC which you installed previously?

 

Or have you modified the source in any way?

 

Mieze

I had a not working kext installed to have an ethernet0.

Removed that and installed yours a second time and deleted network.plist.

Now it works! Great job!

 

Thanks

verleihnix



#57
Mieze

Mieze

    Giant Cat

  • Coders
  • 519 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

I had a not working kext installed to have an ethernet0.

Removed that and installed yours a second time and deleted network.plist.

Now it works! Great job!

 

Thanks

verleihnix

 

Thanks for the information. Have fun!

 

Mieze



#58
ErmaC

ErmaC

    127.0.0.1

  • Supervisors
  • 4,671 posts
  • Gender:Male
  • Location:Canary Islands
- Topic pinned -

Cordially.

ErmaC

#59
lisai9093

lisai9093

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 101 posts
  • Gender:Male

I've checked your DSDT and found no problem. It's really strange but it seems as if your NIC doesn't get powered on completely after wakeup.

 

As ikkoku has no problems with sleep/wakeup using the same chipset, I assume that the cause of the problem isn't located inside the driver. Have you verified that there is no other driver for your NIC installed. I recently had a user reporting a funny problem with the RTL8111 driver and finally it turned out that he had forgotten to remove Realtek's own driver before installing mine.

 

You should also review your BIOS settings very carefully. Is energy saving and suspension (sleep = S3 state) configured correctly? Are PCIe devices allowed to generate wakeup events? What entity is handling wakeup events: the BIOS or OS X?

 

Mieze

Thanks, I finally solve the problem!

 

The key is getting MAC address. My computer seems having issue getting ethernet MAC address (maybe hardware related). It was happening on Mac OS only, but now on Win and Ubuntu as well for some unknown reasons. So I need to specify MAC address manually. On Mac OS, it is:

sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx

Since en0 is my ethernet. Similar methods need to be performed in other OSes.



#60
Mieze

Mieze

    Giant Cat

  • Coders
  • 519 posts
  • Gender:Female
  • Location:Germany
  • Interests:Cats

@lisai9093: Thanks for sharing the information. It looks like your NIC's EEPROM, which stores the MAC address, is messed up so that getting the MAC address fails.

 

Mieze







Also tagged with one or more of these keywords: Realtek, RTL8105, RTL8101, RTL8102, RTL8106, RTL8103, RTL8401, RTL8402, driver


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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