Jump to content

Atheros Network Drivers


  • Please log in to reply
379 replies to this topic

#361
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,062 posts
  • Gender:Male
  • Location:Brazil
Try this driver for your wired ethernet:
http://lnx2mac.blogs...osx-driver.html

This is important even if you're not going to use it, many apps (both Apple and 3rd party) and even some games require the presence of built-in ethernet for authentication and registration purposes. Some software will refuse to install without it. Wired ethernet doesn't have to be active in Network preferences for this to work properly but it must be seen as "EN0", built-in, and have a driver loaded for it.

I think your Atheros wireless can be made to work by adding its device ID to AirportAtheros.kext inside IO80211Family.kext. Google "AirportAtheros.kext 168c:0013" (no quotes) for directions.

Get the wired ethernet going first, it's one of the cornerstones of a compatible Hackintosh.

Here's an IORegistryExplorer screenshot so you can see what it's supposed to look like (Asus P5Q-E, Marvell Yukon 88E8056).
Attached File  88E8056.png   206.28KB   277 downloads

#362
Shunnabunich

Shunnabunich

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Nova Scotia, Canada
Haha, you just got done helping my sorry {censored} with the other thing, and here you are. You're awesome. :D

I installed the ethernet kext you linked to (a kext with its own installer package?! My god, the luxury!), but it didn't seem to have any effect. Taking another look at the information provided with the kext, it seems to add support for RTL8111x and RTL8168x chips, while my board apparently uses an RTL8101E. I'll look around for that soon.

Edit: This kext did the trick.

I then ran the search you recommended, and one of the results was another thread on this forum. I tried what was described there, removing the <string>pci168c,13</string> from the plist in AirportAtheros.kext and adding it to the corresponding plist in AirportAtheros21.kext. (Embarrassingly, I'd tried adding the string to the latter, but hadn't tried also removing it from the former.)

Bottom line: wi-fi is now working flawlessly, and I've already had a Mac App Store app (Moom) start up on login without raising a fuss. Still no ethernet, but everything seems to be running fine so far anyway. Thanks yet again!

#363
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,062 posts
  • Gender:Male
  • Location:Brazil
Great but there's a problem with solving it that way - replacing the whole IONetworkingFamily.kext means that you're likely to lose wired ethernet next time Apple updates that kernel extension. That goes for the AirportAtheros kexts as well.

Inside IONetworkingFamily.kext is a plugins folder. One of the kexts in that folder is the driver for your wired Realtek ethernet. Find out if you can use this modified Realtek "plugin" kext with an unmodified IONetworkingFamily.kext from the same version of Lion that you are running now. Hopefully you kept a backup.

To prevent an OS update from reverting our modifications, we can (not in all cases though) make our own "Legacy Kext" or "plist-only kext". Besides preventing loss of functionality, this method is preferred because it allows you to use the latest drivers.
Quote from Hagar:

"Plist-only" or "Legacy" kexts consist of an empty kext with just the Info.plist inside. The object of this is to add to or override the values in the main kext that is being loaded by the system. typically this will add device IDs or similar values to allow the kext to load with hardware other than that which it was intended for, but crucially *without* modifying the original kext itself, so that functionality will not be lost in the event of an update.

If your modifications (as is the case with the Atheros edits) consist solely of adding or replacing device IDs, this method will work for you.

There are guides on how to make your own legacy kexts both here and on the ProjectOSX forums.
As a study object, you could find and download "AppleYukon2Legacy.kext" and compare it to the original AppleYukon2.kext. It works by replacing the name and device IDs for the Marvell Yukon 88E8053 with those of the 88E8056, and upping a version number so that it loads first, overriding the original. /EDIT - I knew it..here's the topic I had a vague memory of:
http://www.insanelym...howtopic=157881

If you're lucky, someone has already made an Atheros21 legacy kext and uploaded it somewhere.

About the wired ethernet, you will have to find out what modification has been made to the IONetworkingFamily.kext you have downloaded - if there's a modified Realtek driver inside its plugins folder or if it's just a plist edit to a driver that already ships with OS X. Compare the modified one with a clean one.
Some "plugins" can exist outside of their "family" kext in /System/Library/Extensions. But, if you place it there, and the one inside IONetworkingFamily.kext gets updated by Apple, the new one will load because it has a higher version number. You can get around this issue by setting a ridiculously high version number like 9.9.9 in the info.plist of your modified kext.

Good luck and sorry I can't be more specific - the bits I didn't explain are out there if you look for them.

#364
vorken

vorken

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
I'm trying to connect USB TP-Link wn822n v2 which based on chip Atheros AR9287 to Lion, but have no progress.
What should i change in AirportAtheros40.kext to make this thing work?
I tried to change the string << pci168c / 2e>> to <<usb168c /2d>> or <<pci168c / 2d>> It doesn't work.
Help me, pls.

#365
Neolo

