I don't think it's a good idea to modify a standard apple kext just to do a device injection. Much cleaner just to create a simple injector kext. That way, even if apple updates AppleAHCIPort.kext, the devices will still show up correctly.
Here's how to create a device injector:
- Create a folder on your desktop called "AHCISeries7Injector"
- In AHCISeries7Injector folder, create a subfolder called "Contents"
- Create a new file with the text specified below and save it as "Info.plist" inside the Contents folder
- Rename the "AHCISeries7Injector" folder to "AHCISeries7Injector.kext"
- The folder icon will change to a kernel extension icon
- Use Kext Wizard to install the AHCISeries7Injector.kext
- Reboot
If you previously modified your original AppleAHCIPort.kext, you'll want to revert back to the original (you made a backup, didn't you?)
Contents of Info.plist:
Code:
<?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>com.corknation.driver.AHCISeries7Injector</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>AHCISeries7Injector Fix</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>IOKitPersonalities</key>
<dict>
<key>Intel7SeriesAHCI</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.driver.AppleAHCIPort</string>
<key>Chipset Name</key>
<string>7 Series Chipset</string>
<key>IOClass</key>
<string>AppleIntelPchSeriesAHCI</string>
<key>IONameMatch</key>
<array>
<string>pci8086,1e02</string>
</array>
<key>IOProbeScore</key>
<integer>2000</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
<key>Vendor Name</key>
<string>Intel</string>
</dict>
</dict>
<key>OSBundleRequired</key>
<string>Local-Root</string>
</dict>
</plist>
For those people that would rather just download a file instead of learning how these things actually work, here's a
LINK