Jump to content
  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
Sign in to follow this  
meknb

Can't Boot Using KernelCache

12 posts in this topic

Recommended 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.

Share this post


Link to post
Share on other sites
Advertisement

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

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
Share on other sites

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.insanelymac.com/forum/topic/280062-waiting-for-root-device-when-kernel-cache-used-only-with-some-disks-fix/

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Posts

    • Hi,   I still have (and always had) a weird problem with the nvidia card, and I don't know if it is a power unit issue or a driver issue. Do you have such a problem, too:   Sometimes the screen goes black, for example if I scroll a specific webpage. It turns then on again, and off again. Then it may disappear and everyathing works fine again. Or not. Usually a reboot will let this problem disappear. There is no obvious heavy cpu/power usage while this happens.   Do you know this problem? Does it sound like a driver problem?   I use a gt1050 2gb and a 4k monitor connected thru DP.
    • Hello! In my signature system the program does not show the life of the hard drives but only that of the ssd.   High Sierra 10.13.4
    • hello   try this one   DSDT.aml.zip   for graphics and backlight are needed ssdt files   good hack
    • Non ti ho messo io quelle impostazioni I sul config.. Poi aggiorna i kext.. 
    • So, i am thinking about pubblishing the stable release of tinu 2.0, just with a few minor chenges from the last pre-release, and to focus my work on the next one, i have just chenged a couple of UI things for the stable release and add a warning message if you try to use a time machine disk as a target drive to create the macOS install media, for the release that will come after the stable 2.0 release (and maybe also after a bug fix release for the 2.0 if needed) i am trying to use the system apis to manage the tasks which needs special priviladges to be executed, instead of the "sudo" based system which i am using now, this will make the application more secure and reliable, and also you will have to do the authentication only one time, when creating an install media, and using this system maybe i can also pubblish the application on the app store (obviusly just a limited version for mac users, but a version with all the features unlocked will be always available outside the app store and will have all the hackintosh-friendly features as well). But to do that i need to re-write a large amount of code into the app, because all the tasks which needs special permitions needs to be re-implemented differently, so that's why i do not want to use this in the 2.0 release, so because i am going to finish with tinu 2.0 tell me every complain or problem you are having with the latest pre-release or the latest release of tinu, so i can work on that before releaseing the stable 2.0 version


×