Neolo

    InsanelyMac Protégé

  • Members
  • PipPip
  • 99 posts
Hi! Got an too much new wi-fi dongle TP-Link WN821N V.3 (Atheros AR7015) which very different than two previous v.1, v.2. Can't find any information about this chipset anywhere for MacOSX. Simple editing Plist and adding PID\VID in stock kext doing nothing. Any solution?

#366
Neolo

Neolo

    InsanelyMac Protégé

  • Members
  • PipPip
  • 99 posts

I'm trying to connect USB TP-Link wn822n v2 which based on chip Atheros AR9287 to Lion, but have no progress.
What should i change in AirportAtheros40.kext to make this thing work?
I tried to change the string << pci168c / 2e>> to <<usb168c /2d>> or <<pci168c / 2d>> It doesn't work.
Help me, pls.

Try here http://www.osx86.net...do=file&id=1626

#367
ugokind

ugokind

    InsanelyMac Deity

  • Donators
  • 1,712 posts
  • Gender:Male
  • Location:10100
  • Interests:Apicoltura
    Mac
    Linux
    Homebrew
    Australia
    Spremermilcervello
Atheros half mini pcie 9285 good Airport in Lion.. with small mods..
but
what about the internal BT module .. and the Coexistence function?

#368
3square

3square

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
can someone help me get my d-link dwa-556 to work? it won't recognize, and i'm on 10.7.3 i've been using a airlink usb dongle. i don't know what else to add.. i'm just so tired

#369
Shunnabunich

Shunnabunich

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Nova Scotia, Canada
Hi again! My wi-fi has been working fine ever since my last post, but I've been procrastinating on making that legacy kext until now. I want to install Xcode in order to get Dashcode on my system, but evidently I would need to be running 10.7.3, not 10.7.2. I want to make sure I'm doing everything right before I update, if possible, to avoid having to fix broken stuff after.

So far, as instructed, I've made a copy of AirPortAtheros21.kext in a folder on my desktop, and edited Info.plist so that it now reads:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>legacy.driver.AirPort.Atheros21</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Legacy AirPort Atheros Fix for D-Link DWL-G520 rev.B3</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>9.9.9</string> <!-- Changed from 4.2.0 -->
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>9999.9.99</string> <!-- Changed from 420.8.10 -->
<key>IOKitPersonalities</key>
<dict>
  <key>Atheros Wireless LAN PCI</key>
  <dict>
   <key>CFBundleIdentifier</key>
   <string>legacy.driver.AirPort.Atheros21</string>
   <key>IOClass</key>
   <string>AirPort_AthrFusion21</string>
   <key>IOMatchCategory</key>
   <string>IODefaultMatchCategory</string>
   <key>IONameMatch</key>
   <array>
	<string>pci168c,13</string>
   </array>
   <key>IOProviderClass</key>
   <string>IOPCIDevice</string>
  </dict>
</dict>
<key>OSBundleLibraries</key>
<dict>
  <key>com.apple.iokit.IO80211Family</key>
  <string>300.0</string>
  <key>com.apple.iokit.IONetworkingFamily</key>
  <string>1.8</string>
  <key>com.apple.iokit.IOPCIFamily</key>
  <string>2.0</string>
  <key>com.apple.kpi.bsd</key>
  <string>10.0.0b1</string>
  <key>com.apple.kpi.iokit</key>
  <string>10.0.0b1</string>
  <key>com.apple.kpi.libkern</key>
  <string>10.0.0b1</string>
  <key>com.apple.kpi.mach</key>
  <string>10.0.0b1</string>
  <key>com.apple.kpi.unsupported</key>
  <string>10.0.0b1</string>
</dict>
</dict>
</plist>

I've marked with comments what the original version numbers were. So, uh...is that everything I need to do to the plist?

Does the OSBundleLibraries section have any impact on it (i.e. do I need to change any version numbers there, or even remove that section altogether)?

I presume I'll have to update the corresponding version numbers in version.plist; is that correct?

Is it safe to delete the MacOS folder, since the executable is no longer being called in Info.plist? What about _CodeSignature, CodeDirectory, CodeRequirements, etc.?

Thanks again for any help you're able and willing to provide!

#370
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,062 posts
  • Gender:Male
  • Location:Brazil
The legacy kext aka "plist only kext" only has info.plist inside, nothing else. That's why it's called a plist only kext! (see quote from Hagar in my other post)

It looks like it will work - restore your unmodified kexts, place your legacy kext in System/Library/Extensions and see if it does!

#371
Shunnabunich

Shunnabunich

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Nova Scotia, Canada
Thanks! I'll probably have time to do this tomorrow after work, so we'll see what happens then!

Edit: I backed up my primary Lion partition and installed the legacy kext to /Extra/Extensions on the backup partition, then booted from the backup and updated to 10.7.3 via Software Update. I'm editing this post from the backup on 10.7.3 right now, and it's as if nothing changed. Whatever change was made to the ethernet driver was apparently not affected by the update, because I didn't have to run its installer again. Guess I'll run through the same procedure on the main partition.

