Contribute
Register

GBE patch for Z77X UD5H atheros lan

Status
Not open for further replies.
Joined
Dec 11, 2011
Messages
255
Motherboard
Gigabyte Z87M D3H
CPU
Intel Core I5 4670k
Graphics
HD 4600
Mac
  1. iMac
Classic Mac
  1. iBook
Mobile Phone
  1. Android
  2. Windows Phone
Hi.
I am using this patch
Code:
#Maintained by: PJALM for: PJALM Intel7
#
# Fixes 'Built-in' status for Intel Gigabit Ethernet on Intel Series 7 chipsets
# Also adds it to the PCI Cards list in System Info
#
into method label _DSM parent_label GLAN remove_entry;
into device label GLAN insert
begin
\n
Method (_DSM, 4, NotSerialized)\n
{\n
	Store (Package (0x0C)\n
		{\n
			"AAPL,slot-name",\n 
			"Built In",\n
			"name",\n
			"Intel Ethernet Controller",\n
			"model",\n 
			"Intel 82579V Gigabit Network Controller",\n
			"device_type",\n
			"Ethernet Controller",\n
			"built-in",\n
			Buffer (One)\n
			{\n
				0x01\n
			},\n
			"location",\n 
			Buffer (0x02)\n
			{\n
				"1"\n
			}\n
		}, Local0)\n
	DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
	Return (Local0)\n
}
end
To get this result
2vPhPLx.png


Can this kind of patch be made for Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet,and how?
Its easy when only one ethernet,but how to do this when we have 2 of them?
Thx.
 
Ok here is a patch for your Atheros Ethernet

Code:
# ********************************************************************************
#   Fix the Atheros AR8151 GbE
# ********************************************************************************
into device Label PXSX parent_label RP07 replace_content 
begin
Name (_ADR, Zero)\n
Name (_PRW, Package (0x02)\n
{\n
    0x09,\n
    0x04\n
})\n
Method (_DSM, 4, NotSerialized)\n
{\n
    Store (Package (0x0C)\n
    {\n
        "AAPL,slot-name",\n 
        "Built In",\n
        "name",\n
        "Atheros Ethernet Controller",\n
        "model",\n 
        "Atheros AR8151 Gigabit Network Controller",\n
        "device_type",\n
        "Ethernet Controller",\n
        "built-in",\n
        Buffer (One)\n
        {\n
            0x01\n
        },\n
        "location",\n 
        Buffer (0x02)\n
        {\n
            "1"\n
        }\n
    }, Local0)\n
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
    Return (Local0)\n
}
end;

Also I noticed u hav the Atheros AR9285 WiFi, you can try this too
Code:
# ********************************************************************************
#   Fix the Atheros AR928x WiFi and rename it to ARPT
# ********************************************************************************
#
into device label PXSX parent_label RP05 set_label begin ARPT end;
into device label ARPT parent_label RP05 code_regex ((?:(?!Method)[\s\S])*) store_%8;
into device label ARPT parent_label RP05 replace_content begin   end;
into device Label ARPT parent_label RP05 code_regex .* replace_matched begin
Name (_SUN, One)  // _SUN: Slot User Number\n
%8\n
Method (_DSM, 4, NotSerialized)\n
{\n
    Store (Package (0x0C)\n
        {\n
            "AAPL,slot-name",\n
            "AirPort",\n
            "device-id",\n
            Unicode ("0"),\n
            "device_type",\n
            "AirPort",\n
            "model",\n
            "Atheros AR9285 802.11 a/b/g/n Wireless Network Adapter",\n
            "subsystem-id",\n
            Buffer (0x04)\n
            {\n
                0x8F, 0x00, 0x00, 0x00\n
            }, \n
            "subsystem-vendor-id", \n
            Buffer (0x04)\n
            {\n
                0x6B, 0x10, 0x00, 0x00\n
            }\n
        }, Local0)\n
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
    Return (Local0)\n
}\n
end;
#
into method label HPME parent_label RP05 replace_content begin
If (PMSX)\n
{\n
	Store (0xC8, Local0)\n
	While (Local0)\n
	{
		Store (One, PMSX)\n
		If (PMSX)\n
		{\n
			Decrement (Local0)\n
		}\n
		Else\n
		{\n
			Store (Zero, Local0)\n
		}\n
	}\n
	Notify (ARPT, 0x02)\n
}
end;
 
I prefer to work from a clean dsdt that has no patches applied but i will take a look at the one u attached.
I attached clean dsdt,but ioreg wass from system running patched dsdt.

Thx for your great work.

My rebranded wifi now works without this
yrkIykU.png


my Onboard atheros become build in with your patch but name didnt change like in intel patch its still alx ethernet driver.
m0llhXv.png


GCNcP7y.png



Btw can this be marvel be injected from dsdt ?
H0Y53rx.png


For every version of fakesmc i compile i need to edit plist to contain this marvel controler,it will be much more elegant if i can have it in dsdt.
 
I attached clean dsdt,but ioreg wass from system running patched dsdt.

