ProjectOSX

Welcome Guest!

Returning User? Login here.

Want membership privileges? Register here.

 
Start a new topic Add Reply
> Updating Theory, Aka "Prevent bad stuff when you update"
realityiswhere
post Feb 20 2009, 03:05 AM
Post #1
Updating Theory.. aka "Why You're Doing The Stuff That You're Doing"

Leopard only.


The current practice and theory behind Updating OSx86 Leopard is based on the following.

There exists in the world of OS X certain kernel extensions which serve no practical purpose for "PC's" as they are more commonly referred to, notably "AppleIntelCPUPowerManagement.kext", and to a lesser degree some other kexts such as "AppleRTC.kext".

These kexts can cause problems with OSx86 machines by most often causing a kernel panic, and so for legacy purposes, the way of getting around this was to run a small shell command:

CODE
sudo while sleep 1; do rm -rf /System/Library/Extensions/AppleIntelCPUPowerManagement.kext; done


which just constantly checks for the above mentioned kext, and if it finds it, deletes it before it has a chance to be loaded by the OS.

This was a quick and dirty hack, but it worked.

Then somewhat more advanced methods were developed, still in use today, such as the use of a Disabler.kext (IntelCPUPowerManagementDisabler.kext and the like) and most recently the Voodoo kernel have built in disabling capabilities of these damaging kexts, and that is the currently accepted method.

If however, you have already installed the update and you've hosed/b0rked/otherwise maligned your system voilà the original words from Hagar:

QUOTE (Hagar Sep 20 2008 @ 12:58 PM)
Here's an alternative method, in case anyone's interested in trying it. You do so at your own risk, etc, I may well have made some mistakes on the way. tongue.gif

1: boot the install DVD & remove AppleIntelCPUPowerManagement.kext as above to allow you to boot.

2: make sure you have chameleon installed, if not, get it from: http://tinyurl.com/5m66sf and install it to your os x drive

3: download "lifeboat 13" from http://www.mediafire.com/?mz2jwzwdzdy

4: in terminal type: sudo mv /boot /boot_old

5: unzip the contents of lifeboat 13 & drop the folder "Extra" and the file "boot" onto the root of your harddrive
'
6: reboot & run the downloaded update again.

What this does is place a decryptor & a disabler in /Extra/Extensions and a boot file that will load them on your harddrive. This in turn will help update-proof your system.
________________________
If you already have chameleon installed, it is possible to shorten the whole process by putting the contents of lifeboat13 on a usb stick or similar accessible device and copy the files onto the root of your harddrive from terminal whilst booted from the DVD, ideally moving /boot somewhere safe in case of need.
________________________


All the above is derivative of the work of others and is to be used at your own risk. If you don't understand it fully, or any step fails, try something else.
Chameleon is by Zef, boot-132 is by DFE, the kexts are by their various authors whom I fail to remember (if it's yours & there is an issue, please PM me)


and you can find here my package installer version of his little tidbits, http://spotlight.hopto.org/lifeboat13.zip, very useful for preventing bad updates from occuring, also useful is coupling this method with prelinking your kernel beforehand.

Enjoy and good luck smile.gif

[work in progress]
Debian Squeeze: HPM8120N - Q6600, 965 northbridge/ICH8-R south, 9500GT (1GB)
Snow Leopard 10.6.6: Alu Macbook: Core 2 Duo 2.0GHz, 2GB Ram, nVidia 9400M.
Android: Samsung Galaxy S Vibrant (GT-i9000m, Froyo) and Samsung Galaxy Tab (Froyo)
Having trouble posting? Have you taken the Quiz yet? --------------------------- If you see spam, report it!
cyrusrayne
post Feb 20 2009, 01:27 PM
Post #2
QUOTE (realityiswhere @ Feb 20 2009, 04:05 AM) *
This is a package originally provided by Hagar, which I have repackaged and placed into an executable .pkg, for the purpose of having extra protection before an update, based on the timeless original method

CODE
while sleep 1; do rm -rf /System/Library/Extensions/AppleIntelCPUPowerManagement.kext; done


Why did I read that as rm -rf / ? blink.gif
Join us at irc.moofspeak.net, channel #osx86 for your OSx86 Needs! We promise mac-mini won't bite (hard)!
Laptop: 15.6" widescreen, 2.1 GHz Athlon II Dual Core, 4 GB RAM, 320 GB HDD

Any PMs seeking Computer/iPod/iPhone/Software support WILL BE IGNORED
Spam - Recognize it. Report it. Stop it.
fassl
post Feb 20 2009, 01:34 PM
Post #3
Also mention to run that command as root wink.gif
I want to use this place to thank fleebailey33 who donated me his old machine when my laptop died:

Acer Aspire M5630:
Intel Q6600
1TB WDC Green
ATI RadeonHD 4850 (and nVidia GeForce 9500GT)
Hagar
post Feb 20 2009, 04:14 PM
Post #4
Just wondering why the netkas script is there at all, it's even more ancient than the venerable lifeboat & totally unrelated & unnecessry in this context.
This Time We're Doing it RIGHT


lord_muad_dib
post Feb 20 2009, 04:41 PM
Post #5
voodoo kernel disables the kextload of such dangerous kexts on it's own now
vanilla kernel users can use disabler.kext and add an entry for each kext in the plist
not to mention that the dsdt patching should avoid such problems on it's own
afaik
Hagar
post Feb 20 2009, 05:26 PM
Post #6
QUOTE (lord_muad_dib @ Feb 20 2009, 05:41 PM) *
voodoo kernel disables the kextload of such dangerous kexts on it's own now
vanilla kernel users can use disabler.kext and add an entry for each kext in the plist
not to mention that the dsdt patching should avoid such problems on it's own
afaik



I wasn't aware that voodoo kernel had integrated disblers, it seems a slightly odd choice, but I guess it saves a kext. How is dsdt patching these days? I recall when I tried it out it was rather hit-n-miss & certainly not noob-friendly.

I'm the first to agree lifeboat13 is outdated, and was a simplistic kludge in the first place, but I still believe the principle of keeping disablers & patched kexts outside /S/L/E is the way forwards.

And to round it off, I find I'm once again having a hard time keeping up with developments.. It seems I need a site like this one as much as anyone, lets get the information posted in a clear & understandable form so noobs like me can start getting into it. smile.gif
This Time We're Doing it RIGHT


fassl
post Feb 20 2009, 06:56 PM
Post #7
QUOTE (Hagar @ Feb 20 2009, 06:26 PM) *
How is dsdt patching these days? I recall when I tried it out it was rather hit-n-miss & certainly not noob-friendly.

You can do many things through dsdt, even inject things to IOReg and get rid of injectors, and if you patch the HPET device in the DSDT you can use that bad kext without a panic or "package 0 didnt received a hpet". But this injection thingy isnt really that noob proof wink.gif
I want to use this place to thank fleebailey33 who donated me his old machine when my laptop died:

Acer Aspire M5630:
Intel Q6600
1TB WDC Green
ATI RadeonHD 4850 (and nVidia GeForce 9500GT)

Add Reply Start a new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: