Jump to content

Realtek 8168/8111 solution


DaemonES
 Share

872 posts in this topic

Recommended Posts

Hi guys.

More than one weak ago I\'ve started writing driver for Realtek controllers. At this time I have some results, I've not tested all features, cause I have no such opportunity, but MacOS successfully communicate with WinXP system through my driver.

It works on RTL8169, RTL8168, RTL8110, RTL8111, RTL8100, RTL8101 chips and their modifications.

 

I have some driver programming skills under WinXP, but MacOS and IOKit are new things for me, so be careful when using my driver. You can freely load it and unload, but only once at one system boot (cause more loads may cause system crash, I\'m planning to fix it). Use sh scenarios for loading/unloading driver.

 

Now I\'m planing to add such features:

- Manual MTU control (now it fixed at 1500).

- Jumbo frame support.

- Wake on magic packet.

 

Thanks to the:

- author of Linux R1000 driver.

- NeoPheus for installer. Great job, thanks.

 

Share your knowledge so much as you can.

 

Compiled with XCode 2.4 on OSX 10.4.6 JaS Install DVD.

Visit to project page for the latest driver and installer.

https://sourceforge.net/projects/realtekr1000/

Link to comment
Share on other sites

What steps did you take to enable wake on lan, since not visible in the GUI

 

I did not take any steps.. it just worked (once I got the syntax right from linux).. the Windows utility (Fusion) was easier.. once I saw that worked, then I kept pounding the linux side which is just

wakeonlan aa:bb:cc:dd:ee:ff:00
(use your MAC addr)

 

Remotely, it takes ~45 seconds after the WOL before I can ssh in.

Link to comment
Share on other sites

To get the network ports recognized as IOBuiltin=Yes in ioreg with Bit Shoveler's RealtekR1000SL, modify RealtekR1000SL.cpp and compile (thanks to Rudy Pedraza).

original:

   if (pciDev != NULL)
   {
       pciDev->close(this);
   }

modified:

   if (pciDev != NULL)
   {
       pciDev->setProperty("built-in",1);
       pciDev->close(this);
   }

Link to comment
Share on other sites

Thanks Bit Shoveler for the great work on the kext and thanks weaksauce12 for the installer!

 

I've been having troubles for ages with networking and hadn't been able to get Bonjour to work correctly. After installing the kext it now appears to be working perfectly on my Asus Rampage Gene II motherboard. I've set the speed to gigabit ethernet for good measure although I never tested whether the speed was working correctly before or not.

 

OnePlane, while that might be a temporary solution for some, it would limit ethernet speeds to 100mbit/s. The Apple ethernet adapter doesn't support gigabit ethernet and even if it did, it would be limited by the USB port's bandwidth.

Link to comment
Share on other sites

Hi

Thanks vl008 work for Contrôleur PCI Gigabit LAN RealtekRTL8169 ?

I have a Asus P5K-Premium too,

Explain how you can install with kext utility S / L / E or just replace

/System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIn/AppleRTL8169Ethernet.Kext ?

 

This kext is the same as I have. You try this kext already ?

 

Thanks advance vl008

 

 

<key>CFBundleDevelopmentRegion</key>

<string>English</string>

<key>CFBundleExecutable</key>

<string>AppleRTL8169Ethernet</string>

<key>CFBundleGetInfoString</key>

<string>1.1, Copyright Apple Inc. 2004-2008</string>

<key>CFBundleIdentifier</key>

<string>com.apple.driver.AppleRTL8169Ethernet</string>

<key>CFBundleInfoDictionaryVersion</key>

<string>6.0</string>

<key>CFBundleName</key>

<string>Realtek 8169/8110 Gigabit Ethernet Driver</string>

<key>CFBundlePackageType</key>

<string>KEXT</string>

<key>CFBundleShortVersionString</key>

<string>1.1</string>

<key>CFBundleSignature</key>

<string>????</string>

<key>CFBundleVersion</key>

<string>1.1</string>

<key>IOKitPersonalities</key>

<dict>

<key>RTL8168/RTL8101E</key>

<dict>

<key>CFBundleIdentifier</key>

<string>com.apple.driver.AppleRTL8169Ethernet</string>

<key>Driver Parameters</key>

<dict>

<key>Checksum Offload</key>

<false/>

</dict>

<key>IOClass</key>

<string>AppleRTL8169Ethernet</string>

<key>IOPCIClassMatch</key>

<string>0x02000000&0xffff0000</string>

<key>IOPCIPrimaryMatch</key>

<string>0x816810ec 0x813610ec</string>

<key>IOProviderClass</key>

<string>IOPCIDevice</string>

</dict>

<key>RTL8169/RTL8110</key>

<dict>

<key>CFBundleIdentifier</key>

<string>com.apple.driver.AppleRTL8169Ethernet</string>

<key>Driver Parameters</key>

<dict>

<key>Checksum Offload</key>

<false/>

</dict>

<key>IOClass</key>

<string>AppleRTL8169Ethernet</string>

<key>IOPCIClassMatch</key>

<string>0x02000000&0xffff0000</string>

<key>IOPCIPrimaryMatch</key>

<string>0x816910ec 0x816710ec</string>

<key>IOProviderClass</key>

<string>IOPCIDevice</string>

</dict>

</dict>

<key>OSBundleLibraries</key>

<dict>

<key>com.apple.iokit.IONetworkingFamily</key>

<string>1.4.3</string>

<key>com.apple.iokit.IOPCIFamily</key>

<string>1.6</string>

<key>com.apple.kpi.bsd</key>

<string>8.0.0b2</string>

<key>com.apple.kpi.iokit</key>

<string>8.0.0b2</string>

<key>com.apple.kpi.libkern</key>

<string>8.0.0b2</string>

<key>com.apple.kpi.mach</key>

<string>8.0.0b2</string>

</dict>

<key>OSBundleRequired</key>

<string>Network-Root</string>

</dict>

</plist>

 

Look at my post above, this kext plugin is available but does not work for me, you've got this kext how.

Link to comment
Share on other sites

  • 2 weeks later...

Hi

vl008 thanks for help me,

You try this kext for this chipset RealtekRTL8169 on your motherboard P5K-Premium ?

Because this kext does not work for me on this ethernet chipset.

Explain to me how you did,launched the pkg Score snow and then disconnected on port marvell, reconnected to the port realtek but does not.

 

Thank you for your help.

Link to comment
Share on other sites

Hello

I read this topic, but can't find how to write rtl 8111d in DSDT

Pleaaase help me

Heere my DSDT dsdt.zip

 

Sory for my dad english

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Ok.....

 

This weekend i installed iDeneb 1.5 (Leopard) and its working ver good with a dualboot @ Windows 7

Now my problem is....

I got the Realtek RTL8101E Wirless card but i haven't got the drivers...

Somebody can help me?

The install metod of this guide i'll dont understand very mutch, its keep saying when i enter sudo kextunload RealtekR1000.kext "Cannot unload" or something like that, than i'll enter: sudo kextload RealtekR1000.kext but than it says: No permission "User have to be root:wheel" (or something with user have to be root:wheel) i'll realy dont understand any of this :(

Help me please!!!!

 

Thanks!!

Link to comment
Share on other sites

  • 2 weeks later...

Just noticed new official Realtek drivers include 10.6 support (i've untested 64bit support)

 

http://www.realtek.com.tw/DOWNLOADS/downlo...p;GetDown=false

 

From installer:

 

This is the Mac OS X (10.4/10.5/10.6) driver for Realtek 8169S(SB)/8168(B/C/CP/D/E)/8101E/8102E/8103E/8105E. The system will be rebooted after the driver is installed, so please close all the other applications before installing the driver. After the system is rebooted, please follow the following steps to configure the network:

1. Select the "System Preference" from the system menu.

2. Select and launch the "Network" item in the "System Preference" folder.

3. From the "Configure" list, select the adapter to be configured.

4. Configure the settings.

5. Click the "Save" button.

Then you can connect to the Ethernet.......

 

NOTE: This driver is for Mac OS X 10.4 or newer versions on the Intel-based Mac.

RTGMac_v2.0.4.zip

Link to comment
Share on other sites

Hi All,

 

Windows update killed my onboard NIC (GB Ex58-UD4P). Now my OSX 10.5 install won't recognise the onboard NIC either. I bought a new standalone NIC (Asus NX1101) which has fixed the windows issues but OSX still isn't connecting to the network. OSX isn't seeing the NIC. The Asus card came with OSX drivers but still no good.

 

Any Suggestions?? I"m losing my mind trying to figure out what's wrong. I've tried formatting Windows to bring back the onboard GB NIC but no luck there either.

 

This has happened to me before but I got the onboard NIC back with a format of windows and then OSX came good too but it's not working this time.

 

If i can get the Asus NIC working in OSX i'll be home free.

 

Please help

Link to comment
Share on other sites

This new driver for realtek works great for me on my RTL -8110SC/8169SC Gigabit Ethernet 10ec:8167 but only in 32 bit mode.

 

Someone can recompile this kext for 64 bit mode?

 

yeah it works great :P but it don't support 64 bit , we need 64 bit pleeeeeeease :)

Link to comment
Share on other sites

 Share

×
×
  • Create New...