Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


How to install kexts on Lion

4 posts in this topic

Recommended Posts



I'm a little confused about where do you put kexts these days since chameleon now loads it from the SLE folder as opposed to the EE folder.


Can someone please clarify the proper way to install system specific kexts please?


Thank you.

Share this post

Link to post
Share on other sites

That has nothing to do with Chameleon, it's due to changes in Lion vs. older versions of OS X.


You can still load kexts from /E/E, but then you must disable the kernel cache and it'll take a lot longer to boot. The only time you'll want to do this is when booting your Lion installer partition/flash drive and installing Lion for the first time.

Once the installation is done and you have verified that it is bootable, you can copy your kexts to /System/Library/Extensions, set permissions and ownership, force a cache rebuild and set UseKernelCache=y in /Extra/org.chameleon.Boot.plist to use the kernel cache.


If you still want to be able to boot into your Lion installer, leave a copy of your extensions in /E/E and type UseKernelCache=n at the Chameleon boot prompt when you want to boot it - for example to run Disk Utility or perform other maintenance tasks.


Try to use legacy/plist-only kexts as far as possible, or other means to achieve what you want (chameleon configuration settings, DSDT injection) so as to modify as few Apple kexts as possible. If you modify Apple kexts, odds are that you'll lose your modifications on the next system update.


Fire up Terminal and type each line followed by enter, exactly as below. Rebuilding the caches may take a little while, wait for the prompt.

The first two commands set permissions and ownership. The last three commands delete and then rebuild the caches so as to include your new/modified extensions. Along the way you'll probably see an error message about JMicronATA.kext, just ignore it.


sudo -s (enter your password)

chown -R root:wheel /System/Library/Extensions
chmod -R go=u-w /System/Library/Extensions

rm -rf /System/Library/Caches/com.apple.kext.caches/Startup
kextcache -system-prelinked-kernel
kextcache -system-caches


Share this post

Link to post
Share on other sites

I am experiencing a real odd boot caches oddity which results in the infamous "Still waiting for root device" if I don't either boot w. kernel caches off, OR downgrade SATA to legacy in BIOS. Can you please swing by here and share your ideas :) ?


Thank you,


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

  • Recently Browsing   0 members

    No registered users viewing this page.