InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   AMD sysenter trap patch (10.6.4) (http://infinitemac.com/showthread.php?t=6498)

andyvand 08-21-2010 12:50 PM

AMD sysenter trap patch (10.6.4)
 
This will fully enable 32bits apps under 64bit mode on most Qoopz/Qoopz+AnV kernels.
I have used maxxuss patcher to change the bytes (manual lookup + writing of patch).
It also includes pre-patched binaries.
Enjoy and let me know if it works well after patching (it should)

Download:
http://rapidshare.com/files/41423267...tcher.zip.html

Imkantus 08-21-2010 08:06 PM

I tried this on my installation for productive usage :-! (running 10.6.4 + 10.4.0 legacy kernel released by nawcom + patched CPUIDs)...

All in all it seems to be working fine, but I am having trouble with iTunes; Screenshot:

http://img3.imagebanana.com/img/4v62...um20.55.36.png

...any way to have this fixed without restoring the original files? :eek:

///Edit:

Apparently working properly in combination with your Rel4 Kernel, only...

However it's now working all fine; Finally Snowkitty is 64-Bit address-space capable on AMD without issues. :) :D

Thanks for sharing this Andy, I hope we will see this beeing integrated into the Kernel soon. ;)

gedna 08-22-2010 08:25 AM

applyied the patch, using nawcom kernel, skype itunes not work, using your kernel, everything works, but kinda in the strange way.. sometimes it looks to be a bit slower than just 32bit system.
some apps make longer time to boot, compared to just 32bit system. graphics is kinda glitchy sometimes, you can feel it jus playing with expose. even google earth is working much slower... anyways im so thankful for your work :)

kabuu 08-22-2010 03:51 PM

i using the patch and your kernel, works great , but the quicktime not working with files mp4, the starcraft II and pixelmator crashes
Thanks for your work

sorry for my bad english
i am brasilian

cynargo 08-22-2010 10:45 PM

Run QuickTime in 32-bit mode. When you run it's x64 version it assumes that your CPU has SSSE3 instruction set (which is not present on AMD cpus yet), and uses these instructions for decoding video.
Try the same with Starcraft, it may have some intro that is played with QT's codec, so it doesn't work in x64 mode.

kabuu 08-23-2010 05:48 PM

Thanks Very much cynargo
QuickTime Works great in 32-bits mode

davisin666 08-23-2010 10:50 PM

Front Row doesn't work
And quicktime works only in 32bit, in 64 bit mode, Quicktime X throws a EXC_BAD_INSTRUCTION (SIGILL)
Maybe is because AMD hasn't got SSSE3.
And iTunes it's stopping itself

Sorry for my bad english
Cheers!

eMatoS 08-24-2010 12:53 AM

I've been testing this patch and your latest kernel since yesterday and it seems to be working great, though I have to boot with arch=i386 and patcher_opts=2 or I get a kp or instant reboot. So far I could only test after effects cs5 and media encoder and both of them are running with no issue at all.

Thank you Andy for all your work, we (the AMD bunch) are very gratefull for all your efforts, at last a working x64 snow leopard!!


@davisin666: don't patch /system/library/coreservices/front row.app/contents/macos/front row and it will work as it should.

davisin666 08-24-2010 04:21 AM

Quote:

Originally Posted by eMatoS (Post 50254)
I've been testing this patch and your latest kernel since yesterday and it seems to be working great, though I have to boot with arch=i386 and patcher_opts=2 or I get a kp or instant reboot. So far I could only test after effects cs5 and media encoder and both of them are running with no issue at all.

Thank you Andy for all your work, we (the AMD bunch) are very gratefull for all your efforts, at last a working x64 snow leopard!!


@davisin666: don't patch /system/library/coreservices/front row.app/contents/macos/front row and it will work as it should.

I havent patched that, i have only patched CarbonCore.framework (for iTunes) and Spotlight.prefpane

But Front Row it's rarely used

gedna 08-24-2010 08:11 AM

