Jump to content

Atheros AR9285 fix for Snow Leopard - Mavericks


  • Please log in to reply
154 replies to this topic

#121
stoomath

stoomath

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts
Okay i recovered the system. Code is still not working in peg1 though, it gives me the PCIRootUID flag. Any suggestions?

#122
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
think youre supposed to add under _ADR the _DSM of the fix. minus the last enclosing bracket }

										Method (_DSM, 4, NotSerialized)

										{

												Store (Package (0x0c)

														{

																"AAPL,slot-name", Buffer () {"AirPort"},

																"device-id", Buffer () {0x2A, 0x00, 0x00, 0x00},

																"device_type", Buffer () {"AirPort"},

																"model", Buffer () {"Atheros 9285 8802.11 b/g/n Wireless Network Adapter"},

																"subsystem-id", Buffer () {0x8F, 0x00, 0x00, 0x00},

																"subsystem-vendor-id", Buffer () {0x6B, 0x10, 0x00, 0x00}

														}, Local0)

												DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

												Return (Local0)

										}

notice its short a bracket }

paste this to a text editor then make plain text then copy to dsdt editor (to get rid of color formating)

device id can be 2A or 30.



#123
stoomath

stoomath

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts
So exactly as per the fix but with one less bracket at the end? I tried this, and it still gave the me the same error message. PCIRootUID flag.

#124
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
post your dsdt.zip

#125
stoomath

stoomath

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts
Attached is a zip with the original DSDT.aml and a screenshot of both the IOReg and System Information.

http://www.mediafire...w8q5wwn6q7y9xsv

