Jump to content

RealtekR1000 v3

LAN 8111 8168

  • Please log in to reply
99 replies to this topic

#21
Nomad347

Nomad347

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts
My motherboard is a Gigabyte G31M-ES2C and the network is based on 8102E. Seems to get the ip but when I try to access a website no dice. Cable shows as connected as well...

#22
gothic860

gothic860

    InsanelyMac Protégé

  • Members
  • PipPip
  • 84 posts
  • Gender:Male
  • Location:Germany, Bavaria
1 problem: I have 1GB Ethernet but it shows only 100MBit and it also acts like 100MBit. Any ideas?

EDIT: Found it in Networkconf. sorry :wallbash:, now its working 1GB/s

#23
beta992

beta992

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 338 posts
  • Gender:Male
Hi Slice,

I have tried your kext, everything works OK, but I need to set it to 1000BaseT manually.

Do you need any debug-info?

Thanks for your kext! :)

#24
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,924 posts
  • Gender:Male
  • Location:Moscow

Hi Slice,

I have tried your kext, everything works OK, but I need to set it to 1000BaseT manually.

Do you need any debug-info?

Thanks for your kext! :)

Yes, show me part of kernel.log (system.log) concerning R1000 and en0:
But I don't know why it is happen. May be the card is not ready for 1000Mbit at start? Heating?

There is last revision compiled as release. No debug messages but may be it will work faster. Check, please.
Attached File  RealtekR1000SL.kext-v303.zip   188.52KB   88 downloads

#25
magnifico

magnifico

    InsanelyMac Deity

  • Donators
  • 2,398 posts
  • Gender:Male
Congratulation Slice, you job work perfect on my asus p8z68 deluxe

#26
robin_hood

robin_hood

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts
  • Gender:Male
  • Location:Moscow
Doesn't work for me: dell xps 17

System Information:

Type: Ethernet Controller
Bus: PCI
Vendor ID: 0x10ec
Device ID: 0x8168
Subsystem Vendor ID: 0x1028
Subsystem ID: 0x04b7
Revision ID: 0x0006

System Log:
Mar 23 16:41:22 localhost kernel[0]: RealtekR1000: init
Mar 23 16:41:22 localhost kernel[0]: RealtekR1000: start
Mar 23 16:41:22 localhost kernel[0]: RTL8xxx@0x2000: Found chip reg=2f200000
Mar 23 16:41:22 localhost kernel[0]: RTL8xxx@0x2000: Realtek RTL8168E/8111E_2 (mcfg 28)
Mar 23 16:41:22 localhost kernel[0]: identified as RTL8168E/8111E_2
Mar 23 16:41:22 localhost kernel[0]: RTL8xxx@0x2000: 1000Mbps Full-duplex operation, TBI Link OK
Mar 23 16:41:22 localhost kernel[0]: RTL8xxx@0x2000: Link Status: Not Linked
Mar 23 16:41:22 localhost kernel[0]: RTL8xxx@0x2000: registerWithPolicyMaker
Mar 23 16:41:22 localhost kernel[0]: RTL8xxx@0x2000: setPowerState(1)
Mar 23 16:41:22 localhost kernel[0]: RTL8xxx@0x2000: configureInterface
Mar 23 16:41:22 localhost kernel[0]: RTL8xxx@0x2000: attaching as en0
Mar 23 16:41:22 localhost kernel[0]: en0: start: returning '1'
Mar 23 16:41:22 localhost kernel[0]: com_chucko_RealtekR1000: Ethernet address 14:fe:b5:b7:56:68
Mar 23 16:41:24 localhost kernel[0]: en0: enable
Mar 23 16:41:24 localhost kernel[0]: en0: setActivationLevel(2)
Mar 23 16:41:24 localhost kernel[0]: en0: Selected medium is NULL, forcing to autonegotiation
Mar 23 16:41:24 localhost kernel[0]: en0: selectMedium, index=6
Mar 23 16:41:24 localhost kernel[0]: en0: R1000SetMedium(0x2, 0x2, 0x1)
Mar 23 16:41:24 localhost kernel[0]: en0: setLinkStatus but no PHYStatus

Mar 23 16:41:24 localhost configd[17]: network changed.
Mar 23 16:41:24 RobinMac.local netbiosd[58]: Unable to start NetBIOS name service: 

In network setings I see that it initialized and get ip, also I can ping some site, no more. Telnet and other protocols doesn't work.

#27
anibalin

anibalin

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 268 posts
worked great on a GA-H77N-WIFI (8111)

#28
dmazar