no one experiencing a bit slower system? even geekbench shows lower score than before, and it feels like slower...and not that smooth graphics experience like before.

kugatsu 08-24-2010 09:48 AM

1 Attachment(s)
First, I want to say "Thank You" Andy. My AMD Phenom II 550 BE with 8GB of ram is finally able to run Snow Leopard the way it was meant to - Perfectly. :D

I can launch every default app that comes with SL with very little problems. For anyone interested in how I did it, here are the basic steps I followed:

I installed Snow Leopard using the "SnowLeoDVD". I then upgraded to 10.6.4 using the combo update and legacy_kernel-10.4.0 from "kexts.com".

I had to boot the system at that time using the following kernel flags:
busratio=20 maxmem=4096 arch=i386

I DID NOT use Marvin's AMD utility.

I applied a dsdt.aml to my Snow Leopard Volumes root directory.

I download and installed AnV's latest kernel - "AnV_Qoopz_xnu_10.4.0_Rel4" and the AMD_sysenter_10.6.4_patcher. From there, I installed the kernel as "Anv" and I applied the patcher files. From there I rebooted the system with the following flags: Anv (for the new kernel) busratio=20 patcher_opts=2 arch=i386 -force64 maxmem=8188 (for the full amount of my ram) and... THE SYSTEM BOOTED! :D

Strangely enough, my Processor was automatically recognized as an "Intel Core Duo". I had the full 8GB or ram that I've always wanted. And I could finally install Adobe After Effects CS5!!

Thanks again Andy for showing us AMD users some love.

davisin666 09-02-2010 02:20 AM

Lol
 
When i click on Downloads stack on dock, it panics

Code:

Process:        quicklookd [334]
Path:            /System/Library/Frameworks/QuickLook.framework/Resources/quicklookd.app/Contents/MacOS/quicklookd
Identifier:      com.apple.QuickLookDaemon
Version:        2.2 (327.4)
Build Info:      QuickLook-3270400~4
Code Type:      X86-64 (Native)
Parent Process:  launchd [106]

Date/Time:      2010-09-01 21:18:05.395 -0400
OS Version:      Mac OS X 10.6.4 (10F569)
Report Version:  6

Interval Since Last Report:          169836 sec
Crashes Since Last Report:          51
Per-App Interval Since Last Report:  67065 sec
Per-App Crashes Since Last Report:  31
Anonymous UUID:                      96ED110B-EEC0-4544-8302-92C6B24603EE

Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Crashed Thread:  Unknown

Backtrace not available

Unknown thread crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000001  rbx: 0x0000000000000000  rcx: 0x000000000000007f  rdx: 0x0000000000000000
  rdi: 0x00007fff70a5c780  rsi: 0x00000000ffffffef  rbp: 0x000000010138aaa0  rsp: 0x000000010138aa70
  r8: 0x00007fff70a5c780  r9: 0x000000001001384f  r10: 0x0000000000000052  r11: 0x00007fff70a6aca0
  r12: 0x000000010013a960  r13: 0x0000000000000000  r14: 0x0000000122e14000  r15: 0x00000001001386c0
  rip: 0x00007fff8588526b  rfl: 0x0000000000010246  cr2: 0x00007fff70a5c790

Binary images description not available


Model: MacPro4,1, BootROM MP21.005C.B01, 2 processors, Intel Core Duo, 3.22 GHz, 2 GB, SMC 1.30f3
Graphics: GeForce 9800 GT, GeForce 9800 GT, PCIe, 512 MB
Memory Module: global_name
Network Service: Ethernet Adaptor (en2), Ethernet, en2
Serial ATA Device: WDC WD3000JS-00PDB0, 279,46 GB
Parallel ATA Device: HL-DT-ST DVDRAM GSA-H10N
USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0605, 0x22300000
USB Device: DataTraveler 2.0, 0x0951  (Kingston Technology Company), 0x1607, 0x22340000
USB Device: PS/2+USB Mouse, 0x09da  (A-FOUR TECH CO., LTD.), 0x000a, 0x04200000
USB Device: Generic USB Hub, 0x058f  (Alcor Micro, Corp.), 0x9254, 0x04100000
USB Device: psc 1310 series, 0x03f0  (Hewlett Packard), 0x3f11, 0x02200000
USB Device: CIF Single Chip, 0x093a  (Pixart Imaging, Inc.), 0x2470, 0x02100000

