Guest sincro77 Posted February 22, 2012 Share Posted February 22, 2012 Hi guys and gals, The UseKernelCache feature (was) not working properly. /// (( edit.. it is now! .))) I have ML working fine ...but without the Kernel Cache. (obviously it spits a long kextlist like -f during verbose.) I installed all my kexts (nvenabler,voodoohda,wifi etc,) So ... after that I enabled flag 'UseKernelCache=Yes ' - to trim down the boot time a bit... (supposedly)... but (here's the problem)--using the caches ML is not happy. * using chameleon 2415 package for ML. customizable install.. using the flags and features.. Isnt the whole point to load the 'Kernelcache' and not have to rescan/rebuild it every boot.?? (TO SAVE TIME!.. ugh.) ?? as far as i know....(shrug) Any info would be appreciated.. Sincro77 Link to comment Share on other sites More sharing options...
Guest sincro77 Posted February 22, 2012 Share Posted February 22, 2012 http://thedotnetter....s.com/tag/lion/ ya ... with lion 10.7 i use " -usecache flag and that works. right Now im booting with flags " UseKernelCache=No -f ' .. to skip the problems ..but luckily im still booting.( Link to comment Share on other sites More sharing options...
Foxic Posted February 22, 2012 Share Posted February 22, 2012 To use caches you need to move all kexts to S/L/E and delete the Extensions.mkext from Extra. Use the following to rebuild your cache: sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext -z /System/Library/Extensions/ Link to comment Share on other sites More sharing options...
Guest sincro77 Posted February 22, 2012 Share Posted February 22, 2012 thanks james /.. will try that now.. and post back.. cheers .so for my 3 extra kexts // (nullcpu, fakesmc and ioahci.). -- i reinstall into SLE using kexthelper , rebuild kextcache and kernel cache and it should work? im using chameleon 1823 .it installed those kexts into there... update: installed them to S/L/E with kexthelper ... deleted mkext from extra ..., deleted extensions from e/e . rebuilt caches using commands as 'sudo su'... sudo kextcache -system-prelinked-kernel -all-loaded and sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext -z /System/Library/Extensions/ okay,reboot.., ' UseKernelCache=Yes ' flag .. and i see that it uses the caches.. and skips the list. but ..the boot still hangs after usb messages..sloooow.. says waiting for root device sometimes too. . think it might be due to my using a usb drive. ?? maybe if i toss this in as an internal drive and install my ata kexts this won't happen. Yes , I tried using USBBusFix=Yes... nice try... still doesnt fix the problem. The errors seem related to usb ehci. ownership errors ,timed out,etc, etc. then waiting for root device sometimes follows. after 3 minutes im not waiting. hard reset. I have to use -f now.. otherwise it hangs like a monkey. any ideas? Link to comment Share on other sites More sharing options...
Onixs Posted February 23, 2012 Share Posted February 23, 2012 If you want to use "UseKernelCache=Yes"on MountainLion, boot 64bit. Link to comment Share on other sites More sharing options...
Guest sincro77 Posted February 23, 2012 Share Posted February 23, 2012 ahh/. ,,,, well,, see this kernel for ML 10.8 wont boot in 64 for me. .. .just restarts machine if not using arch=i386 ... i can boot the full 64 kernel and extensions with lion10.7 - on this same machine. (so its software related .. not hardware) The reason I use the 32bit kernel: is because of my darn asus wifi ..(realtek8187 is a 32 bit only driver.) Also.. 64 bit wordlengths are larger and require more memory. I only have 4gigs of ram so 64bit isnt really necessary in this situation. If I had 16 gigs of ram and I used apps that could suck on that much ram then maybe..sure.. alot of people dont understand 64bit. they just think."its better' ///duh. so is there a different kernel i should use?.. from what ive read on other forums.> .. mountain lion might just be a 32bit kernel alternative to lion staying current and still using older hardware . correct me if thats wrong. id like to know...seem to be what one poster was saying. _____________________________________________________________________________________________________________________ my 2 cents Link to comment Share on other sites More sharing options...
Guest sincro77 Posted February 23, 2012 Share Posted February 23, 2012 okay i managed to boot using cache.. but it took $#%*@ 5 minutes. here is why.. usb was stuck in 1.0 uhci see screenshots. its a usbehci uim initialize error if i try to boot with caches,, i waited it out.. the second screenshot shows usb high speed is enabled ehci ..( thats without using cache. i dont care.. I just bought a 80gigsata drive at computer store for 10 bucks so im gonna clone ML onto sata ahci HD and im sure that will solve it.lol i dont usually run an OS off usb anyways,, i was testing ML... cheers. __________________________________________________________________________ Boot duration: some people time the boot using a stopwatch or whatever... me, I just count the spins of the mac boot spinning wheel. (non-verbose).... im getting 25 spins with ML , lion-19spins., snow-15spins., leopard.8 spins. It seems like each new Cat takes a bit longer to boot..? i like ML.... but i also like the 'instant on' i get booting leopard.! my 2 cents Link to comment Share on other sites More sharing options...
Guest sincro77 Posted February 23, 2012 Share Posted February 23, 2012 pinpointed the usb ehci issue . . . any "Low-Speed" device on the bus at handoff/initialisation buggered things. . . & wouldn't you guess it? . . . the Low-Speed device in question [a mouse] was made by none other than the Microsoft Corporation wierd that these usb issues only happen if i use the cache. and this board has flaky usb detetction issues in osx.. Asus P5wdh deluxe. sometimes certain ports dont work.etc. yes,, ive tried with and without a dsdt.aml. also with and without hpet option. Link to comment Share on other sites More sharing options...
Guest sincro77 Posted February 24, 2012 Share Posted February 24, 2012 delete applehpet.kext .. and all is well. usb 2.0 is fine and caches work now. Link to comment Share on other sites More sharing options...
cochon Posted February 24, 2012 Share Posted February 24, 2012 If you want to use "UseKernelCache=Yes"on Lion, boot 64bit. hey thanks a lot, it works on my Dell 530 now Link to comment Share on other sites More sharing options...
Guest sincro77 Posted February 24, 2012 Share Posted February 24, 2012 yep.. still doesnt boot the kernel in full 64bit .. userspace is 64 but not kernel... i really dont care.. but someone might though.//? let them figure it out,. see look: . the same machine in full LP64 bit with10.7 Lion..(see screenshot): cheers my Mountain Lioneers, ) Link to comment Share on other sites More sharing options...
Guest sincro77 Posted February 24, 2012 Share Posted February 24, 2012 here's the org.chameleon.boot.plist setting im using for ML: the device properties string was generated with efistudio/ ethernet. to enable use of the appstore (no device errors ) i also attached the 'boot' file im using .. cham 1820 seems the best one for my mL. i tried 1823 and 1827 too. i would get"cant find" when looking for cache.. not sure. but 1820 worked. adios.. plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Graphics Mode</key> <string>1280x1024x32</string> <key>ShowInfo</key> <string>Yes</string> <key>UseKernelCache</key> <string>Yes</string> <key>arch</key> <string>i386</string> <key>device-properties</key> <string>4b00000001000000010000003f0000000100000002010c00d041030a0000000001010600031c0101060000007fff0400160000006200750069006c0074002d0069006e0000000500000001</string> </dict> </plist> Archive.zip Link to comment Share on other sites More sharing options...
thanh hoang Posted February 25, 2012 Share Posted February 25, 2012 Ok, when i install software ex: Paragon it rebuild kernelcache, i checked it 10.2M size, and reboot, chameleon show can't find Kernelcache, i used -v UseKernelCache=No, i go to desktop, and i use kextwizard and install any kexts ex: reinstall FakeSMC.kext and check kernel cache size 32M and reboot ok i can used kernelcache=Yes. Link to comment Share on other sites More sharing options...
Guest sincro77 Posted February 28, 2012 Share Posted February 28, 2012 I think what haong is trying to say is that Osx doesnt rebuild his cache properly ,,, but when he rebuilds with a kextutility it works.. Chameleon 1820 is working for me. it should be mentioned : there is 1- extensions.mkext ( which is a cache) and 2- also kernelcache.. another cache. . if you have one in E/E then caches 3 total. im not using one in e/e .. so i see it load about 12 kexts from there, quickly,, then it loads my caches. ML boots maybe 6 seconds faster., its not a big deal. Link to comment Share on other sites More sharing options...
jazzyguy Posted February 28, 2012 Share Posted February 28, 2012 Wait- so what exactly fixed it? Link to comment Share on other sites More sharing options...
Guest sincro77 Posted February 29, 2012 Share Posted February 29, 2012 sudo kextcache -system-prelinked-kernel -all-loaded and sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext -z /System/Library/Extensions/ okay,reboot.., ' UseKernelCache=Yes Link to comment Share on other sites More sharing options...
jazzyguy Posted February 29, 2012 Share Posted February 29, 2012 Ah alright. Thanks, I'll be trying that later! Link to comment Share on other sites More sharing options...
jazzyguy Posted February 29, 2012 Share Posted February 29, 2012 Dang. It didn't work for me. Link to comment Share on other sites More sharing options...
robla Posted March 26, 2012 Share Posted March 26, 2012 Did you, before installing, copy mach_kernel and kernelcache in your 'Mac OSX Base System' ? Link to comment Share on other sites More sharing options...
Kynyo Posted March 30, 2012 Share Posted March 30, 2012 It's another problem that force system to avoid Kernel Cache: IOPCIFamily.kext! Personally I have an old IOPCIFamily upgraded to work with new AppleACPIPlatform and Mountain Lion. Updated it to fix missing symbols for dp2 wifi drivers and applethunderbolt kexts, that avoid Kernel Cache Usability! Download: http://cl.ly/3b0y2g2b2X2A351Z022U Source: Netkas.org Link to comment Share on other sites More sharing options...
mnfesq Posted August 28, 2012 Share Posted August 28, 2012 I use that same IOPCIFamily.kext to boot my USB installer of ML and have the same problem with kernel cache. Maybe Netkas will know what to do. Link to comment Share on other sites More sharing options...
Sergey Danilov Posted April 6, 2013 Share Posted April 6, 2013 I had the same problem - the system always ignored my kexts cache. The cause is that the system mounts Preboot.dmg and the files in there have the priority over your /Extra/org.Chameleon.Boot.plist file. The solution is: 1) Unpack all the Extensions from /Extra/Preboot.dmg to /Extra: su hdid /Extra/Preboot.dmg cp -R /Volumes/Preboot/Extra/Extensions /Extra 2) Unmount Preboot.dmg and delete it 3) Make sure your /Extra/org.Chameleon.Boot.plist does not have the Kernel Flag "-f" Link to comment Share on other sites More sharing options...
Recommended Posts