I am writing a customised mass storage kernel extension for Mac, subclassed from the IOSCSIPeripheralDeviceType05
logical unit driver. I have got as far as compiling a .kext file, which passes kextutil -n -t ...
, but I cannot load it for testing.
I have a non-zero IOKitDebug
field in the .plist, and the GetDeviceConfiguration
looks like this:
IOReturn
com_MyCompany_driver_MyDriver::GetDeviceConfiguration( void )
{
IOLog( "MyDriver overriding GetConfiguration\n" );
return super::GetDeviceConfiguration();
}
However when I copy it into /System/Library/Extensions/
and execute it with kextutil /System/Library/Extension/MyDriver.kext
, nothing happens, and nothing appears in /var/log/system.log
.
How do I load this .kext to be able to debug it?