SSSE3 Emulator should come!!! xD

mousex888 09-11-2010 09:17 AM

1 Attachment(s)
it works! AMD7750

but,itune crash,
Sep 12 14:08:03 mousex888Server [0x0-0x2d02d].com.apple.iTunes[2764]: dyld: shared cached file was build against a different libSystem.dylib, ignoring cache

I boot with -force64

andyvand 09-12-2010 09:39 AM

Quote:

Originally Posted by mousex888 (Post 50623)
it works! AMD7750

but,itune crash,
Sep 12 14:08:03 mousex888Server [0x0-0x2d02d].com.apple.iTunes[2764]: dyld: shared cached file was build against a different libSystem.dylib, ignoring cache

I boot with -force64

Do an
sudo update_dyld_shared_cache
in Terminal and follow information for my kernel to be installed and it should work...
My kernel offers a way to force the code signatures (which let iTunes crash) to valid...

lazybon3 09-25-2010 10:53 AM

Thank you! Great work!

This patch worked pretty well for me with your 10.4.0 Kernel.
I booted with Kernel Flags: arch=i386_x64 -force64 patcher_opts=2

I used the patcher on my files. The only thing strange:
In my /usr/lib/ Directory these files >>

libSystem.B_debug.dylib
libSystem.B_profile.dylib

were missing.

So i used your prepatched ones.


Here is a little Feedback:

32Bit Apps working, 64Bit Apps working, Quicktime working.
Additional Keyboard Stuff (Volume +/- / Mute) not working.
There isnt even any Feedback on these Buttons.
Frontrow not working.

All in all pretty amazing work, but i am switching back to legacy_kernel (10.4.0) for now since i would miss my Volume Buttons too much.

Imkantus 09-25-2010 01:31 PM

Quote:

Originally Posted by lazybon3 (Post 50911)
Additional Keyboard Stuff (Volume +/- / Mute) not working.
There isnt even any Feedback on these Buttons.
[...]

All in all pretty amazing work, but i am switching back to legacy_kernel (10.4.0) for now since i would miss my Volume Buttons too much.

Ensure to have undecrypted / unpatched SystemUIServer ! ;)

cjhmdm 10-27-2010 03:33 AM

Hi, could you guys please include instructions on how to actually use this tool? Not all of us just up and know how to do something out of the box, and google isn't much help when searching for info on how to use it...

thanks

the.dude137 11-21-2010 03:38 AM

Quote:

Originally Posted by cjhmdm (Post 51221)
Hi, could you guys please include instructions on how to actually use this tool? Not all of us just up and know how to do something out of the box, and google isn't much help when searching for info on how to use it...

thanks

+1please I'm new to this can't find any info on how to run this patch thanks

RayFlower 11-22-2010 11:10 PM

Quote:

Originally Posted by cjhmdm (Post 51221)
Hi, could you guys please include instructions on how to actually use this tool? Not all of us just up and know how to do something out of the box, and google isn't much help when searching for info on how to use it...

thanks

Uhm, well to get the basics fixed you need to at least patch /usr/lib/libSystem.B.dylib

I assume you have at least basic bash knowledge, well try these instructions anyway:
http://osx86.co/f36/10-6-5-is-avaibl...post51373.html

But it seems that a lot more than that one needs to be patched to get a fully working system, if someone with some scripting knowledge felt like it, it would be nice if they could create a script that searches for these instructions system wide to get rid of the errors, well or even nicer, on the fly patching via the kernel:)