automate-eGPU EFI - eGPU boot manager for macOS and Windows
 
Notifications
Clear all

[Solved] automate-eGPU EFI - eGPU boot manager for macOS and Windows  

 of  110
  RSS

goalque
(@goalque)
Noble Member Admin
Joined: 4 years ago
 

Page shortcut:  https://egpu.io/automate-eGPU-EFI   |  automate-egpu-efi

automate-eGPU EFI

16-Feb-2020>>

As of Catalina, Apple has tightened EFI security of dGPU equipped MBPs and therefore gpu-power-prefs variable cannot be accessed from the EFI side. Debugged with the 2015 15" MBP and it returned "Access denied". This is firmware change so it will not work even if you try previous macOS versions.

MuxSetting key has no effect anymore.

Please try startup.nsh EFI Shell approach instead described on my 2015 15" MacBook Pro Master Thread.


Finally, automate-eGPU EFI has evolved to a point where it is no longer dependent on a codeless kext. This simplifies things so greatly that I decided to leave the whole installation process off. No GUI installer, no scripts, and all background processes which belonged to the hybrid side are now gone. What is left, is pure EFI. You can copy-paste the EFI folder to a FAT32 formatted USB stick (use Disk Utility in macOS, Format: MS-DOS (FAT), Scheme: Master Boot Record, and named something else than "EFI") which works as all-in-one package for AMD/NVIDIA/macOS/Windows automation, including TB1 and TB2 Macs too. Just hold down the Option key on startup and select "EFI Boot". Nvidia web drivers need to be installed separately if you are using Maxwell or Pascal architecture cards (hopefully Turing drivers will be available soon). FileVault and T2 chip systems are supported. Due to lack of time testing older AMD cards, v1.0.5 may not provide eGPU screen output from older generation AMD cards on macOS. I do have a pure EFI workaround to remedy this but it needs more testing.

The whole idea of automate-eGPU EFI is to keep your system clean, no modified kexts. When the USB is unplugged, and you reboot, your Mac is in factory state.

System Cleanup

First off, uninstall all previous workarounds and ensure that your system is clean (if you are sure, skip this step):
https://egpu.io/wp-content/uploads/2018/10/validate-kexts.sh_.zip

chmod +x validate-kexts.sh
sudo ./validate-kexts.sh

EFI Package

Here's the automate-eGPU EFI v1.0.5 package:
https://egpu.io/wp-content/uploads/2019/10/automate-eGPU.efi_.zip

If you happen to have a T2 chip equipped Mac, check that you have checked "No Security" and "Allow booting from external media":
https://support.apple.com/en-us/HT208330

iGPU only Macs are easy. You don't have to do any additional steps. It just works.

 

AMD Macs using NVIDIA eGPUs

If you happen to have AMD dGPU and Nvidia eGPU combo, v1.0.5's behaviour remains the same as it was in v1.0.3 - the internal screen may go black. To avoid this, please do the following:

  1. Edit config.plist

    <key>MuxSetting</key>
    <integer>1</integer>
  2. Boot from the external USB drive (hold down the Option key and select "EFI Boot"), eGPU disconnected.
  3. Hot plug the eGPU after logged in.
  4. Then execute the following commands:
    sudo pmset -a gpuswitch 2
    sudo pmset -a gpuswitch 0
  5. Shift+Cmd+Q and press enter to log out.
  6. Log back in.

To reactivate the discrete GPU:

sudo pmset -a gpuswitch 2
sudo pmset -a gpuswitch 1

Usage

There are a couple of key short cuts in EFI menu screen (after q is pressed): s=quick shut down, r=restart. Reset deletes the nvram setting if you have set the USB stick bootable (launch on startup = ON). The stick remembers the last chosen operating system and marks that as a "*" character. This flag can be used for quick boot or timed out warm reboots in the future.

