GOP Boot Screens part II(Clover)

Discussion in 'Mac Pro' started by DearthnVader, Nov 14, 2018.

  1. DearthnVader macrumors 6502a

    DearthnVader

    Joined:
    Dec 17, 2015
    Location:
    Red Springs, NC
    #1
    In my never ending quest to get GOP boot screens working on the 4,1/5,1, I've had an odd day.

    I won't go into all of it, however I have something new for 4,1/5,1 users to try. Clover in UEFI mode, installed to an HFS+ partition of a Master Boot Record disk.

    First thing you need to do is make an MBR disk and add one HFS+ partition, can be USB or a SATA disk.

    Next copy this folder to the root of the disk:

    https://drive.google.com/open?id=1O-NadML8iKycC4UQsDZguXUS01fv-jiV

    Install a GOP card with a Mac EFI card and reboot, holding Option.

    You should see a disk that is EFI Boot, boot from that disk and see if Clover doesn't load on you GOP video card.

    Let us know how it goes.
     
  2. startergo macrumors 6502

    startergo

    Joined:
    Sep 20, 2018
    #2
    Created a HFS+ drive in MBR mode
    Copied the EFI folder to the root of the drive
    Replaced the config file with mine. (PBR boot option)
    Blessed the Efi file and rebooted to black screen.
    After pressing enter booted to my 1st drive (it happens to be Win 10)
    Rebooted to Mojave and tried to find the debug file in the MISC folder. There were no files created.
    Do I need to plug in my GT-120 in the second slot to see something? What am I looking for?
     
  3. DearthnVader thread starter macrumors 6502a

    DearthnVader

    Joined:
    Dec 17, 2015
    Location:
    Red Springs, NC
    #3
    You don't want to bless the file, install both Mac EFI card and a GOP card, hold option at boot and look for the boot entry EFI Boot on your Mac EFI screen. Boot from it, with any luck you'll see Clover on the screen of your GOP card.
     
  4. h9826790 macrumors G4

    h9826790

    Joined:
    Apr 3, 2014
    Location:
    Hong Kong
    #4
    Just a reminder, if your signature is correct. You may not able to follow the instruction.

    TempoSSD card has very high chance to hang the Mac EFI boot manager (hold option boot).

    If you want to test this Clover boot, please make sure no bootable volume is installed on the TempoSSD card.
     
  5. startergo macrumors 6502

    startergo

    Joined:
    Sep 20, 2018
    #5
    Strange I have never had a hang problem with neither Clover nor Refind or Next Loader, but I will test it both ways to compare
     
  6. h9826790 macrumors G4

    h9826790

    Joined:
    Apr 3, 2014
    Location:
    Hong Kong
    #6
    Direct load to any boot loader is fine. The problem is you can't "hold option" to boot with TempoSSD card.

    Sonnet know about this loooong time ago. They told me that they will fix it about 5 years ago, but never release any update. Screenshot 2018-11-15 at 21.07.37.png
     
  7. LightBulbFun macrumors 68000

    LightBulbFun

    Joined:
    Nov 17, 2013
    Location:
    London UK
    #7
    I gave this a quick test

    with my Radeon HD 7950 Mac EFI connected to a DP Monitor and a UEFI GeForce GT 740 with a DVI screen plugged in

    sadly clover only displayed on the 7950 and the GT 740 screen remained blank, also checking graphics properties in clover only showed the 1 Radeon HD 7950 and no mention of the GT 740, I do wonder if it goes back to what I tested in that the GT 740s UEFI OptionROM is not loaded by the Mac Pros EFI at all
     
  8. startergo macrumors 6502

    startergo

    Joined:
    Sep 20, 2018
    #8
    I can confirm that I have never had such a problem as described by TempoSSD.
     
  9. DearthnVader thread starter macrumors 6502a

    DearthnVader

    Joined:
    Dec 17, 2015
    Location:
    Red Springs, NC
    #9
    Yes, it won't work if the GOP rom is not loaded by the Mac Firmware. @h9826790 found that the RX580 GOP firmware got linked and loaded in his 5,1( In the older thread ).

    Not sure if nVidia uses a rom check the way AMD does, if you edit the protected tables in the Vbios section, the GOP rom will load as INVALID, and thus can't be used in a UEFI PC/Mac.

    I'd be interested in the output of the drivers command with both your GFX cards installed, if you can get to the Clover Shell. I think it will work, the correct shell for my 3,1 is the Shell64.efi, and I think I renamed it in the linked download to Shell64U.efi, because that is the one Clover loads from the graphical menu.

    I just built the latest version of Clover( HEAD ) with the code that works for the 3,1 in rEFInd. I don't think it will work for the 5,1, but I'll upload it if anyone wants to give it a shot?
     
  10. startergo macrumors 6502

    startergo

    Joined:
    Sep 20, 2018
    #10
    I can't get RX580 to be loaded in my 5,1 how was this achieved?
     
  11. LightBulbFun macrumors 68000

    LightBulbFun

    Joined:
    Nov 17, 2013
    Location:
    London UK
    #11
    the GT 740 is completly stock

    you can see a drivers output with my Radeon HD 7950 here, this was from the 140 BootROM thread

    [​IMG]

    as for the GT 740, it does show up in the drivers list at all but it is detected as a PCI card when i list the PCI devices in an EFI shell which you can read about here https://forums.macrumors.com/thread...tscreen-support.2148023/page-10#post-26690345

    so clearly the UEFI OptionROM of my GT 740 is not being loaded by the MacPro5,1s EFI for some reason
     
  12. DearthnVader thread starter macrumors 6502a

    DearthnVader

    Joined:
    Dec 17, 2015
    Location:
    Red Springs, NC
    #12
    The GOP rom loads, but we've been unable to get it to drive a display.:(
    --- Post Merged, Nov 15, 2018 ---
    I'm a little confused, you say the GOP rom loads, but it doesn't show up in devices in the shell?

    Could be pulling a disappearing act because of the GOP rom, I've seen this with FCode roms before.

    Maybe that is what we are seeing with the RX580 and the 5,1?
     
  13. LightBulbFun macrumors 68000

    LightBulbFun

    Joined:
    Nov 17, 2013
    Location:
    London UK
    #13
    I should also try sticking my GT 120 in and switching the Radeon HD 7950 to PC UEFI mode and see what that does...
     
  14. DearthnVader thread starter macrumors 6502a

    DearthnVader

    Joined:
    Dec 17, 2015
    Location:
    Red Springs, NC
    #14
    Yes, try that, see if the GOP rom loads, and if the card pulls the disappearing act in devices from the shell.
     
  15. LightBulbFun macrumors 68000

    LightBulbFun

    Joined:
    Nov 17, 2013
    Location:
    London UK
    #15
    Cr*p typo sorry I meant to say "does not show up in the drivers list at all" either the UEFI OptionROM of the GT 740 refuses to load on the MacPro EFI or the MacPro EFI wont load it for some reason...

    (the drivers listing picture, is of my MP5,1 with its Radeon HD 7950 Mac flashed card installed)
     
  16. LightBulbFun macrumors 68000

    LightBulbFun

    Joined:
    Nov 17, 2013
    Location:
    London UK
    #16
    I did a bit more testing this time with an Apple GT 120 and my Radeon HD 7950 in PC-UEFI mode

    sadly clover did not display anything on the HD 7950, it only displayed on the GT 120

    but as a side note, I booted just a EFI shell via the Boot picker from a USB stick while i had the GT 120 and HD 7950 in (ie for this I did NOT boot clover in any way)

    and I did notice that the UEFI VBIOS of the HD 7950 does seem to get loaded, in that theres an extra <unknown> entry under "AGP driver" with the HD 7950 in PC UEFI mode

    Code:
                T   D
    D           Y C I
    R           P F A
    V  VERSION  E G G #D #C DRIVER NAME                         IMAGE NAME
    == ======== = = = == == =================================== ===================
    47 00000001 D - -  1  - ICH Serial ATA Controller Initializ BB65942B-521F-4EC3
    9B 00000010 D - -  1  - PCI AHCI Driver                     95AF7E4D-C45D-47FF
    9C 00000010 ? - -  -  - PCI NVMe Driver                     51116915-C34B-4D8E
    9E 00000010 D - -  1  - PCI ATA/ATAPI Bus Driver            69FD8E47-A161-4550
    A1 00000010 B - -  1 66 PCI Bus Driver                      93B80004-9FB3-11D4
    A3 00000010 ? - -  -  - ISA Bus Driver                      240612B5-A063-11D4
    A4 00000010 ? - -  -  - ISA Serial Driver                   93B80003-9FB3-11D4
    A6 0000000A D - -  2  - Simple Network Protocol Driver      A2F436EA-A127-4EF8
    A7 00000010 D - -  4  - Apple Net Load File Driver          A3F436EA-A127-4EF8
    A8 00000010 D - -  2  - Apple NetServices Protocol Driver   7A5CFD97-8F27-458A
    AA 03050300 B X X  2  2 Intel(R) PRO/1000 3.5.03 EFI-x6     A1F436EA-A127-4EF8
    AB 00000011 D - -  2  - USB EHCI Driver                     BDFE430E-8F2A-4DB0
    AD 00000010 D - -  6  - Usb Uhci Driver                     2FB92EFA-2EE0-4BAE
    AE 00000011 B - -  8 13 USB Bus Driver                      240612B7-A063-11D4
    AF 00000010 D - -  2  - Usb Bot Mass Storage Driver         B40612B9-A063-11D4
    B0 00000010 ? - -  -  - Usb Cbi0 Mass Storage Driver        A3527D16-E6CC-42F5
    B1 00000010 ? - -  -  - <UNKNOWN>                           B40612B2-A063-11D4
    B2 00000010 D - -  2  - Generic USB Mass Storage Driver     A5C6D68B-E78A-4426
    B3 00000010 D - -  2  - Usb Keyboard Driver                 2D2E62CF-9ECF-43B7
    B4 00000010 D - -  2  - Usb Mouse Driver                    2D2E62AA-9ECF-43B7
    B5 00000010 ? - -  -  - Apple HID Interface Driver          07B37006-9302-408E
    B7 00000010 ? - -  -  - APFS Jump Start Driver              CFFB32F4-C2A8-48BB
    B8 00000010 D - -  3  - HFS File System Driver              4CF484CD-135F-4FDC
    BE 00000010 D - -  1  - Platform Console Management Driver  51CCF399-4FDF-4E55
    BF 00000010 D - -  2  - Platform Console Management Driver  51CCF399-4FDF-4E55
    C0 00000010 B - -  2  2 Console Splitter Driver             408EDCEC-CF6D-477C
    C1 00000010 B - -  2  2 Console Splitter Driver             408EDCEC-CF6D-477C
    C2 00000010 B - -  1  1 Console Splitter Driver             408EDCEC-CF6D-477C
    C3 00000010 ? - -  -  - Console Splitter Driver             408EDCEC-CF6D-477C
    C7 00000010 D - -  2  - UGA Console Driver                  CCCB0C28-4B24-11D5
    C8 00000010 ? - -  -  - Serial Terminal Driver              9E863906-A40F-4875
    C9 00000010 D - - 19  - Generic Disk I/O Driver             CA261A26-7718-4B9B
    CA 00000010 D - -  5  - FAT File System Driver              5058F21C-BC34-11D4
    CB 00000010 B - -  6 12 Partition Driver                    43B93232-AFBE-11D4
    DE 02084201 ? X X  -  - ASiX USB ethernet driver            D81D1706-BE6F-4734
    DF 00000010 D - -  1  - FireWire Ohci Driver                0412A7A1-C050-42C2
    E1 00000010 ? - -  -  - FireWire Device Driver              6074610C-93C6-4A50
    E2 00000010 D - -  1  - <UNKNOWN>                           BCCAD460-4F7D-4E51
    F3 00000010 D - -  1  - AGP Driver                          8A107CC5-DCDA-4FB7
    FB 00012900 B - -  1  1 <UNKNOWN>                           
    FC 00000D3A B - -  1  5 NVIDIA GPU Driver                   
    FD 00000D3A ? - -  -  - NVIDIA GPU Driver                   
    15E 000E6C44 B - -  5  4 APFS                               
    
    
     
  17. Forbidden Era macrumors newbie

    Forbidden Era

    Joined:
    Nov 15, 2018
    #17
    from a brief google it seems my 560ti might be able to be GOP'd so I might have to try this!
     
  18. DearthnVader thread starter macrumors 6502a

    DearthnVader

    Joined:
    Dec 17, 2015
    Location:
    Red Springs, NC
    #18
    Ok, I think I've figured out why the 5,1 gets no GOP boot screen with our custom code, but the 3,1 does.

    The Apple Graphics Policy driver loads for GOP cards on the 3,1, but it doesn't on the 5,1, it only loads for UGA cards.

    The fix maybe as simple as replacing the AGP Driver in the 5,1 firmware with the AGP Driver from the 3,1, or another Mac that supports GOP.

    You won't get boot screens by just replacing that driver, you'll still need some custom code like our rEFInd/nEXt Loader/Clover with GOP enabled.

    I don't have a 4,1/5,1 so some brave person will have to try it, preferably someone with a MAT Card.

    Any takers?
     
  19. h9826790 macrumors G4

    h9826790

    Joined:
    Apr 3, 2014
    Location:
    Hong Kong
    #19
    tsialex

    Call for your help.

    Are you interested in helping us to mod the 5,1 BootROM and test if this can allow our 5,1 shows boot screen by UEFI GOP?

    For this mod, I think we really need someone can hardware flash the logic board as escape route.
     
  20. startergo macrumors 6502

    startergo

    Joined:
    Sep 20, 2018
    #20
    I am ready for testing with a MATT card installed just need some instructions.

    Meanwhile for anybody who has SIP enabled, no EFI card and all PCIe slots occupied there is a solution:
    Code:
    sudo nvram "recovery-boot-mode=unused" && sudo reboot recovery
    This boots straight into recovery so you can disable SIP
     
  21. DearthnVader thread starter macrumors 6502a

    DearthnVader

    Joined:
    Dec 17, 2015
    Location:
    Red Springs, NC
    #21
    I though SIP protected nvram, maybe only parts of it?

    It would be best to load the AGP Driver from a shell first, I know you have a MATT card, but if the driver isn't compatible with the 5,1's firmware it won't do us any good to inject it.

    Copy the BOOTX64.efi to your EFI boot partition, in the folder /EFI/BOOT/, if you don't have to BOOT folder, just create one.

    Copy the AppleAGP.efi to the root of your EFI partition.

    Bless the shell, i.e. BOOTX64.efi:

    Code:
    sudo bless --mount /Volumes/EFI --setboot --file /Volumes/EFI/EFI/BOOT/BOOTX64.efi --nextonly --verbose
    Reboot to the shell:

    Find you mapped file system:

    Code:
    fs0:
    ls
    If you don't see the AppleAGP.efi, try fs1: fs2: ect...

    Once you find the file:

    Code:
    load AppleAGP.efi
    drivers > drivers.txt
    Upload the drivers.txt file, it's will be on the same refi partition as the AppleAGP.efi.

    PS: Had to add .txt to the end of the two files to attach them here, so remove that before use.
     

    Attached Files:

  22. startergo macrumors 6502

    startergo

    Joined:
    Sep 20, 2018
    #22
    It looks like I need to plug in my GT-120 too, right?
     
  23. tsialex macrumors 68030

    tsialex

    Joined:
    Jun 13, 2016
    Location:
    Brazil
    #23
    I'm pretty busy with work for at least a week, since @startergo is already helping with the tests…

    I'll be watching here when I have free time.
     
  24. startergo macrumors 6502

    startergo

    Joined:
    Sep 20, 2018
    #24
    Code:
                T   D
    D           Y C I
    R           P F A
    V  VERSION  E G G #D #C DRIVER NAME                         IMAGE NAME
    == ======== = = = == == =================================== ===================
    47 00000001 D - -  1  - ICH Serial ATA Controller Initializ BB65942B-521F-4EC3
    A3 00000010 D - -  1  - PCI AHCI Driver                     95AF7E4D-C45D-47FF
    A4 00000010 D - -  1  - PCI NVMe Driver                     51116915-C34B-4D8E
    A6 00000010 D - -  1  - PCI ATA/ATAPI Bus Driver            69FD8E47-A161-4550
    A9 00000010 B - -  1 72 PCI Bus Driver                      93B80004-9FB3-11D4
    AB 00000010 ? - -  -  - ISA Bus Driver                      240612B5-A063-11D4
    AC 00000010 ? - -  -  - ISA Serial Driver                   93B80003-9FB3-11D4
    AE 0000000A D - -  2  - Simple Network Protocol Driver      A2F436EA-A127-4EF8
    AF 00000010 D - -  4  - Apple Net Load File Driver          A3F436EA-A127-4EF8
    B0 00000010 D - -  2  - Apple NetServices Protocol Driver   7A5CFD97-8F27-458A
    B2 03050300 B X X  2  2 Intel(R) PRO/1000 3.5.03 EFI-x6     A1F436EA-A127-4EF8
    B3 00000011 D - -  2  - USB EHCI Driver                     BDFE430E-8F2A-4DB0
    B5 00000010 D - -  6  - Usb Uhci Driver                     2FB92EFA-2EE0-4BAE
    B6 00000011 B - -  8 16 USB Bus Driver                      240612B7-A063-11D4
    B7 00000010 ? - -  -  - Usb Bot Mass Storage Driver         B40612B9-A063-11D4
    B8 00000010 ? - -  -  - Usb Cbi0 Mass Storage Driver        A3527D16-E6CC-42F5
    B9 00000010 ? - -  -  - <UNKNOWN>                           B40612B2-A063-11D4
    BA 00000010 ? - -  -  - Generic USB Mass Storage Driver     A5C6D68B-E78A-4426
    BB 00000010 D - -  2  - Usb Keyboard Driver                 2D2E62CF-9ECF-43B7
    BC 00000010 D - -  2  - Usb Mouse Driver                    2D2E62AA-9ECF-43B7
    BD 00000010 D - -  1  - Apple HID Interface Driver          07B37006-9302-408E
    BF 00000010 ? - -  -  - APFS Jump Start Driver              CFFB32F4-C2A8-48BB
    C0 00000010 D - -  5  - HFS File System Driver              4CF484CD-135F-4FDC
    C6 00000010 D - -  1  - Platform Console Management Driver  51CCF399-4FDF-4E55
    C7 00000010 D - -  2  - Platform Console Management Driver  51CCF399-4FDF-4E55
    C8 00000010 B - -  2  2 Console Splitter Driver             408EDCEC-CF6D-477C
    C9 00000010 B - -  2  2 Console Splitter Driver             408EDCEC-CF6D-477C
    CA 00000010 B - -  1  1 Console Splitter Driver             408EDCEC-CF6D-477C
    CB 00000010 ? - -  -  - Console Splitter Driver             408EDCEC-CF6D-477C
    CF 00000010 D - -  1  - UGA Console Driver                  CCCB0C28-4B24-11D5
    D0 00000010 ? - -  -  - Serial Terminal Driver              9E863906-A40F-4875
    D1 00000010 D - - 25  - Generic Disk I/O Driver             CA261A26-7718-4B9B
    D2 00000010 D - -  6  - FAT File System Driver              5058F21C-BC34-11D4
    D3 00000010 B - -  6 18 Partition Driver                    43B93232-AFBE-11D4
    E6 02084201 ? X X  -  - ASiX USB ethernet driver            D81D1706-BE6F-4734
    E7 00000010 D - -  1  - FireWire Ohci Driver                0412A7A1-C050-42C2
    E9 00000010 ? - -  -  - FireWire Device Driver              6074610C-93C6-4A50
    EA 00000010 D - -  1  - <UNKNOWN>                           BCCAD460-4F7D-4E51
    FB 00000010 D - -  1  - AGP Driver                          8A107CC5-DCDA-4FB7
    103 00000010 B - -  1  1 Asmedia 2106 Sata Controller Driver
    104 00000010 B - -  1  1 Asmedia 2106 Sata Controller Driver
    105 00013D00 ? - X  -  - AMD GOP X64 INVALID Driver Rev.1.61
    106 00000D3A B - -  1  5 NVIDIA GPU Driver                
    107 00000D3A ? - -  -  - NVIDIA GPU Driver                
    170 00000010 ? - -  -  - AGP Driver                          \EFI/AppleAGP.efi
    188 000E6C30 B - -  5  4 APFS                                
    I tried redirecting stdout to a file, but it didn't work. What is the correct syntax?
     
  25. DearthnVader, Nov 17, 2018
    Last edited: Nov 17, 2018

    DearthnVader thread starter macrumors 6502a

    DearthnVader

    Joined:
    Dec 17, 2015
    Location:
    Red Springs, NC
    #25
    Looks good, the driver loaded, so I think it will be compatible with the 5,1 firmware.

    First, download this version of UEFITool:
    UEFIPatch_0.25.0_mac.zip 1.38 MB

    Save you firmware, and open it in UEFITool, you can dump your Firmware with @dosdude1 ROMTool.

    ROMTool.zip

    In UEFITool File>Search chose GUID and search for:

    Code:
    8A107CC5-DCDA-4FB7-A272-4243B41AFBFE
    Expand that GUID out until you see PE32 image section.

    Right click on it and choose replace body. Open the AppleAGP.efi, then File>save image file.

    [​IMG]

    That should be it, now just flash that firmware.

    Reboot to a shell as we did before, or if you have a GOP card, install that with your GT120 so we can see if the driver loads for both cards.

    If the AGP driver doesn't break anything, and you get to the shell on your GT120, upload a drivers.txt file for us.

    EDIT:Just noticed you have a Radeon GOP card, but you need to flash a valid ROM back to it, you must have edited the VBios protected tables. That won't work for GOP boot screens, as the driver never links to the device>INVALID.
     

Share This Page