InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   DeviceMergeNub for _DSM style injection (Injecting values into PCI devices with kext) (http://infinitemac.com/showthread.php?t=6754)

andyvand 11-26-2010 08:08 PM

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

andyvand 11-26-2010 11:37 PM

1 Attachment(s)
A proper plist example is the one attached below.
Sorry for the bad first example... :-|