#126
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
seems macman forgot to make UID of pci 0
	   Device (PCI0)
		{
			Name (_HID, EisaId ("PNP0A03"))
			Name (_ADR, Zero)
			Name (_UID, One) // should be Zero
			Name (_BBN, Zero)
http://www.insanelym...pic=190780&st=0
Required for 10.6.8 and Lion: PCI Patch

Device (PCI0)
{
Name (_HID, EisaId ("PNP0A08"))
Name (_CID, EisaId ("PNP0A03"))
Name (_ADR, Zero)
Name (_UID, Zero)

#127
stoomath

stoomath

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts
So do I need to insert this code somewhere as well as the original code in PEG1?

Update: I just changed the UID to zero... The error message still occurred.

Update 2: I have tried every permutation of the above code in PCI0 and still get the error message. Now I'm really confused... :(

#128
stoomath

stoomath

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts
No other suggestions on how I might be going wrong? Would it be possible for you to insert the code into the DSDT for me? It would be really appreciated... I'm banging my head against the wall here.

#129
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
original dsdt ??
Name (TMAC, "GA-Z68X-UD3H-B3-F8 edits by MacMan at tonymacx86.com 2011-09-12")
what bios version u have ?

sounds like when i said u need dsdt u went out and found one. instead of extracting yours.

#130
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
for some strange reason its not letting me make device-id work in the dsdt. keeps going unicode 0.
Device (ARPT)
				{
					Name (_ADR, Zero)
					Method (_DSM, 4, NotSerialized)
					{
						Store (Package (0x08)
							{
								"AAPL,slot-name",
								Buffer (0x08)
								{
									"AirPort"
								},
								"device_type",
								Buffer (0x08)
								{
									"AirPort"
								},
								"subsystem-id",
								Buffer (0x04)
								{
									0x8F, 0x00, 0x00, 0x00
								},
								"device-id",
								Buffer (0x04)
								{
									0x2A, 0x00, 0x00, 0x00
								}
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}
				}
turns into this
Device (ARPT)
				{
					Name (_ADR, Zero)
					Method (_DSM, 4, NotSerialized)
					{
						Store (Package (0x08)
							{
								"AAPL,slot-name",
								Buffer (0x08)
								{
									"AirPort"
								},
								"device_type",
								Buffer (0x08)
								{
									"AirPort"
								},
								"subsystem-id",
								Buffer (0x04)
								{
									0x8F, 0x00, 0x00, 0x00
								},
								"device-id",
								Unicode ("0")
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}
				}
"device-id", Unicode ("0")
BAD .. I NEVER HAD THIS HAPEN
i was able to keep device id when i moved code to pex1 . so it something with peg1 . pciexpress graphics ?

can u switch it from slot to another and check ioregistry explorer
also can u show me lspci -n

#131
stoomath

stoomath

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts
Sorry about the DSDT.aml I uploaded. I uploaded the DSDT.aml file from Library/Extras, rather than saving the extracted DSDT.aml from DSDT Explorer. Attached is the extracted DSDT.

I do indeed have a pciexpress graphics card installed. I tried changing around the slot that the tp=link wifi card is in, and eventually managed to have it in now running in PEX2 (as per screen shot attached). im not sure what you mean by lspci -n.

http://www.mediafire...c34009991r8cqbf

#132
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
add
Device (ARPT)
								{
										Name (_ADR, Zero)
										Method (_DSM, 4, NotSerialized)
										{
												Store (Package (0x08)
														{
																"AAPL,slot-name",
																Buffer (0x08)
																{
																		"AirPort"
																},
																"device_type",
																Buffer (0x08)
																{
																		"AirPort"
																},
																"subsystem-id",
																Buffer (0x04)
																{
																		0x8F, 0x00, 0x00, 0x00
																},
																"device-id",
																Buffer (0x04)
																{
																		0x2A, 0x00, 0x00, 0x00
																}
														}, Local0)
												DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
												Return (Local0)
										}
								}
at pex2 (_ADR, blablaaddress|(here press enter if using dsdt editor not dsdtse)
here u add the code above ( u can change device id to 30 instead of 2A to try firmware 4. instead of version 2. for 2A ar9280)

tip to not copy coloring codes from forum .. paste to notepad first then make plain text.. then recopy from text editor and paste to dsdt editor..

lspci http://www.osx86.es/?p=620

your dsdt from macman is for bios F8. do u have F8
text compare the .dsl of both yours and his to see whats changed.

#133
stoomath

stoomath

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts
Okay thanks latinmcg. I just tried your suggestions, and have been trying to get it to work for hours now... I think im way out of my depth here and completely lost. Would you be able to insert the code for me?

And yes my bios is F8.

DSDT editor doesn't compile for me (and doesn't give me any errors), DSDTSE gives me errors saying there are invalid characters (but there are no characters on the line it refers to). If you could insert the code for me it would be greatly appreciated. I'd be able to see how it is supposed to be entered properly.

#134
pnoytechie

pnoytechie

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
I've been trying this. But I'm not good in DSDTing :(

Could anyone tell me how to put this correctly in my DSDT?

I'm using ASRock Z77 Extreme4 board with i5 2500k. Atheros 9285 card is TP-Link TL-WN781ND v1.

I extracted my DSDT (using DSDTE/DSDT Editor), but when I tried to integrate the DSDT code (from page 1), IASL gives me errors (18 errors to be exact). Could anyone tell me how to correct this?

here's the original, unmodified DSDT from my board: Attached File  dsdt_stock.txt   341.42KB   4 downloads

here's the version after I inserted the code in page 1: Attached File  dsdt_modded.txt   343.78KB   9 downloads

and here goes the IASL compilation log, with 18 errors: Attached File  iasl_log.txt   9.49KB   1 downloads

RP07 is where the card is plugged in, as shown in IOReg:
Attached File  ioreg_pci168c,2b.png   117.48KB   46 downloads

Anyhelp will be greatly appreciated.

Thanks in advance!

#135
juanerson

juanerson

    InsanelyMac Legend

  • Local Moderators
  • 1,448 posts
  • Gender:Male
  • Location:Tru, Venezuela
pnoytechie
DSDT compilation errors was fixed, basic fixes applied, AirPort device and injection added, and .dsl file for future hack editions attached.

Then,
Try the dsdt.aml from /Extra
+
Install the DeviceMergeNub injector in /S/L/E. And just try installing only one of them at time, because it depend of firmware card to show in ioreg.
+
Repair permissions and rebuild cache. Finally, restart the system. Sorry my English. Good Luck.

NOTE: This is to use with the VANILLA IO80211Family.kext

Attached Files



#136
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
juanerson when u get a card like ar9285 or 9287 that wont work with id 2A try 30. it uses firmware 4 not 2 in binary

#137
pnoytechie

pnoytechie

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts

pnoytechie DSDT compilation errors was fixed, basic fixes applied, AirPort device and injection added, and .dsl file for future hack editions attached. Then, Try the dsdt.aml from /Extra + Install the DeviceMergeNub injector in /S/L/E. And just try installing only one of them at time, because it depend of firmware card to show in ioreg. + Repair permissions and rebuild cache. Finally, restart the system. Sorry my English. Good Luck. NOTE: This is to use with the VANILLA IO80211Family.kext


thank you very much juanerson. i haven't tried it yet, but i will when i get the time.

so you mean to say that this DSDT patch for AR9285 will not work without the devicemergenub?

thanks again, appreciate it.

#138
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida

thank you very much juanerson. i haven't tried it yet, but i will when i get the time.

so you mean to say that this DSDT patch for AR9285 will not work without the devicemergenub?

thanks again, appreciate it.

devicemergenub was adjusted to change country code locale.

#139
yurick

yurick

    InsanelyMac Protégé

  • Members
  • PipPip
  • 73 posts
Device (ARPT)
			    {
				    Name (_ADR, Zero)
				    Method (_DSM, 4, NotSerialized)
				    {
					    Store (Package (0x18)
						    {
							    "AAPL,slot-name",
							    Buffer (0x09)
							    {
								    "Built In"
							    },
							    "built-in",
							    Buffer (One)
							    {
									 0x00
							    },
							    "device_type",
							    Buffer (0x08)
							    {
								    "AirPort"
							    },
							    "device-id",
							    Unicode ("*"),
							    "compatible",
							    Buffer (0x28)
							    {
								    "pci106b,8f, pci168c,2b, pciclass,028000"
							    },
							    "model",
							    Buffer (0x20)
							    {
								    "AR9285 Wireless Network Adapter"
							    },
							    "IOName",
							    Buffer (0x0B)
							    {
								    "pci168c,2b"
							    },
							    "name",
							    Buffer (0x0B)
							    {
								    "pci168c,2b"
							    },
							    "revision-id",
							    Buffer (0x04)
							    {
									 0x01, 0x00, 0x00, 0x00
							    },
							    "subsystem-id",
							    Buffer (0x04)
							    {
									 0x8F, 0x00, 0x00, 0x00
							    },
							    "subsystem-vendor-id",
							    Buffer (0x04)
							    {
									 0x6B, 0x10, 0x00, 0x00
							    },
							    "vendor-id",
							    Buffer (0x04)
							    {
									 0x8C, 0x16, 0x00, 0x00
							    }
						    }, Local0)
					    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
					    Return (Local0)
				    }
			    }
		    }
Posted Image

#140
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
yurick .. device id is unicode. u can remove that line





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