netkas.org forum

General Category => OSX and Graphics Cards => Topic started by: Rominator on April 08, 2011, 11:01:32 PM



Title: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Rominator on April 08, 2011, 11:01:32 PM
So I was sitting around wondering why Lion DP2 wouldn't support the newer GTX5xx cards.

Decided to see for myself.

Guess what, it does !!!

Not perfect, but I am using in Mac Pro 4,1 and currently running via ATY_Init with additional Nvidia GPU "helper" card.

Some apps, crash, but OpenCl working, at least for certain benchies. I am now going to remove 19 screws and get at the EEPROM so I can write an EFI ROM for it to see if it runs better without an injector.

Basically, a GTX570 allows the power of a GTX480 but with power needs that fit in Mac Pro.

Looks promising.

BTW, some notes. "Property List Editor" as installed in my Developer folder no longer seems like a serious app. I could not get to the device id portion of NV100Hal next and had to pester Netkas with rather childish requests until I tried in Plist Edit Pro. I seem to recall that I used to use Apple's app for this and didn't need 3rd party. They either have dumbed it down (for the iPhone version?) or I am using it wrong.

In any case, once I added "1081" to the id's, the card sorta works.

Also, while previous Fermis had 14-16 phillips screws, new GTX570 uses a combination of phillips and torx screws, about 19 of them. Almost like taking apart a laptop now.

Cross fingers that EFI works.

When I added the id to 10.6.7 drivers, I got lockup/KP. So 256 drivers may not have GTX5xx abilities.


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: jeanlain on April 08, 2011, 11:22:26 PM
Looks promising.  :)

Does Luxmark work? It doesn't on my 9400M/9600M GT, not even on Snow Leopard. So issues withe openCL may not be specific to your test card.


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Rominator on April 08, 2011, 11:36:38 PM
OCl working for some apps

[attachment deleted by admin]


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: npwski on April 09, 2011, 06:42:51 AM
Very interesting. But it will be much more interesting if gtx580 will work too with hackintoshes. It's NVDAGF100Hal.kext v.7.0.62/270.02.00a15 ?
You tried play games with gtx570? It's fast? Tell us more please.


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Rominator on April 09, 2011, 11:04:56 PM
I didn't try many things yet.

I think it would work better in Mac if it was inited via EFI rather than ATY_Init, so I started writing EFI.

Removing heatsink to replace the EEPROM was a bitch. For first time I needed a Trox-8 or so for half of screws.

This required a trip to hardware store.

Once I got all 19 (yes, nineteen) screws out I replaxced the 128K chip with a 256K and put all 19 screws back in.

The PC BIOS is 89K already, longer than ever before.

I discovered that it already holds 2 Oproms, so my EFI was a 3rd.

Got me a black screen from GTX570, and a KP if I used another card to "see" from.

I tried removing the 2nd Oprom and moving the EFI up....BAD IDEA !!!

Now, no matter how I set it up, it is 100% invisible in PC. If I can't get it to appear in Mac running DOS, I am going to have to remove 19 screws and replace the EEPROM again.

I have not had to do this since I was writing the 7800GTX512 for PPC G5. I don't enjoy replacing EEPROM on an expensive new card, especially not if it is behind 19 screws.

Hopefully, Mac running DOS will allow reflash. But there is no reason to believe this will work.

Fingers crossed !


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: andystubbs on April 10, 2011, 09:58:56 AM
Next time solder a socket in place of the rom  ;D


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Rominator on April 10, 2011, 06:11:11 PM
Bioshock works, COD & SC2 show black screen with some items on them.