In order to have large memory area on Windows, users can apply their own compiled DSDT.aml into \EFI\CLOVER\ACPI\Windows\ folder. Those who have more knowledge of ASL language can also try to resize Thunderbolt bridge memory regions, allowing specific BARs the eGPU requests from the firmware.

apple_set_os.efi is loaded always from the drivers64UEFI folder. Remove it if you don't need it. @itsage, did you use it in the 2010 Mac Pro configuration? Please also remove if you are using the nMP or Mac mini.

No boot screens yet via an eGPU. I had a version that extracted the GOP driver from the eGPU on the fly, then loaded it from the USB stick on next boot and allowed custom boot screens. Unfortunately, the screen rendering was extremely slow with the latest Apple firmwares (approximately one row per second) but when I have time I could try drawing on the screen directly using GOP instead of STO (Simple Text Out protocol, which presumably runs on top of GOP).

## - Following comments by @mac_editor

Edit: Please ignore the Detected eGPU feature.

Temporary fix for macOS Catalina: https://egpu.io/forums/mac-setup/automate-egpu-efi-egpu-boot-manager-for-macos-and-windows/paged/24/#post-67493

Feb. 15, 2020: Restructured this post.


automate-eGPU EFI v1.0.5 Installer

Following content was authored by @mac_editor.