#372
MacNB

MacNB

    InsanelyMac Protégé

  • Members
  • PipPip
  • 69 posts
  • Gender:Male
I just built a desktop based on GA-Z77X-UP5-TH motherboard running Mountain Lion.
Bought an AR5B95 mini-pcie card and a PCI-e 1x adapter.

Modified the IO80211Family.kext->Plugins->AirPortAtheros40.kext->Info.plist to add pci168c,2b to the IONameMatch list.

All works fine and have wireless access.

But this is ugly to have to modify stock kexts as so far I have not had to modify any kext.
So, I put the original kext back.

I searched but did not find a legacy/plist-kext/injector for Aethros cards for Mountain Lion.
The one I found did not work with Mountain Lion.

But...I have modified it to work with Mountain Lion.
It's a simple info.plist into which you add or modify the dev/ven ID's.
Add this kext to /System/Library/Extension using your favorite kext tool.
Now there are no modded kext in /S/L/E :star_sunglasses:

If there an OS update that updates AirPortAtheros40.kext->Info.plist, then it does not matter as this injector will make sure that the correct device id is injected into the new kext.

I may have reinvented the wheel but solved my problem.

Note I cannot take credit for the injector...just the mod to make it work with ML :)
Attached the injector.

Attached Files



#373
The-Hackintosh

The-Hackintosh

    InsanelyMac Protégé

  • Members
  • Pip
  • 32 posts
any Driver For this Adapter Athereos AR9227 for Mountain Lion 10.8.2?

#374
MacOlifa

MacOlifa

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

any Driver For this Adapter Athereos AR9227 for Mountain Lion 10.8.2?


Yeah, I got mine working with this one:
Attached File  IO80211Family.kext.zip   1.67MB   119 downloads


I don't know if it is native kext or some of the internet (I did several experiments) but I just add pci168c,2d in the AirPortAtheros40.kext and voila, it works.
//But! There are still some problems, my Wi-Fi stucks after 10 Minutes and I must re-activate my Wi-Fi Card in the Network Settings to get it work again. Some solutions maybe?

#375
Sebastian Rooks

Sebastian Rooks

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts
Wow, good guys could you please guide me to install my two wifi devices on iatkos l2 (10.7.2).

1- D-Link AirPlus XtremeG DWL-G520 (Atheros AR5212 chipset, pci card)
2- Alfa AWUS036H (Realtek RTL8187L chipset, usb adapter)

#376
RobertX

RobertX

    InSanelyMac Maverick

  • Members
  • PipPipPipPipPipPipPip
  • 532 posts
  • Gender:Not Telling

...hey folks, I was doing a bit of reading...and found this little tidbit of knowledge that got my D-Link AirPlus XtremeG DWL-G520 working as AirPortExtreme...take a look here  http://brielle.sosdg...ing-10.8.4.html ...i installed the kext from 10.7.3 ( IO80211Family.kext) from the zipped package found on that page...and this little injector Attached File  763-AtherosFix.kext.zip   4.56KB   41 downloads ...both installed in /S/L/E and rebooted...here's what i now have on 10.8.3

 

                                                                                                    Attached File  airportextreme.png   67.11KB   6 downloads  :smoke:

 

 

...all this on an old salvaged Intel D945GNT board with a PentiumD(Presler)940...even using an old IDE HDD ...and of course Andy's  patched kernel for 10.8 ...just sayin'



#377
mpaolo58

mpaolo58

    InsanelyMac Geek

  • Donators
  • 120 posts
  • Gender:Male
  • Location:Dalle assolate terre sarde

Ciao

qualcuno ha consigli per una atheros AR9485 ?

Grazie



#378
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,062 posts
  • Gender:Male
  • Location:Brazil

There is no support for the AR9485.



#379
mpaolo58

mpaolo58

    InsanelyMac Geek

  • Donators
  • 120 posts
  • Gender:Male
  • Location:Dalle assolate terre sarde
Conosci una scheda che possa sostituire oppure una scheda wifi usb compatibile?

#380
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,062 posts
  • Gender:Male
  • Location:Brazil

Anything with a supported wi-fi chip should work, PCI card or USB stick. I don't keep up with these things, I have the AR9485 myself which is why I happen to know that there is no driver for it.

 

As far as I know Apple uses primarily Atheros and Broadcom, there are third party drivers that work with some Ralink devices. I'm sure there are more.

There is plenty of information here, it should be a simple task to find out what you're looking for. Much faster than posting here and waiting for someone to answer.

 

Please if you can't post in English, post in the Italian section. I can barely understand what you're saying, much less reply to you in Italian.

Moderators need to be able to moderate and we can't do that when we can't understand what people are saying.







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