OpenGl works, Luxmark doesn't


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: jeanlain on April 10, 2011, 11:23:53 PM
Your exploit is posted on Macbidouille. I don't have anything to do with it this time.  :)


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: MachineShedFred on April 11, 2011, 03:37:31 PM
Slightly off-topic, but when the hell is Nvidia going to start writing EFI byte code ROMs?  Sandy Bridge is uEFI now, and that's the direction everything is going.  It would be nice if we could jettison the EFI compatibility support module in the next decade...


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Mitay[007] on April 15, 2011, 02:47:25 PM
Rominator
No idea about the second OpRom in gtx5x0 cards?
They look the same in the rom for gtx570 and gtx580. Could it be the bios for some extra chip as the video output bus?


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: netkas on April 15, 2011, 06:29:10 PM
The only obvious difference between gf100 and gf110 is power limiter, that rom could be for it.

the devid from that rom is 109110de (or 1092 ? i dont remember), that rom isnt efi or bios code also.


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Mitay[007] on April 15, 2011, 08:53:29 PM
pci id is 1098:10de , second oprom,  same in all GF110
Hasn't found any info with google )
How do you know that it's not EFI code?

PS: http://www.nvidia.com/object/quadro-macosx-256.01.00f03v7-driver.html have GTX580/GTX570 ID's in it... can anybody test it in SnowLeo?


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Rominator on April 15, 2011, 09:28:02 PM
pci id is 1098:10de , second oprom,  same in all GF110
Hasn't found any info with google )
How do you know that it's not EFI code?

PS: http://www.nvidia.com/object/quadro-macosx-256.01.00f03v7-driver.html have GTX580/GTX570 ID's in it... can anybody test it in SnowLeo?

Download and tried...same lockup on Blue screen, so no-go with 570.

If this ROM was EFI it seems like it would work like other EFI ROMS...ASIDE FROM WHICH, THE DEVICE ID is for something else...all other EFI ROMs share device id of PC BIOS.

This is some other piece and it looks like it will make writing an EFI rom more difficult.

I will take another whack at it later, but making the card disappear and require a new chip was rather bothersome.

I managed to do the same thing with another fix Netkas & I were fiddling with, made my GTS450 invisible in both Mac & PC. Just by flipping 2 bytes in ROM.

At least 450 only has 6 screws, so not like opening a laptop up.

Downloading newest Nvidia drivers in DP2 now..hoping for better function.


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Mitay[007] on April 15, 2011, 09:36:53 PM
Lockup on Blue screen on MacPro or Hackintosh? If real mac - what generation?

waiting for report about 256.01 drivers in Lion... I bet it works )



Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Rominator on April 15, 2011, 10:39:35 PM
The Lion DP2 update seems to have killed ATY_Init function somehow.

I ran update then rebooted with GT120 and GTX570.

Black screen on 570.

Remodded the NVDafg100.kext with "1081" id, still black screen.

Noticed "Code Signature" folder now in the Nvidia next, not there in SL.

So, currently no GTX570 in Lion DP2 4/15 update using latest ATY_init.

Going on bike trip so will rerun tests when I get back. Maybe I screwed something up but maybe ....?

BTW, tried 470 and it still works so kext isn't broken.


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: netkas on April 15, 2011, 11:02:06 PM
Try with dp2's nvidia kexts


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Rominator on April 16, 2011, 05:18:02 AM
reinstalled update and re-did the next fix, now it works.

Next I need to figure out how to get CUDA to work.

cmf at insanely got it to work but the Nvidia downl;pad page tries to get .14 and says "file not found" if you correct it to 13 it will download old one.

So hopefully they will fix shortly.

Currently Fermi has CUDA in SL and OpenCl in Lion. Hmmm

UPDATE: I tried again to write an EFI for the 570. I put the EFI ROM 2nd, and the mystery "1098" ROM last. Fixed with Fixrom....still got myself an invisible card. Busting out heat gun later to remove the EEPROM and start again.

May look up SOIC8 EEPROMs and see if I can apply a few volts across a couple pins and erase it that way.

As far as what Device 1098 is....have a look at the giant, gaping hole in middle of ROM. Where there should be a bunch of code there is instead a fleet of ZEROS. Looks to me like some function that was going to be part of main ROM got removed and given it's own, private Option ROM.