dmazar

    InsanelyMac Sage

  • Coders
  • 262 posts
  • Gender:Male
Thanks Slice!
Just checking this one against reboot from Windows, like Mieze's one here: http://www.insanelym...20#entry1900390

This one is a bit worse regarding this. As soon as Windows is used, this driver does not work properly any more. It connects to the net, but browsing the net from Safari does not work. Shutdowns and restarts do not help. The only thing that helps is to boot into Ubuntu and then back to OSX. This fixes the controller and then it all works fine in OSX ... until I boot to Windows again.

I know you do not care about Windows ( :) ), but still ... I hope somebody would resolve this.

The Ubuntu says that it uses r8169 driver. I guess this one: https://github.com/t...realtek/r8169.c
and this one can use controller after windows just fine.

#29
alexanderq

alexanderq

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 194 posts
  • Gender:Male
Hello dmazar
Long ago when i was using clover for the first time i had the exactly same problem with my ethernet and i was using RealtekRTL81xx.kext.
the only way to make it work was by pulling the plug for a few seconds.
Until i choose the AppleRTC patch which solve the problem.

#30
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,924 posts
  • Gender:Male
  • Location:Moscow

Thanks Slice!
Just checking this one against reboot from Windows, like Mieze's one here: http://www.insanelym...20#entry1900390

This one is a bit worse regarding this. As soon as Windows is used, this driver does not work properly any more. It connects to the net, but browsing the net from Safari does not work. Shutdowns and restarts do not help. The only thing that helps is to boot into Ubuntu and then back to OSX. This fixes the controller and then it all works fine in OSX ... until I boot to Windows again.

I know you do not care about Windows ( :) ), but still ... I hope somebody would resolve this.

The Ubuntu says that it uses r8169 driver. I guess this one: https://github.com/t...realtek/r8169.c
and this one can use controller after windows just fine.

My sources compiled from Linux. Tell me some details about your chip.
Kernel.log

Mar 9 21:42:37 localhost kernel[0]: RealtekR1000: R1000InitBoard @ PCI 0x3,00
Mar 9 21:42:37 localhost kernel[0]: AppleIntelCPUPowerManagementClient: ready
Mar 9 21:42:37 localhost kernel[0]: RTL8xxx@0xd000: Found chip reg=2f900d00
Mar 9 21:42:37 localhost kernel[0]: RTL8xxx@0xd000: Realtek RTL8168E-VL/8111E-VL (mcfg 30)
Mar 9 21:42:37 localhost kernel[0]: identified as RTL8168E-VL/8111E-VL



#31
dmazar

dmazar

    InsanelyMac Sage

  • Coders
  • 262 posts
  • Gender:Male
Here:

RealtekR1000: R1000InitBoard @ PCI 0x8,00
RTL8xxx@0xc000: Found chip reg=2f200000
RTL8xxx@0xc000: Realtek RTL8168E/8111E_2 (mcfg 28)
identified as RTL8168E/8111E_2
RTL8xxx@0xc000: 1000Mbps Full-duplex operation, TBI Link Failed

#32
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,924 posts
  • Gender:Male
  • Location:Moscow
Compared sources of my driver and linux's that you point I found no similarities... :wacko:
May be my correction for E_VL is not good for your E_2?
//rtl8168_phy_power_up
void RealtekR1000::RTL8168PowerUpPHY()
{
// DLog("RTL8168PowerUpPHY\n");
WriteGMII16(0x1F, 0x0000);
/* switch (mcfg) {
case MCFG_8168B_1:
case MCFG_8168B_2:
case MCFG_8168B_3:
case MCFG_8168C_1:
case MCFG_8168C_2:
case MCFG_8168C_3:
case MCFG_8168CP_1:
case MCFG_8168CP_2:
case MCFG_8168D_1:
case MCFG_8168D_2:
case MCFG_8168DP_1:
case MCFG_8168DP_2:
case MCFG_8168DP_3:
//what about E_VL?
	 WriteGMII16(0x0E, 0x0000);
	 break;
default:
	 break;
} */
WriteGMII16(0x0E, 0x0000);
WriteGMII16(PHY_BMCR, PHY_Enable_Auto_Nego);
}
And I found one else difference in pll_power_down
if (tp->mac_version == RTL_GIGA_MAC_VER_32 ||
	 tp->mac_version == RTL_GIGA_MAC_VER_33)
  rtl_ephy_write(tp, 0x19, 0xff64);
But I see you have problem with power up, not with power down.

#33
dmazar

