Jump to content

Can't Boot Using KernelCache


  • Please log in to reply
11 replies to this topic

#1
meknb

meknb

    InsanelyMac Protégé

  • Members
  • PipPip
  • 60 posts
I'm trying to boot using KernelCache on Mountain Lion 10.8, If i try building the cache "sudo kextcache -system-prelinked-kernel"
I get Kernel file /mach_kernel does not contain requested arch: i386, i've reinstalled Mountain Lion a few times but still get this error every time.
If i do build the kernel cache, i used a script from ifire from another post, it builds the Extensions.mkext in the startup in caches, but my computer just reboots almost instantly using kernel cache i've got to boot using -f .
The only thing in my Extra folder is my dsdt, org.chameleon.Boot.plist and SMBios.plist.
In my system i've only patched a few file's and the only one's i've added are DellBluetoothHCI.kext , VoodooPS2Controller.kext,FakeSMC.kext and AppleACPIPS2Nub.kext.
Any help is much appreciated.

#2
p.H

p.H

    InsanelyMac Legend

  • FAQ Team
  • 767 posts
  • Gender:Male
  • Interests:Hackintosh & NBA & COD4 promod
try this command.
sudo touch /System/Library/Extensions/

#3
meknb

meknb

    InsanelyMac Protégé

  • Members
  • PipPip
  • 60 posts
Thank's p.h but that didn't work it still reboots
I think it gets up to ACPI then reboots it goes that fast i can't really tell.

MAC Framework successfully initialized
using 16384 buffer headers and 10240 cluster IO buffer headers
IOAPIC: Version 0x20 Vectors 64:87
ACPI: System State [S0 S3 S4 S5] (S3)
PFM64 (36 cpu) 0xf10000000, 0xf0000000

#4
westwaerts

westwaerts

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 880 posts
  • Gender:Male
afaik, ML only has a 64bit kernel ( x68) so i386 architecture isnt supported.
maybe one of your kexts is only 32bit.

look into system profiler, if you see any non 64 bit kexts ( extensions).

#5
meknb

meknb

    InsanelyMac Protégé

  • Members
  • PipPip
  • 60 posts
All my Extensions are 64bit some frameworks are 32bit could that be a problem ??

#6
p.H

p.H

    InsanelyMac Legend

  • FAQ Team
  • 767 posts
  • Gender:Male
  • Interests:Hackintosh & NBA & COD4 promod

Thank's p.h but that didn't work it still reboots
I think it gets up to ACPI then reboots it goes that fast i can't really tell.

MAC Framework successfully initialized
using 16384 buffer headers and 10240 cluster IO buffer headers
IOAPIC: Version 0x20 Vectors 64:87
ACPI: System State [S0 S3 S4 S5] (S3)
PFM64 (36 cpu) 0xf10000000, 0xf0000000

Maybe this thread may help you:
http://www.insanelym...some-disks-fix/

#7
meknb

meknb

    InsanelyMac Protégé

  • Members
  • PipPip
  • 60 posts
Thanks ph i've used this patch and patched ioahci.blockstorage.kext to enable trim but the disk doesn't hang it just reboots the computer?
Is there any way to slow the boot so i can see where it fails ?

#8
Biso007

Biso007

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 188 posts
  • Gender:Male
  • Location:Cairo, EG
I have an argue here. Sure booting with kernel cache is faster to load kexts into RAM instead of reading from HDD, but taking into consideration that:
- it's a one time step till the need to reboot.
- it takes 18 sec for me from power up till getting the GUI.
- it's a Hac not a real Mac, we add/delete/modify many kexts so each time you will need to fix permissions and rebuild caches.

Does it worth all this efforts and patched kexts and DSDTs to save let's say 5-7 sec in the boot time ?
For me I would prefer more vanilla setup :)

#9
westwaerts

westwaerts

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 880 posts
  • Gender:Male
the question is not the error message, tell us what you find in System/Lib/Caches/com.apple.kext.caches/Startup

and by the way i personally just put the system to sleep ( so booting is done once a week)

#10
meknb

meknb

    InsanelyMac Protégé

  • Members
  • PipPip
  • 60 posts
Biso007 yes i agree mine boots in 26sec but it's not to save a few sec's off boot time it's the learning.
Westwaerts if i use sudo kextcache -system-prelinked-kernel I get
IOKitPersonalities_i386.ioplist.gz
IOKitPersonalities_x86_64.ioplist.gz
kernelcache
KextPropertyValues_OSBundleHelper_i386.plist.gz
KextPropertyValues_OSBundleHelper_x86_64.plist.gz

If i use a script by ifire I get
KextPropertyValues_OSBundleHelper_x86_64.plist.gz
IOKitPersonalities_x86_64.ioplist.gz
kernelcache
Extensions.mkext

#!/bin/bash
chown -R root:wheel /System/Library/Extensions
chmod -R go=u-w /System/Library/Extensions
sudo chown root:admin /
sudo kextcache -system-prelinked-kernel
sudo kextcache -system-caches
sudo chown root:admin /
sudo update_dyld_shared_cache -debug -force -root /
sudo diskutil repairPermissions /
sudo update_dyld_shared_cache -root / -force
cd /System/Library/Caches
sudo rm -rf /System/Library/Caches/com.apple.kext.caches/Startup/IOKitPersonalities_i386.ioplist.gz
sudo rm -rf /System/Library/Caches/com.apple.kext.caches/Startup/KextPropertyValues_OSBundleHelper_i386.plist.gz
sudo kextcache -v 1 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext -z /System/Library/Extensions/
sleep3
Killall Terminal
sleep1



#11
westwaerts

westwaerts

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 880 posts
  • Gender:Male

if i use sudo kextcache -system-prelinked-kernel I get
IOKitPersonalities_i386.ioplist.gz
IOKitPersonalities_x86_64.ioplist.gz
kernelcache
KextPropertyValues_OSBundleHelper_i386.plist.gz
KextPropertyValues_OSBundleHelper_x86_64.plist.gz


same we all got, no extensions.mkext anymore, so have you tried to boot with that ?

#12
meknb

meknb

    InsanelyMac Protégé

  • Members
  • PipPip
  • 60 posts

same we all got, no extensions.mkext anymore, so have you tried to boot with that ?

It boot's fine if i use kernelCache=No, KernelCache=yes it just reboots.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy