Wouter1 / EMU-driver

OSX Kernel extension for Creative Labs EMU driver
189 stars 30 forks source link

installer wait till OS installed the kext #83

Closed Wouter1 closed 8 years ago

Wouter1 commented 8 years ago

It would be nice if the installer showed the system progress on the installation before terminating

We could print the progress on one line, maybe using this

echo -n "Old line"; echo -e "\e[0K\r new line"

Or maybe a progress bar line or so.

Wouter1 commented 8 years ago

the manual of kextload says

You may wish to use kextutil(8) if you want verbose output about the kext loading operation.

Wouter1 commented 8 years ago

On 10.9 these are the crucial messages in system.log:

Jul 12 08:53:16 vlieland.fritz.box com.apple.kextd[12]: Cache file /System/Library/Caches/com.apple.kext.caches/Directories/System/Library/Extensions/KextIdentifiers.plist.gz is out of date; not using.
Jul 12 08:53:16 vlieland.fritz.box com.apple.kextd[12]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/EMUUSBAudio.kext"
Jul 12 08:53:16 vlieland.fritz.box login[562]: DEAD_PROCESS: 562 ttys000
Jul 12 08:53:21 vlieland.fritz.box com.apple.kextd[12]: Cache file /System/Library/Caches/com.apple.kext.caches/Startup/KextPropertyValues_OSBundleHelper_x86_64.plist.gz is out of date; not using.
Jul 12 08:53:21 vlieland.fritz.box com.apple.kextd[12]: Rescanning kernel extensions.
Jul 12 08:53:21 vlieland.fritz.box com.apple.kextd[12]: Cache file /System/Library/Caches/com.apple.kext.caches/Startup/IOKitPersonalities_x86_64.ioplist.gz is out of date; not using.
Jul 12 08:53:21 vlieland kernel[0]: Resetting IOCatalogue.
Jul 12 08:53:22 vlieland.fritz.box com.apple.kextcache[600]: rebuilding /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/KLog.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: kext com.jmicron.JMicronATA  101069000 is in exception list, allowing to load
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBUserClient.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext "/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBHIDDriverSafeBoot.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBHIDDriver.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBCompositeDriver.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBXHCI.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBUHCI.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBOHCI.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBMergeNub.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBHub.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBEHCI.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/IOUSBFamily.kext"
Jul 12 08:53:25 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67054 0xFFFFFFFFFFFEFA12 for kext "/System/Library/Extensions/IOStorageFamily.kext"
Jul 12 08:53:26 vlieland.fritz.box com.apple.kextcache[601]: WARNING - Invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/EMUUSBAudio.kext"
Jul 12 08:53:26 vlieland.fritz.box com.apple.kextcache[601]: kext com.ATTO.driver.ATTOExpressSASRAID  307029000 is in exception list, allowing to load
Jul 12 08:53:26 vlieland.fritz.box com.apple.kextcache[601]: kext com.ATTO.driver.ATTOExpressSASHBA3  100059000 is in exception list, allowing to load
Jul 12 08:53:26 vlieland.fritz.box com.apple.kextcache[601]: kext com.ATTO.driver.ATTOExpressSASHBA  200009000 is in exception list, allowing to load
Jul 12 08:53:26 vlieland.fritz.box com.apple.kextcache[601]: kext com.ATTO.driver.ATTOExpressPCIUl4  404029000 is in exception list, allowing to load
Jul 12 08:53:26 vlieland.fritz.box com.apple.kextcache[601]: kext com.ATTO.driver.ATTOCelerityFC  304089000 is in exception list, allowing to load
Jul 12 08:53:27 vlieland.fritz.box com.apple.kextcache[603]: / locked; waiting for lock.
Jul 12 08:53:27 vlieland.fritz.box com.apple.kextcache[601]: kext com.Accusys.driver.Acxxx  300029000 is in exception list, allowing to load
Jul 12 08:53:29 vlieland.fritz.box login[604]: USER_PROCESS: 604 ttys000
Jul 12 08:53:40 vlieland.fritz.box com.apple.kextcache[601]: Created prelinked kernel /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache.
Jul 12 08:53:40 vlieland.fritz.box com.apple.kextcache[600]: /: no supported helper partitions to update.
Jul 12 08:53:40 vlieland.fritz.box com.apple.kextcache[603]: Lock acquired; proceeding.
Jul 12 08:53:40 vlieland.fritz.box com.apple.kextcache[603]: /: no supported helper partitions to update.
Wouter1 commented 8 years ago

Something like this on 10.11