Whatever it is, I hate it. Next I guess I will try putting EFI 1st, with PC Bios after but everything in relative place. I'm not hopeful. Anyone know how to erase on EEPROM whilst still on a card?


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: netkas on April 16, 2011, 08:32:30 AM
eeprom ic is just 8 contacts iirc, solder wires on them and get eeprom chip out of card, sticked on the fan, with glue :D

as wires, you can use a part of some old ide cable.


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Mitay[007] on April 18, 2011, 04:24:38 PM
Got an idea!
can it be (second OpRom) a rom for internal audio codec? it was added in gtx400, and now rom is moved to it's own part.
what can we do with it?


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Mitay[007] on April 26, 2011, 01:45:09 PM
anyone?


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: netkas on April 26, 2011, 02:18:03 PM
it can't be, audio codes has very different devid


Title: More "DOuble" ROMs
Post by: Rominator on April 26, 2011, 07:30:01 PM
I finally realized why I have been unable to get 2 other EFI roms to work.

They are both Nvidia cards and both seem to have a smaller, 2nd ROM in them. Perhaps this was a precursor to this mess with the GTX570?

If you look at the end of both these ROMs, they have either 512 or 1024 bytes at end that starts with "NVROM" in ASCII.

The part number is there 2 times in a row.

In any case, no matter what I have done, they won't work with EFI unless I use a completely different ROM from a different card.

In fact, they won't even boot using ATY_Init. They keep the Mac from booting at all, not even an EFI splash from a card in slot one if either of these cards are anywhere in Mac.

The third byte of any ROM contains the size, the extra length is included in this, but if you look, the first part of ROM has a checksum at "real" end and then the little stub.

I tried removing the stub and correcting the length byte, no dice, won't even boot in PC. SO whatever the little thing is, it is needed.

And I think OSX has same issue it is having with GTX570, it can't deal with EFI being 3rd ROM.

I'm going to guess that any card having a ROM like these will need to use a different ROM altogether in a Mac Pro.

Hopefully they stop doing this. The 2 cards are a 9800 GT with 1 Gig of RAM and "Green" circuits that doesn't use external power, and a GTX260 with 1792 Megs of RAM.


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: netkas on April 26, 2011, 11:54:31 PM
Its something a lil bit different

./efirom -d ./98GT1G.rom
Image 1 -- Offset 0x0
  ROM header contents
    Signature              0xAA55
    PCIR offset            0x01F0
    Signature               PCIR
    Vendor ID               0x10DE
    Device ID               0x0614
    Length                  0x0018
    Revision                0x0000
    DeviceListOffset        0x00
    Class Code              0x030000
    Image size              0xF000
    Code revision:          0x0001
    MaxRuntimeImageLength   0x00
    ConfigUtilityCodeHeaderOffset 0x5948
    DMTFCLPEntryPointOffset 0x2442
    Indicator               0x80   (last image)
    Code type               0x00


./efirom -d ./2601792.rom
Image 1 -- Offset 0x0
  ROM header contents
    Signature              0xAA55
    PCIR offset            0x0290
    Signature               PCIR
    Vendor ID               0x10DE
    Device ID               0x05E2
    Length                  0x0018
    Revision                0x0000
    DeviceListOffset        0x00
    Class Code              0x030000
    Image size              0x10000
    Code revision:          0x0001
    MaxRuntimeImageLength   0x00
    ConfigUtilityCodeHeaderOffset 0x5948
    DMTFCLPEntryPointOffset 0x2442
    Indicator               0x80   (last image)
    Code type               0x00



both has just one rom.

this NVROM thing is located in offset where its supposed to be dummy bytes to get 512 byte padding, but still it's in first rom.

Also it doesn't look like x86 code, its some data or fuc code

fuc, from nouveau wiki:

