Jump to content

Force a kext to load at startup?


  • Please log in to reply
6 replies to this topic

#1
greeze

greeze

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
I've discovered that if I remove the files:
/System/Library/Extensions.kextcache
/System/Library/Extensions.mkext

Tiger will load certain kexts at boot just fine (as well as recreate those two files). Unfortunately, when I reboot a second time, the kexts that loaded just fine before will no longer load.

(Specifically, I'm having troubles getting AppleIntelPIIXATA to load at boot. No prob if the kextcache and mkext files are NOT there, but it won't load if they are. ;) )

How can I force a certain kext to load at every startup?

#2
Jetta VR6 6Spd

Jetta VR6 6Spd

    InsanelyMac Protégé

  • Members
  • PipPip
  • 59 posts

I've discovered that if I remove the files:
/System/Library/Extensions.kextcache
/System/Library/Extensions.mkext

Tiger will load certain kexts at boot just fine (as well as recreate those two files). Unfortunately, when I reboot a second time, the kexts that loaded just fine before will no longer load.

(Specifically, I'm having troubles getting AppleIntelPIIXATA to load at boot. No prob if the kextcache and mkext files are NOT there, but it won't load if they are. :( )

How can I force a certain kext to load at every startup?

<{POST_SNAPBACK}>



You can edit the /etc/rc file to load a kext on boot.

If you open it in a text editor (eg. nano) scroll down until you find the kextload that loads the AppleTPM. It is a good ways down the file. You can disable loading the TPM while you're in there by simply commenting that line out with a "#". Then you can follow the format from that command as an example to load your own kext's.

Is this clear? If not I can post more.

#3
greeze

greeze

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts

You can edit the /etc/rc file to load a kext on boot.

If you open it in a text editor (eg. nano) scroll down until you find the kextload that loads the AppleTPM.  It is a good ways down the file.  You can disable loading the TPM while you're in there by simply commenting that line out with a "#".  Then you can follow the format from that command as an example to load your own kext's.

Is this clear?  If not I can post more.

<{POST_SNAPBACK}>

Thank you, that was very clear. Unfortunately, the text "kextload" doesn't appear anywhere in my /etc/rc file. Could you give me an example of its usage, and where I should put it? Thanks very much.

#4
Jetta VR6 6Spd

Jetta VR6 6Spd

    InsanelyMac Protégé

  • Members
  • PipPip
  • 59 posts
Let me pull mine up and I'll try to get a line Number for you.

NOTE: Managed to Crash my Install while I wrote that suggestion. Give me and hour or so to get it back up.

#5
perfect0

perfect0

    InsanelyMac Protégé

  • Members
  • PipPip
  • 56 posts
where would one locate the /etc/rc?

#6
Rammjet

Rammjet

    InsanelyMac V.I.P.

  • Gurus
  • 5,302 posts
  • Gender:Male
/etc is a directory on your OSX partition
rc is a file in that directory responsible for initiating processes during boot.

In Finder -> G0 menu -> Go to Folder... -> type: /etc
then look for rc

To edit the file directly, go to Terminal and type: sudo nano /etc/rc

#7
rraallvv

rraallvv

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts
  • Gender:Male
does it work in snow leopard?





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