Jul 10 20:33:01 wouters-MacBook-Pro com.apple.kextd[43]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/EMUUSBAudio.kext"
Jul 10 20:33:02 wouters-MacBook-Pro com.apple.kextd[43]: kext signature failure override allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/EMUUSBAudio.kext"
Jul 10 20:33:02 wouters-MacBook-Pro login[571]: DEAD_PROCESS: 571 ttys000
Jul 10 20:33:03 wouters-MacBook-Pro login[615]: USER_PROCESS: 615 ttys000
Jul 10 20:33:07 wouters-MacBook-Pro com.apple.kextd[43]: Cache file /System/Library/Caches/com.apple.kext.caches/Startup/KextPropertyValues_OSBundleHelper_x86_64.plist.gz is out of date; not using.
Jul 10 20:33:07 wouters-MacBook-Pro com.apple.kextd[43]: Rescanning kernel extensions.
Jul 10 20:33:07 wouters-MacBook-Pro com.apple.kextd[43]: Cache file /System/Library/Caches/com.apple.kext.caches/Startup/IOKitPersonalities_x86_64.ioplist.gz is out of date; not using.
Jul 10 20:33:07 wouters-MacBook-Pro kernel[0]: Resetting IOCatalogue.
Jul 10 20:33:08 wouters-MacBook-Pro com.apple.kextcache[622]: rebuilding //System/Library/PrelinkedKernels/prelinkedkernel
Jul 10 20:33:09 wouters-MacBook-Pro com.apple.kextcache[623]: kext file:///System/Library/Extensions/JMicronATA.kext/ is in hash exception list, allowing to load
Jul 10 20:33:13 wouters-MacBook-Pro com.apple.kextcache[624]: / locked; waiting for lock.
Jul 10 20:33:13 wouters-MacBook-Pro com.apple.kextcache[623]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext EMUUSBAudio.kext
Jul 10 20:33:16 wouters-MacBook-Pro com.apple.kextcache[623]: kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AppleMobileDevice.kext
Jul 10 20:33:32 wouters-MacBook-Pro kernel[0]: IO80211AWDLPeerManager::setAwdlOperatingMode Setting the AWDL operation mode from AUTO to SUSPENDED
Jul 10 20:33:32 wouters-MacBook-Pro kernel[0]: IO80211AWDLPeerManager::setAwdlSuspendedMode() Suspending AWDL, enterQuietMode(true)
Jul 10 20:33:32 wouters-MacBook-Pro com.apple.kextcache[623]: Created old kernelcache copy "/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache"
Jul 10 20:33:32 wouters-MacBook-Pro com.apple.kextcache[623]: Created prelinked kernel "/System/Library/PrelinkedKernels/prelinkedkernel"
Jul 10 20:33:32 wouters-MacBook-Pro com.apple.kextcache[623]: Created prelinked kernel using "/System/Library/Kernels/kernel"
Jul 10 20:33:32 wouters-MacBook-Pro com.apple.kextcache[622]: /System/Library/PrelinkedKernels/prelinkedkernel not cached.
Jul 10 20:33:32 wouters-MacBook-Pro kernel[0]: hfs: mounted Recovery HD on device disk0s5
Jul 10 20:33:32 wouters-MacBook-Pro mds[58]: (Volume.Normal:2464) volume:0x7fa2610b5000 ********** Bootstrapped Creating a default store:0 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/Recovery HD
Jul 10 20:33:32 wouters-MacBook-Pro fseventsd[44]: Logging disabled completely for device:1: /Volumes/Recovery HD
Jul 10 20:33:32 wouters-MacBook-Pro sandboxd[120] ([632]): DesktopServicesH(632) System Policy: deny file-write-mode /Volumes/Recovery HD/.Trashes/501
Jul 10 20:33:33 wouters-MacBook-Pro com.apple.kextcache[622]: Successfully updated disk0s5.

Jul 10 20:33:33 wouters-MacBook-Pro kernel[0]: hfs: unmount initiated on Recovery HD on device disk0s5
Jul 10 20:33:33 wouters-MacBook-Pro com.apple.kextcache[624]: Lock acquired; proceeding.
Jul 10 20:33:33 wouters-MacBook-Pro com.apple.kextcache[624]: /: helper partitions appear up to date.
Wouter1 commented 8 years ago

Would be best to first check if the kext is loadable. Maybe something like this kextutil -n EMUUSBAudio.kext 2> >(grep "appears to be loadable")

Wouter1 commented 8 years ago

Extended script to wait for completion.