dmazar

    InsanelyMac Sage

  • Coders
  • 262 posts
  • Gender:Male
Well yes, r8168 and r8169 are quite different.

Both yours and Mieze's driver are working fine here once they start working. I can shutdown/restart as many times as I I want into OSX and they work. It's just after starting Windows they stop working properly . They do connect to the net, but net is not usable.

On the other hand, since nobody is reporting the same issue, maybe it's something specific to my Asus P8P67-M. And then ... I have the same situation on Hp ProBook also.

#34
RehabMan

RehabMan

    InsanelyMac Legend

  • Coders
  • 1,278 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

Well yes, r8168 and r8169 are quite different.

Both yours and Mieze's driver are working fine here once they start working. I can shutdown/restart as many times as I I want into OSX and they work. It's just after starting Windows they stop working properly . They do connect to the net, but net is not usable.

On the other hand, since nobody is reporting the same issue, maybe it's something specific to my Asus P8P67-M. And then ... I have the same situation on Hp ProBook also.


I have the same issue on my Probook. After running Windows, network appears to connect (link up, mac address there, ip address there, ping works), but Chrome cannot load a webpage. It works fine after cold boot and it works fine after running Ubuntu (12.04LTS).

As dmazar says this is both on your driver and Meize's (not an issue w/ lnx2mac... but it is not open source??). Side note: I only get 100mbps with Slice's driver, but get 1Gpbs w/ Meize's.

I tried disabling a bunch of the options (offloading, etc.) in the Windows driver thinking that they might have something to do with it, but was stil unsuccessful. I guess if we could find sources for the driver in Linux, we could maybe determine what it is doing during init that is different? Way to do hardware reset?

#35
Badeendje

Badeendje

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 200 posts
Did note something I may have to look further into but have no idea how and no time whatsoever at the moment to do it;

When using the kext (first version) on a ga-z68x-ud3h-b3 with RTL8169 chipset connected directly to my cablemodem, now my cablemodem periodically (about 5 times a day) locks up and have to reset it.
It started as soon as I started using the kext, so I've been testing a few days on and off with the kext enabled and off connected with an airport card.
Just to make sure it wasn't the .3 update.
I found out without the kext an/or using the lnx2mac version I had no problems whatsoever, whenever I started using it I got the problem, and mainly after sleep or long time of inactivity, but also suddenly during normal use.
The log shows nothing out of the ordinary but there's a TPI-link failed error on booting.
Could you tell me what info you'd need to resolve this if it's something you'll be looking at?

#36
Badeendje

Badeendje

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 200 posts
Finally had the time to sort out the log;

31-03-13 15:20:53,000 kernel[0]: RealtekR1000: init
31-03-13 15:20:53,000 kernel[0]: RealtekR1000: start
31-03-13 15:20:53,000 kernel[0]: RealtekR1000: R1000InitBoard @ PCI 0x7,00
31-03-13 15:20:53,000 kernel[0]: RTL8xxx@0xce00: Found chip reg=2f900d00
31-03-13 15:20:53,000 kernel[0]: RTL8xxx@0xce00: Realtek RTL8168E-VL/8111E-VL (mcfg 30)
31-03-13 15:20:53,000 kernel[0]: identified as RTL8168E-VL/8111E-VL
31-03-13 15:20:53,000 kernel[0]: RTL8xxx@0xce00: 1000Mbps Full-duplex operation, TBI Link Failed
31-03-13 15:20:53,000 kernel[0]: RTL8xxx@0xce00: Link Status: Not Linked
31-03-13 15:20:53,000 kernel[0]: RTL8xxx@0xce00: registerWithPolicyMaker
31-03-13 15:20:53,000 kernel[0]: RTL8xxx@0xce00: setPowerState(1)
31-03-13 15:20:53,000 kernel[0]: RTL8xxx@0xce00: configureInterface
31-03-13 15:20:53,000 kernel[0]: RTL8xxx@0xce00: attaching as en0
31-03-13 15:20:53,000 kernel[0]: en0: start: returning '1'
31-03-13 15:20:55,000 kernel[0]: en0: enable
31-03-13 15:20:55,000 kernel[0]: en0: setActivationLevel(2)
31-03-13 15:20:55,000 kernel[0]: en0: Selected medium is NULL, forcing to autonegotiation
31-03-13 15:20:55,000 kernel[0]: en0: selectMedium, index=6
31-03-13 15:20:55,000 kernel[0]: en0: R1000SetMedium(0x2, 0x2, 0x1)
31-03-13 15:20:57,000 kernel[0]: en0: Link up