Quote
So, what is fuc? FuC can be considered as a scripting co-engine. Instead of hardwiring (carving into --stone-- silicon) the engine logic (FIFO handling, IRQ/event handling, etc), you use the fuc co-engine to do this in software using a firmware.

Why would nVidia want to do that? Well, first, the card is more flexible, it is easier to fix a wrong firmware than a wrong hardware design. Secondly, it may be a way for nVidia to shrink the size of the die and thus, make more GPUs from a single wafer.


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Mitay[007] on April 27, 2011, 09:22:30 AM
very interesting!
What is this program/script "efirom"? can i have it? )


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: netkas on April 27, 2011, 11:33:40 PM
it's from uefi sdk, google is your friend for compiled version ( hint - site:macrumors.com)


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Mitay[007] on April 28, 2011, 09:07:01 PM
got it.
but in the gtx570 rom we have 2 legacy roms!

Galaxy.GTX570.1280.101111.rom
Image 1 -- Offset 0x0
  ROM header contents
    Signature              0xAA55
    PCIR offset            0x0188
Read PCI data structure
    Signature               PCIR
    Vendor ID               0x10DE
    Device ID               0x1081
    Length                  0x0018
    Revision                0x0000
    DeviceListOffset        0x00
    Class Code              0x030000
    Image size              0xE400
    Code revision:          0x0001
    MaxRuntimeImageLength   0x00
    ConfigUtilityCodeHeaderOffset 0x5948
    DMTFCLPEntryPointOffset 0x2442
    Indicator               0x00
    Code type               0x00

Image 2 -- Offset 0xE400
  ROM header contents
    Signature              0xAA55
    PCIR offset            0x003A
Read PCI data structure
    Signature               PCIR
    Vendor ID               0x10DE
    Device ID               0x1098
    Length                  0x001C
    Revision                0x0003
    DeviceListOffset        0x00
    Class Code              0x000000
    Image size              0x6000
    Code revision:          0x0000
    MaxRuntimeImageLength   0x00
    ConfigUtilityCodeHeaderOffset 0x00
    DMTFCLPEntryPointOffset 0x00
    Indicator               0x80   (last image)
    Code type               0xE0

It is definitely rom for second device!

And we can never run it on a Mac, because as I know EFI only supports one "Legacy rom"


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: MachineShedFred on April 29, 2011, 02:08:14 PM
And we can never run it on a Mac, because as I know EFI only supports one "Legacy rom"

It would be interesting to pop one of these into a Sandy Bridge PC, and turn off BIOS Compatibility Mode (e.g. go full EFI) and see if it gags too...


Title: Re: Lion DP2 has Fermi GT5xx drivers - GTX570 running in OSX !!!
Post by: Reactive on May 09, 2011, 08:41:13 AM
Hi, Rominator and everybody!
I have similar graphics card, MSI N570GTX OC 1280MB. So, I have a question.
I have extracted image of DP2 to 60GB partition of my disk in GUID partition table, added ATY_Init from netkas (here: http://netkas.org/?p=640) and added dev-id 1081 to plist of NVDA100Hal kext.
         <key>IOPCIPrimaryMatch</key>
         <string>
                                some another strings and.... this below:
            0x108110de&amp;0xffe0ffff
         </string>
So. I don't have any other nvidia card to place it in Slot-3. And I have [PCI Configuration Begin] problem. I use Chameleon RC5 760 Kabyl V3. I have tried GraphicsEnabler=y and =n keys, no luck for me. Same thing is on the notebook. Btw, this is offtop... But, anyway. My notebook has G210M graphics card, which is works perfect in Snow Leopard (since 10.6.3) with GraphicsEnabler=y. I don't know why...... My disk on PC is in ACHI and on notebook is in IDE (Compatible) - I do this to make nvidia graphics card working in the notebook (as it has 2 ones - Intel and Nvidia)

Thanks. I hope for your help!