To simplify the installation process, I wrote a little installer that can set up an external drive with automate-eGPU EFI. Note that this installer should be treated as beta. Read all the steps before proceeding:

  1. Physically eject any external drives that you don't want to format. This is to ensure that you or the installer does not accidentally format a drive you care about. This installer does not support SD cards.
  2. Connect the thumb drive you wish to format.
  3. Copy the following into Terminal and press ENTER/RETURN:
    bash <(curl -s  https://egpu.io/wp-content/uploads/2018/11/automate-eGPU-EFI-install.txt) 
  4. Follow the instructions in the script. If you are on macOS 10.15.1 or newerDO NOT choose AMD as GPU vendor - just choose NVIDIA.
  5. If you are on macOS Catalina, apply the necessary fix.
  6. The disk is now ready to use.

automate-eGPU EFI and this installer are hosted only on this website. If you obtained the EFI installer or files from some other source, we cannot guarantee it's authenticity. You can see the full code for the installer (not the EFI application itself) on Pastebin.

automate-eGPU EFIapple_set_os.efi

Mid 2015 15-inch MacBook Pro eGPU Master Thread

 
2018 13" MacBook Pro [8th,4C,U] + Radeon VII @ 32Gbps-TB3 (ASUS XG Station Pro) + Win10 1809 [build link]  


Vsanz, dogloop, wangqianchong888 and 13 people liked
ReplyQuote
Eightarmedpet
(@eightarmedpet)
Noble Member Moderator
Joined: 4 years ago
 

Apologises if this is a daft question... but would this help with resource management/error 12 issues in anyway?

2017 13" MacBook Pro Touch Bar
GTX1060 + AKiTiO Thunder3 + Win10
GTX1070 + Sonnet Breakaway Box + Win10
GTX1070 + Razer Core V1 + Win10
Vega 56 + Razer Core V1 + macOS + Win10
Vega 56 + Mantiz Venus + macOS + W10

---

LG 5K Ultrafine flickering issue fix

 
2017 13" MacBook Pro [7th,2C,U] + RX 5700 XT @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.15.4 & Win10 2004 [build link]  


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 4 years ago
 

Yes, the included apple_set_os.efi and config.plist's MuxSetting=1 should resolve error code 12 in most cases. If still doesn't work, and you don't have the large memory area as default in the firmware, use your own compiled DSDT.aml.

automate-eGPU EFIapple_set_os.efi

Mid 2015 15-inch MacBook Pro eGPU Master Thread

 
2018 13" MacBook Pro [8th,4C,U] + Radeon VII @ 32Gbps-TB3 (ASUS XG Station Pro) + Win10 1809 [build link]  


ReplyQuote
Technomad
(@technomad)
Eminent Member
Joined: 3 years ago
 

That's great news, but what I'm seeing is a link to a folder of the execs, not a link to an installer pkg (as per previous versions). Am I missing something obvious?

Thanks…

Mid-2017 MBP 15”/3.1GHz, Razer Core v2, EVGA GTX1080Ti, LG 34UM95, HTC Vive, Samsung Odyssey, MS Hololens.


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 4 years ago
 
Posted by: Technomad

That's great news, but what I'm seeing is a link to a folder of the execs, not a link to an installer pkg (as per previous versions). Am I missing something obvious?

Thanks…

Yep. "No GUI installer, no scripts, and all background processes which belonged to the hybrid side are now gone. What is left, is pure EFI. You can copy-paste the EFI folder to a FAT32 formatted USB stick which works as all-in-one package for AMD/NVIDIA/macOS/Windows automation".

automate-eGPU EFIapple_set_os.efi

Mid 2015 15-inch MacBook Pro eGPU Master Thread

 
2018 13" MacBook Pro [8th,4C,U] + Radeon VII @ 32Gbps-TB3 (ASUS XG Station Pro) + Win10 1809 [build link]  


ReplyQuote
mattlukezahra
(@mattlukezahra)
Active Member
Joined: 2 years ago
 

I'm very sorry for having to ask this question but what does this script do exactly ?
I have a MacBook Pro 2018 ( I attached the specs ) I just tried to use this script with my AORUS GTX 1070 Gaming Box both windows and mac didn't find the egpu, Please let me know as i'd be more then happy to test out anything Smile

Thank you very much for your help 

Matthew

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
CreekGeek
(@creekgeek)
New Member
Joined: 3 years ago
 

Ohmygod! This just works! I *just* picked today to set up my egpu, and after trying unsuccessfully to install the last two versions of your boot install on a USB stick, I saw this post! 

This is BRILLIANT! You are a GENIUS, and I couldn't THANK YOU enough!!!!

Running an Nvidia GTX 1060 with and Akitio Node on an MBP Retina mid-2012. About to try bootcamp now.

BRILLIANT!!! THANK YOU!!!

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

slhdsnet and goalque liked
ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 4 years ago
 

@mattlukezahra

There are no scripts. It's an EFI app that is executed before the OS loads. The "EFI Boot" just works as a filter and uses Apple's native boot.efi to go into macOS and bootmgfw.efi to go into Windows Boot Camp.

No modifications are done to the firmware or operating systems when you boot through the EFI app.

automate-eGPU EFIapple_set_os.efi

Mid 2015 15-inch MacBook Pro eGPU Master Thread

 
2018 13" MacBook Pro [8th,4C,U] + Radeon VII @ 32Gbps-TB3 (ASUS XG Station Pro) + Win10 1809 [build link]  


ReplyQuote
mattlukezahra
(@mattlukezahra)
Active Member
Joined: 2 years ago
 

Thank you for your fast reply,

I just did a clean installation of high sierra 10.13.6, would you kindly explain for what it is used for exactly as I'm still not understanding I truly apologise and thank you for your patience  

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 4 years ago
 
Posted by: mattlukezahra

Thank you for your fast reply,

I just did a clean installation of high sierra 10.13.6, would you kindly explain for what it is used for exactly as I'm still not understanding I truly apologise and thank you for your patience  

Don't worry if the startup screen says "eGPU not detected", you can try to continue booting into macOS or Windows anyway. Some enclosures have more complex PCIe bridges and the app cannot recognize the card position correctly. Of course, you have to install Nvidia web drivers separately.

automate-eGPU EFIapple_set_os.efi

Mid 2015 15-inch MacBook Pro eGPU Master Thread

 
2018 13" MacBook Pro [8th,4C,U] + Radeon VII @ 32Gbps-TB3 (ASUS XG Station Pro) + Win10 1809 [build link]  


ReplyQuote
 of  110