Hi, I'm trying out Lion DP 4 with latest updates on my Asus P6T Deluxe V2, i7 920, GTX 260 Hackintosh.
The bootloader I used is Chameleon_2.0_RC5_r1020.pkg
My only kexts in /Extra/Extensions is fakesmc.kext for now.
Obviously I have my DSDT.aml in /Extra.
Tried latest versions of Kext Utility and Kext Wizard.
I'm having a slow boot because the Kexts are being processed on every boot, and it takes quite some time, when it finishes then the normal boot take place. It happens on every boot. Like a when a mkext is missing.
If I look at /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache and /var/db/BootCache.data boot files always have a modification date from the actual boot time, is this normal?
Any idea of what's happening?
Thanks in advance,
Karina
41 replies to this topic
#1
Posted 20 June 2011 - 01:35 PM
#2
Posted 20 June 2011 - 10:14 PM
I was running into the same problem with DP4, and I found a post "somewhere" on some other forum. The poster was Oldnapalm. Here's the command that worked for me:
It creates kextcache and the mkext for /S/L/E.
Hope it works for you.
sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions
It creates kextcache and the mkext for /S/L/E.
Hope it works for you.
#3
Posted 20 June 2011 - 10:52 PM
#4
Posted 21 June 2011 - 12:41 AM
Hi guys, thanks for the help.
It's working now with that solution!!!, now I'm confused, wasn't the mkext supposed to be created with Kext Utility and Kext Wizard? like in old times.
It's working now with that solution!!!, now I'm confused, wasn't the mkext supposed to be created with Kext Utility and Kext Wizard? like in old times.
#5
Posted 21 June 2011 - 09:13 AM
I use the UseKernelCache=Yes on my com.apple.boot.plist and it works okay.
#6
Posted 21 June 2011 - 06:37 PM
thanx..... I was wondering about that
#7
Posted 21 June 2011 - 10:31 PM
Efi Gy, on Jun 21 2011, 06:13 AM, said:
I use the UseKernelCache=Yes on my com.apple.boot.plist and it works okay.
Yes, but when you use UseKernelCache how are your /E/E being processed? or did you copy them to /S/L/E ?
----
Also does anyone know an answer to my question about Kext Utility and Kext Wizard not creating the corresponding mkext that the kextload command created?
Karina
#8
Posted 22 June 2011 - 03:53 AM
You want to add -usecache for /E/E
#9
Posted 23 June 2011 - 01:12 AM
Just want to say Thank You works perfect
#10
Posted 23 June 2011 - 07:14 AM
#11
Posted 24 June 2011 - 01:40 PM
KariNeko-
You would need to look at the source code for Kext Utility and Kext Wizard to see what's going on. Kext Wizard does create an mkext for /E/E, but not for /S/L/E. Lion does not by default create/use an mkext.
helob-
Depending on which Chameleon and or Lion install method you used, some commands work for one and not others at the prompt before boot.
One place to begin seeing what's going or "what's new" in Lion vs Snow is to read:
Quote
Also does anyone know an answer to my question about Kext Utility and Kext Wizard not creating the corresponding mkext that the kextload command created?
You would need to look at the source code for Kext Utility and Kext Wizard to see what's going on. Kext Wizard does create an mkext for /E/E, but not for /S/L/E. Lion does not by default create/use an mkext.
helob-
Depending on which Chameleon and or Lion install method you used, some commands work for one and not others at the prompt before boot.
One place to begin seeing what's going or "what's new" in Lion vs Snow is to read:
man kextcache
#12
Posted 29 June 2011 - 01:54 PM
Thanks jfMac, this solved my slow boot !!
Kari
Kari
#13
Posted 30 June 2011 - 10:10 PM
I'am on Lion DP4 11A494a
built the kext.cache as mentioned before using
sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions
But I had to move prior all non-OSX kext to /E/E.
Because of kextbuild complaints like "kext xxx is not authentic..bla bla"
i.E. RTL81xxx.kext and PXHCD.kext (for Renesas USB3)
No need for editing apple.com.Boot.plist.
built the kext.cache as mentioned before using
sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions
But I had to move prior all non-OSX kext to /E/E.
Because of kextbuild complaints like "kext xxx is not authentic..bla bla"
i.E. RTL81xxx.kext and PXHCD.kext (for Renesas USB3)
No need for editing apple.com.Boot.plist.
#14
Posted 03 July 2011 - 07:38 AM
Here's some info on using kernelcache...
It works well, but the down side is that all the kexts you want to use have to be in /S/L/E. So for me, i've got:
- AppleHDA.kext (from 10.6.2)
- RealtekRTL81xx.kext
- ALC8xxHDA.kext
- FakeSMC.kext
- JMicron36xSATA.kext
These kexts need to have the root:wheel ownership, and 644 permissions.
In your com.apple.boot.plist file, put in the following:
<key>UseKernelCache</key>
<string>Yes</string>
Once that's done - simply delete /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache and reboot your machine. It'll rebuild the kernelcache file and the bootloader will use it upon startup.
The upside to using this method is that the kernelcache file is rebuilt when new kexts are installed. When using an mkext file, you have to keep it up to date yourself.
Of course - using this method will not touch your /E/E or /EFI/E/E kexts. If you want these to be processed as a once off - just boot with the -f option and it will ignore all caches.
Just thought i'd share
It works well, but the down side is that all the kexts you want to use have to be in /S/L/E. So for me, i've got:
- AppleHDA.kext (from 10.6.2)
- RealtekRTL81xx.kext
- ALC8xxHDA.kext
- FakeSMC.kext
- JMicron36xSATA.kext
These kexts need to have the root:wheel ownership, and 644 permissions.
In your com.apple.boot.plist file, put in the following:
<key>UseKernelCache</key>
<string>Yes</string>
Once that's done - simply delete /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache and reboot your machine. It'll rebuild the kernelcache file and the bootloader will use it upon startup.
The upside to using this method is that the kernelcache file is rebuilt when new kexts are installed. When using an mkext file, you have to keep it up to date yourself.
Of course - using this method will not touch your /E/E or /EFI/E/E kexts. If you want these to be processed as a once off - just boot with the -f option and it will ignore all caches.
Just thought i'd share
#15
Posted 03 July 2011 - 11:55 AM
Hi, thanks for the information, so for now we have two options:
1) Use old kextcache (mkext) method, and have to manually ran kextcache -v 1 blabla to update the cache file on each extensions change. com.apple.boot.plist does not require modification.
or
2) Use new kernelcache method, placing extensions from /E/E in /S/L/E and Lion will rebuild the cache every time something changes in /S/L/E. com.apple.boot.plist modified to UseKernelCache=Yes
1) Use old kextcache (mkext) method, and have to manually ran kextcache -v 1 blabla to update the cache file on each extensions change. com.apple.boot.plist does not require modification.
or
2) Use new kernelcache method, placing extensions from /E/E in /S/L/E and Lion will rebuild the cache every time something changes in /S/L/E. com.apple.boot.plist modified to UseKernelCache=Yes
#16
Posted 03 July 2011 - 08:55 PM
Hi,
I had the kext processing on boot problem as well. Running "sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions" fixed it for me. But, after doing this I installed a kext to make my sound work. Rebooting after installing my sound driver made it process the kext files again, which was somewhat understandable... But it does it on every boot now. Re-running the above command fixed it, but then my sound doesn't work. Can anyone point me in the right direction? At this point I can either live with no sound and fast boots, or sound with slow boots. Not a very good choice to have to make.
I had the kext processing on boot problem as well. Running "sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions" fixed it for me. But, after doing this I installed a kext to make my sound work. Rebooting after installing my sound driver made it process the kext files again, which was somewhat understandable... But it does it on every boot now. Re-running the above command fixed it, but then my sound doesn't work. Can anyone point me in the right direction? At this point I can either live with no sound and fast boots, or sound with slow boots. Not a very good choice to have to make.
#17
Posted 03 July 2011 - 09:50 PM
i had the exact same problem using the mkext file.
switching to the UseKernelCache option fixed this for me.
switching to the UseKernelCache option fixed this for me.
#18
Posted 03 July 2011 - 10:08 PM
stevekicks, on Jul 3 2011, 04:50 PM, said:
i had the exact same problem using the mkext file.
switching to the UseKernelCache option fixed this for me.
switching to the UseKernelCache option fixed this for me.
Thanks. I tried following your directions above, but after doing so it wouldn't boot. It hangs with the error: "ACPI_SMC_PlatformPlugin::registerLPCDriver - failed to locate SMC driver"
If I reboot with -x, I can remove the flag from the boot plist file, reboot again (and wait 5 minutes while it does so), it successfully boots.
I'm a bit of a noobie with this stuff, I'm afraid. Anyone have any suggestions?
EDIT: Fixed it! I had to put the .kext files that were in /E/E to /S/L/E, then run the command that creates the mkext. Seems to be working fine now.
#19
Posted 06 July 2011 - 07:42 PM
I had the same problem with verbose boot but it was fast with normal boot.
#20
Posted 06 July 2011 - 08:37 PM
jfMac, on Jun 20 2011, 06:14 PM, said:
I was running into the same problem with DP4, and I found a post "somewhere" on some other forum. The poster was Oldnapalm. Here's the command that worked for me:
It creates kextcache and the mkext for /S/L/E.
Hope it works for you.
sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions
It creates kextcache and the mkext for /S/L/E.
Hope it works for you.
This worked for me as well in speeding up my boot.
I also added the -z flag.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



Sign In
Create Account








