Jump to content

Realtek RTL8111/8168B DSDT LAN0 Injection


  • Please log in to reply
8 replies to this topic

#1
Lustral

Lustral

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
  • Gender:Male
  • Location:Germany
hello friends,

i need some help with code injection for Device GIGE. I didnt find out what i make wrong exactly. big thx for help ! her is my last code from my dsdt.aml which is only working with RealtekSL1000.kext


Device (PEX5.GIGE)
		 {
			 Name (_ADR, Zero) // _ADR: Address
			 Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
			 {
				 0x09,
				 0x03
			 })
			 Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
			 {
				 Store (Package (0x06)
					 {
						 "built-in",
						 Buffer (One)
						 {
								 0x01
						 },
						 "device_type",
						 Buffer (0x09)
						 {
							 "Ethernet"
						 },
						 "name",
						 Buffer (0x23)
						 {
							 "Realtek RTL8111/8168B PCIe Gigabit"
						 }
					 }, Local0)
				 DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
				 Return (Local0)
			 }
		 }

Attached Files



#2
iLeopod

iLeopod

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 435 posts
  • Gender:Male
  • Location:Germany
  • Interests:ileopod.wordpress.com
Is it inside PEX5? Do u have the DTGP method.
Leave the Buffer empty and let the compiler do the calculation. Buffer (0x00)
is at least wrong.

#3
Lustral

Lustral

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
  • Gender:Male
  • Location:Germany
i edit my frist post with my last code from my dsdt.aml which is not working!

#4
iLeopod

iLeopod

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 435 posts
  • Gender:Male
  • Location:Germany
  • Interests:ileopod.wordpress.com
What do you expect to achieve by that? To show up your card under PCI devices in system profiler u just need this:

                                "AAPL,slot-name",

                                Buffer (0x09)

                                {

                                    "Built-In"

                                },

                                "built-in",

                                Buffer (One)

                                {

                                    0x01

                                },

                                "device_type",

                                Buffer (0x09)

                                {

                                    "ethernet"

                                },

                                "model",

                                Buffer (0x22)

                                {

                                    "Realtek RTL8111E 10/100/1000 Mbit"

                                }



#5
Lustral

Lustral

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
  • Gender:Male
  • Location:Germany
your code is also not working.. it shows me no information about my ethernet card in systemprofiler. but thx for your help !!!

i try to get my ethernet to work with apple driver.. that's why i try to inject the code in my dsdt.aml but without success.

Slice RealtekR1000SL 3.0.3 works perfect but i hope its possible to get ethernet to work without this kext.


@ILeopod du kannst auch in deutsch schreiben wenn du willst.

#6
Maniac10

Maniac10

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,070 posts
  • Gender:Not Telling
Is your ethernet chip compatible with Apple's kext? Post some information about your hardware.

#7
Lustral

Lustral

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
  • Gender:Male
  • Location:Germany
my board has a Realtek RTL8168B/8111B PCI-E Gigabit Ethernet Adapter (PHY: Realtek RTL8211/8212) PCI chip.. looks like not compatible with apple driver right ? :worried_anim:

but ioreg show under compatible (pci1458,000,pci10ec,8168, pciclass,02000)

for me it looks like compatible with my ethernet chip but i can't get it to work .. very strange :wallbash:

#8
mitch_de

mitch_de

    InsanelyMacaholic

  • Local Moderators
  • 2,880 posts
  • Gender:Male
  • Location:Stuttgart / Germany
At this stage of "worrying" you should poblably try to use an non Apple driver, like the great: Lnx2Mac's Realtek RTL81xx driver.
I use that since 10.7 , now 10.8.3 - no probs at all. Speeds, sleep, wake - all works.
Its better than the other (yours) driver.
Be sure to remove the other before installing this one. Also Slice have an new driver in work.

http://lnx2mac.blogs...osx-driver.html

I agree thats the best to use native drivers - but sometimes, in this case its no prob to use such non Apple driver.
Because they will never get overwritten (as AplpeHDA updates) you have no work with them for loooong time.

PS: I use near same DSDT injection as posted here. The main thing is the build-in setting.

Screensoout show that dsdt settings with Lnx2Mac driver, Gigabyte EP35 board (8168B).

Attached Files



#9
k3nny

k3nny

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 538 posts
  • Gender:Male
mitch_de is right, although personally I would not recommend the lnx2mac driver anymore as it wasn't updated for several years and better performing alternatives exist:
- http://www.insanelym...1/#entry1898032
- http://www.insanelym...3/#entry1895374





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