Thx for your great work.

My rebranded wifi now works without this
yrkIykU.png


my Onboard atheros become build in with your patch but name didnt change like in intel patch its still alx ethernet driver.
m0llhXv.png


GCNcP7y.png



Btw can this be marvel be injected from dsdt ?
H0Y53rx.png


For every version of fakesmc i compile i need to edit plist to contain this marvel controler,it will be much more elegant if i can have it in dsdt.

Zdravo momce vidim da si verovatno iz bivse jugoslavije.Ajde ako nisi na nasem sajtu hackintosh.rs da nam se pridruzis i budes od pomoci na njemu.Hteo sam u PM da ti posaljem ovo ali nije mi dozvoljeno izgleda.Pozzz
 
Ok here is a patch for your Atheros Ethernet

Code:
# ********************************************************************************
#   Fix the Atheros AR8151 GbE
# ********************************************************************************
into device Label PXSX parent_label RP07 replace_content 
begin
Name (_ADR, Zero)\n
Name (_PRW, Package (0x02)\n
{\n
    0x09,\n
    0x04\n
})\n
Method (_DSM, 4, NotSerialized)\n
{\n
    Store (Package (0x0C)\n
    {\n
        "AAPL,slot-name",\n 
        "Built In",\n
        "name",\n
        "Atheros Ethernet Controller",\n
        "model",\n 
        "Atheros AR8151 Gigabit Network Controller",\n
        "device_type",\n
        "Ethernet Controller",\n
        "built-in",\n
        Buffer (One)\n
        {\n
            0x01\n
        },\n
        "location",\n 
        Buffer (0x02)\n
        {\n
            "1"\n
        }\n
    }, Local0)\n
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
    Return (Local0)\n
}
end;

Also I noticed u hav the Atheros AR9285 WiFi, you can try this too
Code:
# ********************************************************************************
#   Fix the Atheros AR928x WiFi and rename it to ARPT
# ********************************************************************************
#
into device label PXSX parent_label RP05 set_label begin ARPT end;
into device label ARPT parent_label RP05 code_regex ((?:(?!Method)[\s\S])*) store_%8;
into device label ARPT parent_label RP05 replace_content begin   end;
into device Label ARPT parent_label RP05 code_regex .* replace_matched begin
Name (_SUN, One)  // _SUN: Slot User Number\n
%8\n
Method (_DSM, 4, NotSerialized)\n
{\n
    Store (Package (0x0C)\n
        {\n
            "AAPL,slot-name",\n
            "AirPort",\n
            "device-id",\n
            Unicode ("0"),\n
            "device_type",\n
            "AirPort",\n
            "model",\n
            "Atheros AR9285 802.11 a/b/g/n Wireless Network Adapter",\n
            "subsystem-id",\n
            Buffer (0x04)\n
            {\n
                0x8F, 0x00, 0x00, 0x00\n
            }, \n
            "subsystem-vendor-id", \n
            Buffer (0x04)\n
            {\n
                0x6B, 0x10, 0x00, 0x00\n
            }\n
        }, Local0)\n
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
    Return (Local0)\n
}\n
end;
#
into method label HPME parent_label RP05 replace_content begin
If (PMSX)\n
{\n
    Store (0xC8, Local0)\n
    While (Local0)\n
    {
        Store (One, PMSX)\n
        If (PMSX)\n
        {\n
            Decrement (Local0)\n
        }\n
        Else\n
        {\n
            Store (Zero, Local0)\n
        }\n
    }\n
    Notify (ARPT, 0x02)\n
}
end;

Means I now have to copy and paste this into a text edit and save to the text file.And go to patch open search this file and Apply-Ok-Compile-Save as-DSDT.aml?if so should I do?Thank you...


Code:
Please help I have a big problem via Wake after sleep.Worked until I turned off the PC and removed from power cables from my PSU.This is my proble for Wake Up.I write this command on terminal......








syslog |grep -i "Wake reason"


-Mac-Pro kernel[0] <Debug>: Wake reason: GLAN XHC
-Mac-Pro kernel[0] <Debug>: Wake reason: PXSX


But after this command this message.....
[color=#4040BF]pmset -g[/color]
Active Profiles:
AC Power 2*
Currently in use:
 standby                   1
 Sleep On Power Button 1
 womp                      1
 autorestart              0
 hibernatefile             /var/vm/sleepimage
 darkwakes               0
 networkoversleep      0
 disksleep                 10
 sleep                      10 (sleep prevented by coreaudiod)
 autopoweroffdelay    14400
 hibernatemode         0
 autopoweroff           1
 ttyskeepawake         1
 displaysleep             10
 standbydelay            4200




Speedstep work greate.......Sleep work same........Please help........
After sleep mode pc turn on but no picture on my monitor.Only turn off monitor. 
Thank you....
I attach my DSDT.aml!!!!!
 

Attachments

  • DSDT.aml.zip
    15.3 KB · Views: 98
Status
Not open for further replies.
Back
Top