Again this on a GA

-Z68X-UD3H-B3 board, an otherwise well supported and

popular board, except I never had the ethernet working stable.
This is the first kext working great except the occasional lockups which are pretty bothersome.


#37
Scellow

Scellow

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 129 posts
  • Gender:Male
  • Location:France
  • Interests:while{true||false}
    {
    dream();
    }
Hi Slice,

Thanks for your work, as theconnactic i have an 8105E, the official driver works fine, but only in 10mbps and it's too slow when i work on big files .. , instead of hours of work to make an port of the linux driver, i think better and easier to reajust the official driver to correct the 100Mbps problem ? I don't know how to code are how to read lines code atm so.. it will be really nice if you could take a look on that :)

I found the datasheet document so it could help, i uploaded it in my original post here : http://www.insanelym...ce-for-100mbps/

Thanks again for your amazing work

#38
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,924 posts
  • Gender:Male
  • Location:Moscow

Hi Slice,

Thanks for your work, as theconnactic i have an 8105E, the official driver works fine, but only in 10mbps and it's too slow when i work on big files .. , instead of hours of work to make an port of the linux driver, i think better and easier to reajust the official driver to correct the 100Mbps problem ? I don't know how to code are how to read lines code atm so.. it will be really nice if you could take a look on that :)

I found the datasheet document so it could help, i uploaded it in my original post here : http://www.insanelym...ce-for-100mbps/

Thanks again for your amazing work

But how did you propose to influence on official driver?
I see only way to search a mistake in linux's sources to correct my driver.

#39
Lkr

Lkr

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 545 posts
  • Gender:Male
  • Location:Florida
I'm using an MSI z77 g41 board. I installed the kext, rebooted, and put in -v. It detects the RealtekR1000 in boot, but hangs at en0: Link up. If you have any idea what to do, please let me know

#40
Maniac10

Maniac10

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,059 posts
  • Gender:Not Telling
Slice, when I disconnect the cable your driver always gets an automatic ip.

At boot, connected to the router:
06/04/13 10:16:19,000 kernel[0]: RealtekR1000: init
06/04/13 10:16:19,000 kernel[0]: RealtekR1000: start
06/04/13 10:16:19,000 kernel[0]: RealtekR1000: R1000InitBoard @ PCI 0x4,00
06/04/13 10:16:19,000 kernel[0]: RTL8xxx@0xd000: Found chip reg=2f900d00
06/04/13 10:16:19,000 kernel[0]: RTL8xxx@0xd000: Realtek RTL8168E-VL/8111E-VL_2 (mcfg 30)
06/04/13 10:16:19,000 kernel[0]: identified as RTL8168E-VL/8111E-VL_2
06/04/13 10:16:19,000 kernel[0]: RTL8xxx@0xd000: 1000Mbps Full-duplex operation, TBI Link Failed
06/04/13 10:16:19,000 kernel[0]: RTL8xxx@0xd000: Link Status: Not Linked
06/04/13 10:16:19,000 kernel[0]: RTL8xxx@0xd000: registerWithPolicyMaker
06/04/13 10:16:19,000 kernel[0]: RTL8xxx@0xd000: setPowerState(1)
06/04/13 10:16:19,000 kernel[0]: RTL8xxx@0xd000: configureInterface
06/04/13 10:16:19,000 kernel[0]: RTL8xxx@0xd000: attaching as en0
06/04/13 10:16:19,000 kernel[0]: en0: start: returning '1'
06/04/13 10:16:20,000 kernel[0]: com_chucko_RealtekR1000: Ethernet address _________________
06/04/13 10:16:21,000 kernel[0]: en0: enable
06/04/13 10:16:21,000 kernel[0]: en0: setActivationLevel(2)
06/04/13 10:16:21,000 kernel[0]: en0: Selected medium is NULL, forcing to autonegotiation
06/04/13 10:16:21,000 kernel[0]: en0: selectMedium, index=6
06/04/13 10:16:21,000 kernel[0]: en0: R1000SetMedium(0x2, 0x2, 0x1)
06/04/13 10:16:21,000 kernel[0]: en0: setLinkStatus but no PHYStatus
When I disconnect the cable:
06/04/13 13:31:09,000 kernel[0]: en0: Link down
06/04/13 13:31:10,805 configd[18]: network changed: v4(en1:192.168.0.100, en0-:192.168.2.100) DNS* Proxy SMB
06/04/13 13:31:38,676 configd[18]: network changed: v4(en1:192.168.0.100, en0+:169.254.243.225) DNS* Proxy SMB







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