Jump to content

How to rebuild my prelinked kernel after updating to El Capitan?


Best Answer fusion71au, 04 October 2015 - 06:13 AM

http://www.insanelym...-1443904660.jpg

I guess that I have to disable SIP and then rebuild the prelinked kernel, but I don't know how to do it. I can manipulate files from my working installation, but I don't know if single user works on the El Capitan installation.

@Romano2K,

I don't see any reference to FakeSMC in your verbose boot.  Did you remember to use injected kexts with your boot loader or install FakeSMC in /Library/Extensions?

If the PLK in El Capitan is corrupt, you can rebuild it easily from Yosemite....

Procedure
1. Boot into Yosemite with kext-dev-mode=1
2. Open terminal and type the following lines, followed by <Enter>. My El Capitan volume is named "El_Cap", so change if yours is named something else...

sudo -s
rm -f /Volumes/El_Cap/System/Library/PrelinkedKernels/prelinkedkernel
touch /Volumes/El_Cap/System/Library/Extensions
kextcache -u /Volumes/El_Cap
exit

3. Reboot into El Capitan :).

Go to the full post


  • Please log in to reply
3 replies to this topic

#1
Romano2K

Romano2K

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
  • Location:Paris, France
Hello!

I've nearly managed to update my existing Yosemite installation to El Capitan. I've cloned my working Yosemite installation to another SSD, and then simply used the official El Capitan installer. It ran fine.

But then after the installation, I'm stuck during boot. There's no kernel panic, everything as usual, but one more line:

"considerRebuildOfPrelinkedKernel prebuild rebuild has expired"
http://www.insanelym...-1443904660.jpg

I guess that I have to disable SIP and then rebuild the prelinked kernel, but I don't know how to do it. I can manipulate files from my working installation, but I don't know if single user works on the El Capitan installation.

#2
anonymousnbs

anonymousnbs

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 277 posts
  • Gender:Male
  • Location:Ho Chi Minh Viet Nam
  • Interests:MAC OS X

Hello!

I've nearly managed to update my existing Yosemite installation to El Capitan. I've cloned my working Yosemite installation to another SSD, and then simply used the official El Capitan installer. It ran fine.

But then after the installation, I'm stuck during boot. There's no kernel panic, everything as usual, but one more line:

"considerRebuildOfPrelinkedKernel prebuild rebuild has expired"
http://www.insanelym...-1443904660.jpg

I guess that I have to disable SIP and then rebuild the prelinked kernel, but I don't know how to do it. I can manipulate files from my working installation, but I don't know if single user works on the El Capitan installation.

 

 

check

kextcache -system-prelinked-kernel
 kextcache -system-cache


#3
fusion71au

fusion71au

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 850 posts
  • Gender:Male

Best Answer

http://www.insanelym...-1443904660.jpg

I guess that I have to disable SIP and then rebuild the prelinked kernel, but I don't know how to do it. I can manipulate files from my working installation, but I don't know if single user works on the El Capitan installation.

@Romano2K,

I don't see any reference to FakeSMC in your verbose boot.  Did you remember to use injected kexts with your boot loader or install FakeSMC in /Library/Extensions?

If the PLK in El Capitan is corrupt, you can rebuild it easily from Yosemite....

Procedure
1. Boot into Yosemite with kext-dev-mode=1
2. Open terminal and type the following lines, followed by <Enter>. My El Capitan volume is named "El_Cap", so change if yours is named something else...

sudo -s
rm -f /Volumes/El_Cap/System/Library/PrelinkedKernels/prelinkedkernel
touch /Volumes/El_Cap/System/Library/Extensions
kextcache -u /Volumes/El_Cap
exit

3. Reboot into El Capitan :).



#4
Romano2K

Romano2K

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
  • Location:Paris, France
Hello!
 

check

kextcache -system-prelinked-kernel
kextcache -system-cache


Thank you for your answer. It would have been better if you had told me where to type them: from a single user command line? From Yosemite?
____

@Romano2K,

I don't see any reference to FakeSMC in your verbose boot.  Did you remember to use injected kexts with your boot loader or install FakeSMC in /Library/Extensions?


You're damn right! I should have seen that there was no "DSMOS arrived" as always.

I made a "simple" mistake: I forgot to copy /EFI/CLOVER/kexts/10.10/* kexts to 10.11! So Clover wasn't injecting anything.
 

If the PLK in El Capitan is corrupt, you can rebuild it easily from Yosemite....

Procedure
1. Boot into Yosemite with kext-dev-mode=1
2. Open terminal and type the following lines, followed by <Enter>. My El Capitan volume is named "El_Cap", so change if yours is named something else...

sudo -s
rm -f /Volumes/El_Cap/System/Library/PrelinkedKernels/prelinkedkernel
touch /Volumes/El_Cap/System/Library/Extensions
kextcache -u /Volumes/El_Cap
exit
3. Reboot into El Capitan :).


I did this anyway, and after a reboot, the installation process went to the end and I got the login window. I'm answering from El Capitan, everything seems to work fine.

Thank you very much!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy