InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   AMD Patcher 0.31 available to download (http://infinitemac.com/showthread.php?t=1622)

zephyroth 11-21-2008 06:51 PM

AMD Patcher 0.31 available to download
 
1 Attachment(s)
Interface

- The dropped items are listed in a table which shows their properties
(Status, Name, Size, Type)
- Options pane added.
- Menus added (Donation to InfiniteMac, Donation to ... me, and Beta Tester Feedback)

Behaviour

- More kind of files supported (component, loginPlugin, prefPane, spreporter, framework, unix executable), I will add kexts and bundles later.
- You can add files to patch even if the patching process is running (needs to be optimized)
- Detect loaded kexts and inject them in the package if necessary
- If GeForce.kext and NVDAResman are in the list of loaded kexts and are presents in the package they will be patched

Options

- You can choose to check for software update at launch
- You can change the folder for modified items

Please give feedback using the menu item of AMD Patcher instead of doing this here. It will be more easy.

PS; Packages like NVInstaller aren't supported yet.

:)

maya77 11-21-2008 08:00 PM

Looks great, but I get this error on startup:

http://i34.tinypic.com/o0e2o4.png

Then it wont accept any file I drag&drop to the program interface.

I'm using Leopard 10.5.5.

ritalin 11-21-2008 09:07 PM

http://img528.imageshack.us/img528/1442/errorsq2.th.pnghttp://img528.imageshack.us/images/thpix.gif
I've tried to download but all I see is this.

Also, I posted the following over at IM but you seem like the person in the know.
Quote:

I'm looking for a better (faster) way of removing CPUID checks from OSX binaries. I'm currently using a shellscript with otool and the Maxxuss patcher to do the job. There is a snip from the script I currently use below. It works okay but as you can see it involves creating a temporary configuration using otool and then writing it onto the hard drive for the Maxxuss patcher to use. Ideally I would like to create a simple command line tool to replace otool and the patcher in this instance. Unfortunately my programming skills aren't quite up to the job so I'm asking for help. Alternatively, sticking with the tools I do have, is there any way of speeding up the shellscript I am using. Perhaps there is some way of piping the config file straight into Maxxuss patcher without having to make the slow write to the hard drive?

I realize this would be better posted in The X Labs forum but unfortunately, for some reason, I am unable to start a new thread in there.

I am also aware of the imminent release of the Voodoo XNU with on-the-fly opcode patching for OSX which should make CPUID patching irrelevant. However I would still like to pursue this. Thanks in advance for any help offered. :)
http://img153.imageshack.us/img153/2...uidsxx5.th.pnghttp://img153.imageshack.us/images/thpix.gif
Your help and advice would be appreciated.

maya77 11-21-2008 10:04 PM

Stupid RapidShare limits.

Here it is:
Code:

http://www.speedyshare.com/133763827.html

Dies 11-22-2008 09:40 AM

Quote:

Originally Posted by maya77 (Post 18352)
Looks great, but I get this error on startup:

Then it wont accept any file I drag&drop to the program interface.

I'm using Leopard 10.5.5.

Yup.

And if you fix that error, it goes to another and then another... :p

BUT, this app is really looking good and once you do get past those errors it works just fine. Also these errors seem like just an oversight that *should* be quick and easy to fix.

Only thing I really would have liked to see is an option to not inject kexts into the package.

Oh yeah, for anyone who just can't wait here's a workaround for the errors
Code:

rm -f ~/Library/Preferences/com.zephyroth.AMD-Patcher.plist
sudo -s
cd /Users/
mkdir -p zephyroth/Desktop
touch zephyroth/Desktop/log-AMD-patcher
chmod -R 755 zephyroth
cd /tmp
rm -rf ASvD67
mkdir ASvD67
chmod -R 755 ASvD67

You can just delete the zephyroth folder once your done. ;)

zephyroth 11-22-2008 11:19 AM

I'm sorry for all these little issues ... I was too in a hurry to share my work.
They will be fix very quickly. I will put a new link this evening.

Sorry, sorry, sorry !!!

Dies, thanks for this workaround !

:)

pαuℓzurrr. 11-22-2008 01:49 PM

I selected the download folder as destination, but now my download folder icon has been changed by the program.
Is there anyway to change this back to normal?
I tried Candybar but it didn't solve the problem...

Thnx! :)

zephyroth 11-22-2008 05:03 PM

Here's the new link: http://www.speedyshare.com/607925347.html

I hope everything is fine now !

maya77 11-22-2008 09:02 PM

Zephy, it opens fine now but I get another error when drag&drop file:
http://i34.tinypic.com/28w2ntz.png

Dies 11-23-2008 12:44 AM

Quote:

Originally Posted by maya77 (Post 18373)
Zephy, it opens fine now but I get another error when drag&drop file:
http://i34.tinypic.com/28w2ntz.png

Did you already try deleting your old preferences file?
Code:

rm -f ~/Library/Preferences/com.zephyroth.AMD-Patcher.plist
I haven't tried the new version yet, but I think that problem is just that there are different fields in the new file but if you already have an old file it of course tries to use it instead of creating a new one.

If that is the case, I'm not sure if it's even worth coding to check if it's an old style preference file or new...

Probably easier to just add a Readme telling people to delete it if they've ever used old versions of the program.

bhast2 11-23-2008 12:51 AM

Great Job Zephyroth on this.
But I have no use for it now As I am running retail on AMD without patching and running 64 bit too

Great release none the less

nfoav8or 11-23-2008 01:46 AM

Well thats nice BHAST but since no one is making the new voodoo kernel available except to the testers, you seem to be one of the few who has it. I just want to say thanks for pointing that out again and again (yes over at your site as well). Maybe you can help shed a little light on this new kernel.

maya77 11-23-2008 09:50 AM

Deleted pref file.

Next error:
http://i38.tinypic.com/2rgj79v.png

Then program freezes with this message:
http://i35.tinypic.com/b82wwp.png

Then only Force Quit can close it.

It should cancel update check if internet is not responding for x seconds.

maya77 11-23-2008 09:56 AM

And it wont accept that I have no password when it goes to patch files. If I leave password field blank it says "password invalid". I have no password, please accept "".

maya77 11-23-2008 10:25 AM

Quote:

Originally Posted by p-J (Post 18368)
I selected the download folder as destination, but now my download folder icon has been changed by the program.
Is there anyway to change this back to normal?

Delete "Icon" file from "Downloads" folder.

Note: It's hidden file.

zephyroth 11-23-2008 04:40 PM

Bhast, having the latest voodoo kernel makes patching cpuids useless but my app is still useable for patching kexts or modifying the kexts inside a package.

The latest voodoo kernel support every AMD cpus ? Even Athlon XP ?
If yes then I can prolly remove the code for detecting and patching cpuids ... Tell me.

Personnaly I dont like the voodoo kernel. My system cannot sleep, sometimes it doesn't even reboot ...

I'm not an expert or a real programmer. If you think my app is useless then ... I don't care. My goal is to learn and share my knowledge/experience for those who are interested.

I will try to correct all errors related to the preferences and put, again, a new version of my app.

I hope everyone still appreciate my "work".

:)

Dies 11-23-2008 05:21 PM

Quote:

Originally Posted by zephyroth (Post 18401)
If yes then I can prolly remove the code for detecting and patching cpuids ... Tell me.

Nah, don't do that...

Maybe make it optional?

IMO, even if Voodoo supports all AMD processors, your app is still far from useless.

Voodoo should make retail AMD installs a breeze but the thing I'm not clear on is whether Voodoo does the "on-the-fly" patching once as needed, or whether it just does it constantly, sounds like it does it constantly? Maybe bhast could chime in on that...

Personally, I would rather not have the kernel doing any extra lifting that it doesn't have to. I'm sure the performance hit, if any, isn't noticeable but still...

maya77 11-23-2008 07:35 PM

I like Zephy releases.

Keep up the good work.

zephyroth 11-23-2008 09:44 PM

The new (again ....) version is coming:

ChangeLog:

- An option to check/not check for cpuids has been added
- Fixed an error in the code which made some recreated packages unuseable
- Fixed an error while saving the log
- Preferences list is now created if needed (same thing for each field)

I you want something else to be added just tell me.

pαuℓzurrr. 11-23-2008 10:42 PM

Quote:

Originally Posted by maya77 (Post 18398)
Delete "Icon" file from "Downloads" folder.

Note: It's hidden file.

Thank you very much! :D

Quote:

Originally Posted by nfoav8or (Post 18392)
Well thats nice BHAST but since no one is making the new voodoo kernel available except to the testers, you seem to be one of the few who has it. I just want to say thanks for pointing that out again and again (yes over at your site as well). Maybe you can help shed a little light on this new kernel.

"Release candidate should be out 24 Nov '08. Final release expected 1 Dec '08 if all goes well."
So we all know tomorrow?
http://code.google.com/p/xnu-dev/

bhast2 11-23-2008 11:59 PM

WOW
I wasn't trying to tell you to stop making your apps
or trying to be mean
I was just saying
And I said great release
yes the beta kernel supports the all cpus
AMD and Intel

nfoav8or 11-24-2008 07:31 AM

Thanks P-J. I've been following this site pretty close so its nice to see when I take a break from looking at it that something has changed. I agree with Dies on the cpuid issue... why have them there if the system can remove them and then run with minimal op-code patching.

And to Bhast. I was in a bad mood the other day when I saw that you had shown off the op-code patch here as well as over at Leo4All. I just want to run retail and not worry about it anymore... Oh well. it'll get here when it gets here.

Zeph. Don't ever think your work isn't appreciated. So many people are frustration free because of ASU and the Patcher apps. keep tinkering. :-)

bhast2 11-24-2008 07:35 AM

for one I am not showing off I am just trying to get the info out
that is why i posted about it on my site

Huperniketes 11-27-2008 02:42 PM

Please Clarify the Purpose of AMD Patcher for Me
 
Does it perform the patching done by ASU, so I can download one of the MOX updates separately and patch it with this before installing it?

zephyroth 11-27-2008 02:54 PM

yes it performs the patching done by ASU.

Huperniketes 11-27-2008 03:52 PM

Quote:

Originally Posted by zephyroth (Post 18559)
yes it performs the patching done by ASU.

Sweet! I tried to perform updates a couple times from a fresh install off the 10.5.2 rev.2 DVD, but the process seemed to hang both times (we're talking >10 hours here!).

Incidentally, could ASU be rewritten in Cocoa, please? It just takes too long like this.

On a related note, this is on an AMD 64 3000+ and my system's performance is horrible! CPU activity is at a constant 100%, system at 70%. Would anyone have an idea why and how to correct this?

A great many thanks to zephyroth and all who've made running MOX on my AMD possible. I can't adequately describe the elation I felt seeing the "Welcome to Macintosh" animation appear on my pc!

zephyroth 11-27-2008 07:17 PM

I plan to rewrite all my apps in Objective-C. But I don't know when it will be done.

Huperniketes 11-27-2008 07:51 PM

Quote:

Originally Posted by zephyroth (Post 18567)
I plan to rewrite all my apps in Objective-C. But I don't know when it will be done.

No need to rush. I rebooted my system to load SMBIOSResolver (which didn't work, incidentally), and the performance problem went away! Now its speed is comparable to the 1.9GHz iMac G5 which I've had for years. I'll see how it fares as the updates are installed.

I suppose it isn't necessary to incrementally upgrade the system as the same kexts will be injected into each upgrade package anyway. I guess I'll have to activate TM before the jump.

Thanks again for all your work, Z!

AMD 64 3000+
Gigabyte K8-NSC-939
1GB RAM

inhibitor 11-28-2008 12:45 AM

Hi to all, and thanks Zephyroth for great work.

Though I have 1 issue with MacOSXUpdate 10.5.5 pakage, it sort of stops on detecting cpuids (file 39 on small 322.1MB pkg, and file 310 on combo update, probably same file). The drop down log window says:
23:12:35 Encrypted file detected (Finder)
23:12:35 Encrypted file thinned to i386
23:12:35 Retrieving info about encrypted file ...

I'm using LawlessPPC 10.5.4 release, please help me to fix this issue, thanks in advance.

zephyroth 12-01-2008 06:55 PM

AMD Patcher 0.31

ChangeLog

- Drag'n drop of item is now done on the main table.
(you can delete a row by dragging it outside the table even if the patching
process is running except if the selected data row is the first)

- You can choose to not replace kexts of a package, to replace them
automatically or to replace/add kexts manually.

- While injecting if you cancel the action you will have to choose :
1 - if you want to continue
2 - if you want to modify the list of kexts to inject
3 - if you want to cancel the injection
4 - if you want to cancel the patching process for the current file.

- The patching process has been improved (thanks to Ritalin).

- A bug while cleaning temporary folder has been fixed.

- Every issues with the preferences should now be fixed.
If something goes wrong after the update, simply delete the existing plist
located in ~/Library/Preferences/com.zephyroth.AMD-Patcher.plist.

- The update process has been fixed. From now you should be able to update
AMD Patcher without any problem.

You will not be able to update AMD Patcher 0.3 with its update function because of a HUGE bug with 0.3 which delete everything in the folder where AMD Patcher.app is located instead of only the app.


---> Download AMD Patcher.

lateralusman 12-01-2008 10:45 PM

1 Attachment(s)
When trying to patch the iTunes 8.0.2.mpkg with AMD Patcher 0.31 I get this far (See attachment) then nothing.

Edit: didn't screen capture the right window!

zephyroth 12-01-2008 10:50 PM

All I see is the interface ...
Give at least the log ...

lateralusman 12-01-2008 10:55 PM

Quote:

Originally Posted by zephyroth (Post 18756)
All I see is the interface ...
Give at least the log ...

Yeah.....Fixed

nfoav8or 12-01-2008 10:57 PM

Quote:

Originally Posted by lateralusman (Post 18755)
When trying to patch the iTunes 8.0.2.mpkg with AMD Patcher 0.31 I get this far (See attachment) then nothing.

Edit: didn't screen capture the right window!

Why are you patching this installer? it works without patching on AMD.

lateralusman 12-01-2008 11:00 PM

Quote:

Originally Posted by nfoav8or (Post 18759)
Why are you patching this installer? it works without patching on AMD.

Oh alrighty then.

So when AMD Patcher does that in the future that means the .pkg doesn't need patching?

zephyroth 12-01-2008 11:11 PM

I've just tried to patch it and it works fine.

nfoav8or 12-01-2008 11:20 PM

Quote:

Originally Posted by lateralusman (Post 18761)
Oh alrighty then.

So when AMD Patcher does that in the future that means the .pkg doesn't need patching?

no. I was only telling you that this one in particular doesn't need patching... something else was causing this to occur with your system.

lateralusman 12-01-2008 11:31 PM

Alright.

Now when patching iPhoto_7.14.pkg

AMD Patcher 0.3 shows this:
################# AMD Patcher 0.3 #################


Monday, December 1, 2008 4:17:51 PM


16:18:09 Checking package iPhoto_714.pkg ...
16:18:09 The package is a folder containing an archive
16:18:09 Extracting Archive.pax.gz ... (iPhoto_714.pkg)
16:18:25 iPhoto_714.pkg extracted.
16:18:25 Detecting loaded kexts ...
16:18:25 Checking for unnecessary files ...
16:18:25 Patching NVidia kexts if needed ...
16:18:26 Detecting script ...
16:18:26 Creating list of files ... (iPhoto_714.pkg)
16:18:29 List created.
16:18:29 Detecting cpuids ...
16:18:46 No cpuid found !
16:18:46 Detection finished.

and when patching with AMD Patcher 0.31 is shows this:
################## AMD Patcher 0.31 ##################

Monday, December 1, 2008 4:13:43 PM

16:14:24 Checking package iPhoto_714.pkg ...
16:14:24 The package is a folder containing an archive
16:14:24 Extracting Archive.pax.gz ... (iPhoto_714.pkg)
16:14:40 iPhoto_714.pkg extracted.
16:14:40 Checking for unnecessary files ...
16:14:40 mach_kernel has been removed.
16:14:41 Patching NVidia kexts if needed ...
16:14:41 Detecting script ...
16:14:41 Creating list of files ... (iPhoto_714.pkg)
16:14:44 List created.
16:14:44 Detecting cpuids ...
16:14:54
16:14:54 Results:
16:14:54 No cpuids found !
16:14:54 No encrypted files found !
16:14:54
16:14:54 Detection finished.
16:14:54 Recreating Archive.pax.gz ... (iPhoto_714.pkg)
16:15:01 iPhoto_714.pkg recreated.

Patcher 0.31 also doubles the file size from 77.6 to 147.5

nfoav8or 12-01-2008 11:37 PM

looks like it could have used the Archived pkg to create two (one within itself)... zeph, any thoughts?

lateralusman 12-01-2008 11:47 PM

It did the same with the CompatibilityUpdateforQT755.
Original file size is 3.5mb, Patcher 0.3 made it 4.6mb, Patcher .031 made it 9mb.

################# AMD Patcher 0.3 #################


Monday, December 1, 2008 4:43:49 PM


16:44:11 Checking package CompatibilityUpdateforQT755.pkg ...
16:44:11 The package is a folder containing an archive
16:44:11 Extracting Archive.pax.gz ... (CompatibilityUpdateforQT755.pkg)
16:44:12 CompatibilityUpdateforQT755.pkg extracted.
16:44:12 Detecting loaded kexts ...
16:44:12 Checking for unnecessary files ...
16:44:13 Patching NVidia kexts if needed ...
16:44:13 Detecting script ...
16:44:13 Creating list of files ... (CompatibilityUpdateforQT755.pkg)
16:44:14 List created.
16:44:14 Detecting cpuids ...
16:44:18
Maxxuss Mach-O Binary Patcher v1.0

Patching file: /tmp/ASvD67/Archive/System/Library/QuickTime/QuickTimeH264.component/Contents/Resources/QuickTimeH264.scalar
8 of 8 patches applied


Statistics:
1 of 1 visited files were successfully patched.
8 of 8 found patches were successfully applied.
16:44:18 Detection finished.
16:44:18 Recreating Archive.pax.gz ... (CompatibilityUpdateforQT755.pkg)
16:44:19 CompatibilityUpdateforQT755.pkg recreated.

################## AMD Patcher 0.31 ##################

Monday, December 1, 2008 4:15:07 PM

16:16:29 Checking package CompatibilityUpdateforQT755.pkg ...
16:16:29 The package is a folder containing an archive
16:16:29 Extracting Archive.pax.gz ... (CompatibilityUpdateforQT755.pkg)
16:16:32 CompatibilityUpdateforQT755.pkg extracted.
16:16:32 Checking for unnecessary files ...
16:16:32 mach_kernel has been removed.
16:16:32 Patching NVidia kexts if needed ...
16:16:32 Detecting script ...
16:16:32 Creating list of files ... (CompatibilityUpdateforQT755.pkg)
16:16:33 List created.
16:16:33 Detecting cpuids ...
16:16:35 Patching CPUID protected binary:
16:16:35 /tmp/ASvD67/Archive/System/Library/QuickTime/QuickTimeH264.component/Contents/Resources/QuickTimeH264.scalar
16:16:36 8 cpuids patched.
16:16:36
16:16:36 Results:
16:16:36 1 file was patched.
16:16:36 No encrypted files found !
16:16:36
16:16:36 Detection finished.
16:16:36 Recreating Archive.pax.gz ... (CompatibilityUpdateforQT755.pkg)
16:16:37 CompatibilityUpdateforQT755.pkg recreated.

zephyroth 12-02-2008 12:22 AM

It's because of the compression used to recreate the archive.
I've never checked the size if the recreated files ... For CompatibilityUpdateforQT755.pkg after using another compression 8,5 ---> 4,1 MB.

EDIT: I've fixed the compression. Every patched files will be 280Ko bigger than the original due to the new icon.

inhibitor 12-02-2008 12:39 AM

Excellent work, just beutiful. Now updated to 10.5.5. Flawless.

lanceomni 12-02-2008 01:23 AM

Patcher 0.31 Auto Update Delete-O-Thon
 
I am not sure what happened but I had the 0.30 Patcher in my Apps folder and it just prompted for an update. So I figured Id give it a try. When I did this I noticed the icon for my apps folder in my dock start cycling through apps. So I check and I watched as all my apps disappeared including utilities. I Force Quit the patcher and got an Applescript error that was extremely long with each line saying

rm "one of my apps"
rm "another of my apps"
..

Im sorry to not have saved the log but I was a bit jolted. I am in the process of replacing the apps folder with the one from my backup drive. If that doesn't work ill just restore the entire drive from the image.

Nothing else was running and the computer had been on for about an hour. So my guess is that it had something to do with me having the patcher in the apps folder and then the update wanting to rm the patcher and replace it with the update?

Is this something that anyone else has experienced? Or should I be looking for a different reason?

I in no way want to discourage anyone from using this app or zeph's asu as they are both wonderful apps. I am personally just a bit scared of the auto updater.:eek::eek:

inhibitor 12-02-2008 01:29 AM

Quote:

Originally Posted by zephyroth (Post 18739)
AMD Patcher 0.31

You will not be able to update AMD Patcher 0.3 with its update function because of a HUGE bug with 0.3 which delete everything in the folder where AMD Patcher.app is located instead of only the app.

That should answer what happened to you.

lanceomni 12-02-2008 01:40 AM

Ha
 
Yeah that should teach me to check the forums before I take the plunge. Its no biggie as I subscribe to the school of BACKUP BACKUP BACKUP.

nfoav8or 12-02-2008 07:37 AM

thats a good school. Hope you get all A's ;)

Glad to hear that you won't be set back too much. This is a big BIG reason I am an advocate of being a part of this forum, whether it is to ask a question or to give help where it is needed, you are pretty much guaranteed to learn something new or have that [DOH!] moment.

Huperniketes 12-02-2008 08:12 PM

Thank you, Z, for all the fantastic work you've put into the Patcher, and your continual upgrading!

Does anyone know if there are problems patching Xcode?

zephyroth 12-03-2008 02:04 PM

AMD Patcher 0.32

Release date : Not now :)

ChangeLog

- Change the way icon of package is modified (before 570KB, now 280KB)

- Package Compression corrected. Now every package whose content has not been
changed (kexts added or removed ... etc) should be 280KB bigger than the original package.
(Because of the new icon)

- Fixed an issue while dropping file and folder whose name contains characters like ", ', &, (, ) ... etc

- You can now drop nested folders (It still need to be optimized. Don't hope to drop a whole Volume or mounted disk image on it ... unless you are very patient ! I've just tried with my Applications folder (of a size of 3.19 GB, 716 elements and multiple subfolders) and it tooks 52s to determine all candidate files and fill the table)

- ListOfNonSupportedFiles has been removed as well as the check to see if the file is non supported and the message that indicates that some files you dropped are not supported. From now only files which type is defined in AMD Patcher will be dropped on the table.

More to come ...

PS: Don't hesitate to give me ideas if I miss a feature that seems important to you.

lateralusman 12-04-2008 05:27 AM

Quote:

Originally Posted by zephyroth (Post 18862)
AMD Patcher 0.32

Release date : Not now :)

ChangeLog

- Change the way icon of package is modified (before 570KB, now 280KB)

- Package Compression corrected. Now every package whose content has not been
changed (kexts added or removed ... etc) should be 280KB bigger than the original package.
(Because of the new icon)

- Fixed an issue while dropping file and folder whose name contains characters like ", ', &, (, ) ... etc

- You can now drop nested folders (It still need to be optimized. Don't hope to drop a whole Volume or mounted disk image on it ... unless you are very patient ! I've just tried with my Applications folder (of a size of 3.19 GB, 716 elements and multiple subfolders) and it tooks 52s to determine all candidate files and fill the table)

- ListOfNonSupportedFiles has been removed as well as the check to see if the file is non supported and the message that indicates that some files you dropped are not supported. From now only files which type is defined in AMD Patcher will be dropped on the table.

More to come ...

PS: Don't hesitate to give me ideas if I miss a feature that seems important to you.

I'll be waiting....

ng.alvin 12-04-2008 03:16 PM

can someone upload the 0.31 somewhere else instead of easy-share and rapidshare?