InfiniteMac OSx86  


Reply
 
Thread tools Display modes
  #1  
Old 11-26-2010, 08:08 PM
andyvand's Avatar
andyvand andyvand is offline
 
Join Date: Apr 2009
Location: Tienen
Posts: 515
DeviceMergeNub for _DSM style injection (Injecting values into PCI devices with kext)

This is an example of using the DeviceMergeNub for injection.
The stock plist injects into an SMBus controller.
In the case of the example it uses
-Vendor ID: 0x8086 (Intel) with vendor-id (<86800000>)
-Device ID: 0x27da with device-id (<da270000>)
And it injects the following values through IOProviderMergeProperties:
-device-id: set to 0x303a (<3a300000>)
-name: set to pci8086,303a
-IOName: set to pci8086,303a
It is possible to inject for any device this way.
It can even match for entire classes if class-code is used instead of vendor-id and device-id.
IORegistryExplorer is handy for looking up the exact device entries.
You need to get the Apple plist editor for editing the Info.plist

Download example:
http://rapidshare.com/files/43331213...Nub_inject.zip

Download plist editor:
http://rapidshare.com/files/43331229...ist_Editor.zip

Download IORegistryExplorer:
http://rapidshare.com/files/43068777...ryExplorer.zip

Sources for DeviceMergeNub:
http://rapidshare.com/files/43291811...ceMergeNub.zip

Sources and builds for Tiger, Leopard and Snow Leopard:
http://rapidshare.com/files/43349686...Nub_all_os.zip

Last edited by andyvand; 11-27-2010 at 08:06 PM.
Reply With Quote
  #2  
Old 11-26-2010, 11:37 PM
andyvand's Avatar
andyvand andyvand is offline
 
Join Date: Apr 2009
Location: Tienen
Posts: 515
A proper plist example is the one attached below.
Sorry for the bad first example...



💡 Deploy cloud instances seamlessly on DigitalOcean. Free credits ($100) for InfMac readers.

Attached Files
File Type: zip Info.plist.zip (1.2 KB, 56 views)
Reply With Quote
Reply