Jump to content

How to install kexts on Lion


  • Please log in to reply
3 replies to this topic

#1
davidm71

davidm71

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 172 posts
  • Gender:Male
Hi,

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.

#2
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,121 posts
  • Gender:Male
  • Location:Brazil
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

exit


#3
davidm71

davidm71

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 172 posts
  • Gender:Male
Thanks! This explains why sometimes deleting kexts in EE did not a thing!

I get it now..

Thanks.

#4
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i
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,
Bugs





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