Setup & Software Discussions
[SCRIPT] fr34k's macOS-eGPU.sh - one script, all solutions, fully automated
 

[SCRIPT] fr34k's macOS-eGPU.sh - one script, all solutions, fully automated  

 of  21
  RSS

ed_co
(@ed_co)
Reputable Member
Joined: 3 years ago
 
Posted by: mac_editor

@ed_co Try with beta flag.  https://github.com/learex/macOS-eGPU#advanced

Tried already:

macos-egpu --beta -U

╔╗ ╔═╗╔╦╗╔═╗ ╔╦╗╔═╗╔╦╗╔═╗
╠╩╗║╣ ║ ╠═╣ ║║║║ ║ ║║║╣
╚═╝╚═╝ ╩ ╩ ╩ ╩ ╩╚═╝═╩╝╚═╝

macOS-eGPU.sh (v1.6)

This script is only for macOS 10.13.X
Continuation might result in failure and/or system crash. (seriously!)
continuing due to beta flag...
4..3..2..1..0
Your system hasn't yet been approved. The system may be unbootable or unstable.
Continuation might result in failure and/or system crash. (seriously!)
continuing due to beta flag...
4..3..2..1..0
Accept license terms... [done]
Killing all other running programs... [OK]
Internet connection established... [NO]
Fetching system information...
macOS info [done]
system integrity protection [done]
thunderbolt version [done]
GPU information [done]
installed eGPU software [done]
installed patches

--- corrupt IO PCIE Tunnelled patch found ---
The script cannot continue with corrupt installations.
Execute 'macos-egpu -U -l' to remove the patch or
execute 'macos-egpu -n -i -l' to repair the patch.

Interrupt...
cleaning system [done]
The script has failed.
Nothing has been changed.

mid-2017 Macbook Pro RP560 + MSI GTX 1080Ti Gaming [email protected] (Mantiz Venus) + macOS10.13 & Win10


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@ed_co Not sure what corrupted means. If you updated macOS, no patch should exist.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
----
Troubleshooting eGPUs on macOS
Command Line Swiss Knife

Multiple Build Guides
----
Current: MacBook Pro RP560X + 480/R9 Fury/Vega 64 | GTX 780/1070
Previous: 2014 MacBook Pro 750M + 480/R9 Fury | GTX 780/980 Ti/1070


ReplyQuote
ed_co
(@ed_co)
Reputable Member
Joined: 3 years ago
 

Finally, I could uninstall from Mojave with fr34k's script and I did a simple guide:

Guide to uninstall nVidia eGPU software with fr34k's script in Mojave (at the end of the first post).

Could be useful for anyone who wants to uninstall everything once you updated to Mojave (as it doesn't support directly).

I put into my signature's guide to have it in a place easy to find instead of a simple post anywhere...

Please, feel free to correct and improve it. Thanks!!

mid-2017 Macbook Pro RP560 + MSI GTX 1080Ti Gaming [email protected] (Mantiz Venus) + macOS10.13 & Win10


ReplyQuote
KaliPhobos
(@kaliphobos)
New Member
Joined: 7 months ago
 

Hey there,

is it possible to tell yet how safe (or unsafe and incredibly stupid) it would be, attempting this under a more recent MacOS version such as 10.14.2?
(I'm aware it’s risky anyways but since it explicitly says „10.13.X<=10.13.6“ I thought it might be wise to ask first before frying my MacBook)

Would like to attempt on:
MacBook Pro 15“ 2016 (max available configuration) running macOS 10.14.2
+ sonnet breakaway box 650
+ 1070ti gaming oc 8gb

(asking instead of just waiting for a compatible update since the last github commit was in August...)

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
nu_ninja
(@nu_ninja)
Estimable Member
Joined: 1 year ago
 

@kaliphobos

It won't work since there's no web drivers for nvidia cards on 10.14+

Mid-2012 13" Macbook Pro (MacBookPro9,2) TB1 -> RX 460/560 (AKiTiO Node/Thunder2)
+ macOS 10.14+Win10
+ Linux Mint 19.1


ReplyQuote
KaliPhobos
(@kaliphobos)
New Member
Joined: 7 months ago
 

I now read about the whole mess with web drivers...
so it would seem the only way to get this running is reverting back to 10.13.6 somehow?

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
klutzak
(@klutzak)
New Member
Joined: 2 years ago
 

I'm relatively new to all this; so forgive me if I missed the answers to my question(s) in the previous 21 pages...

but I did run this script successfully with my Mac Pro 2013, connected via TB2 adapter to a razer TB3 box w/AMD RX580.

I believe - from reading this thread - that if I update to Mojave (10.14.2) then this script would have issues  because there are no web drivers for nVidia.

However, I don't need those drivers with my AMD card. So if I DO update to Mojave, and then run the script, will it work anyway? Or fail due to the nVidia driver thing?

I guess my main question is; Is there currently a way to get the script to work on Mojave with an AMD RX580 card?

Or do I wait until there is some kind of official update to the script on GitHub?

Mac Pro 2013 (HS 10.13.6), Macbook Pro 2017 touchbar (Mojave 10.14.2), Razer eGPU, AMD RX580


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@klutzak It should work for AMD with beta flag. You can use purge-wrangler or automate-eGPU EFI as well.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
----
Troubleshooting eGPUs on macOS
Command Line Swiss Knife

Multiple Build Guides
----
Current: MacBook Pro RP560X + 480/R9 Fury/Vega 64 | GTX 780/1070
Previous: 2014 MacBook Pro 750M + 480/R9 Fury | GTX 780/980 Ti/1070


ReplyQuote
nu_ninja
(@nu_ninja)
Estimable Member
Joined: 1 year ago
 

@kaliphobos

Yeah, since you have a 2016 MBP you should be able to reinstall macOS high seirra using the "Shift-Option-Command-R" macOS recovery option.

Mid-2012 13" Macbook Pro (MacBookPro9,2) TB1 -> RX 460/560 (AKiTiO Node/Thunder2)
+ macOS 10.14+Win10
+ Linux Mint 19.1


ReplyQuote
fr34k
(@fr34k)
Reputable Member Moderator
Joined: 2 years ago
 

@ed_co @mac_editor

This error is due to the patch itself. The patch consists of several changes and by updating macOS some files were changed from the original state and therefore the patch as a whole would not work. The script detects that and requests, that you either repair it or remove it before doing anything else. Otherwise there would be remains left untreated.

I'm writing a new one that handles several things differently. However, due to my severe lack of time, I cannot even say when it will be finished. I hope around Christmas I will find some time to do it. In there I will implement logging and a few more intelligent handlers. I guess I will also remove or improve some automatic handlers as they seem to be very version specific.

@ed_co I understand that an uninstall should not be version locked, however, a system update may change some plists in such a way, that the standard is not as before. I will try to circumvent some of those issues in version 2.0. I have learned a lot of how Apple and NVIDIA are handling things, and also how systems behave. I hope I can make a better one that isn't as clunky as the current one and with the future in mind. Nevertheless, I want to make one, with which one cannot break one's system unless the safety switches are turned off.

Conclusively, the thing I need is time and/or NVIDIA and Apple putting aside their differences and collaborating on a system that everyone loves and that works right out of the box, making me obsolete.

P.S: @ed_co I'm sorry I didn't answer sooner, I'm currently very low on any spare time.

(fr34k's macOS-eGPU.sh on eGPU.io)
----
2016 15'' MacBook Pro + GTX1080Ti@32Gbps-TB3 (Sonnet Breakaway 550) + macOS 10.13.6 (17G65 driver: 378.10.10.10.30.107 + CUDA: 396.148)


ed_co liked
ReplyQuote
ed_co
(@ed_co)
Reputable Member
Joined: 3 years ago
 

@fr34k, nothing to apologize. You have limited time and I appreciate your efforts.
First, this script is really good, not clunky, and at the end I could uninstall, so don't worry. Everything is OK.
Sad thing is, I hope I will not use it in a long time as I changed to AMD. Tomorrow I will receive my new card.
Thanks for your hard work!!!

mid-2017 Macbook Pro RP560 + MSI GTX 1080Ti Gaming [email protected] (Mantiz Venus) + macOS10.13 & Win10


ReplyQuote
beshagpoor
(@beshagpoor)
New Member
Joined: 7 months ago
 

I'm running 10.13.6 (17G4015) and I get the "Your system has not yet been approved" message...am I reading your post correctly in assuming that the script does not yet work on any 10.13.6 installations newer than build 17G65??

If that's the case, I don't have a problem backing things up and doing a fresh OS install if it means getting my Nvidia card to work.

Thank you again for all your hard work!!

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
fr34k
(@fr34k)
Reputable Member Moderator
Joined: 2 years ago
 

@beshagpoor

 - please refer to page 20 -

(fr34k's macOS-eGPU.sh on eGPU.io)
----
2016 15'' MacBook Pro + GTX1080Ti@32Gbps-TB3 (Sonnet Breakaway 550) + macOS 10.13.6 (17G65 driver: 378.10.10.10.30.107 + CUDA: 396.148)


ReplyQuote
beshagpoor
(@beshagpoor)
New Member
Joined: 7 months ago
 

@fr34k

Thank you for responding. Went to page 20 and found the solution. Script seems to have run perfectly and it downloaded the Nvidia drivers and they were installed, and while macOS is recognizing the AORUS Gaming Box...it's not recognizing the GTX 1070 card that's inside it.

This post was modified 7 months ago

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
tizerr
(@tizerr)
New Member
Joined: 7 months ago
 

Good Day @fr34k is there a version 2.0 with support for 10.14.2 (18C54) yet?

I really appreciate your work and hoping that there is a new script soon.

Regards...

Pending: Macbook Pro 2018 15-inch, 512GB with MacOS Mojave 10.14.2. EGPU: Razor Core X with MSI GTX 1070Ti Graphics Card.


ReplyQuote
Ingmar
(@ingmar)
New Member
Joined: 6 months ago
 

I haven't understood how to -uninstall from the old goalque  osx 10.12 automate-eGPU.sh script once I've installed High Sierra. I do not understand the instructions I have found so far or they don't seem to work the way I'm doing them.

I'm running a 2014 Mac mini with at 1080 aourus gaming box, now in High Sierra 10.13.6.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
tizerr
(@tizerr)
New Member
Joined: 7 months ago
 

There seems to be another update, 10.14.3... has anyone tried to see if they now have support for nvidia egpu's?

Pending: Macbook Pro 2018 15-inch, 512GB with MacOS Mojave 10.14.2. EGPU: Razor Core X with MSI GTX 1070Ti Graphics Card.


ReplyQuote
its_dy1an
(@its_dy1an)
New Member
Joined: 6 months ago
 

Hi all,
I just bought a MSI Rx560 for my AORUS Gaming Box 1080 Eclosure and my laptop is 2016 MBP13 with Macos 10.14.2 Mojave. I tried @goalque 's automate-eGPU.kext, but it still showed this error after fixing permissions by using "Kext Utility": 
/Library/Extensions/automate-eGPU.kext failed to load - (libkern/kext) authentication failure (file ownership/permissions); check the system/kernel logs for errors or try kextutil(8).

Seems both automate-eGPU.kext and this macOS-eGPU.sh don't support 10.14 Mojave. Is there any other solutions for my Rx560? Or just waiting for update. Thanks!

This post was modified 6 months ago

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@its_dy1an Software tab of the forum.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
----
Troubleshooting eGPUs on macOS
Command Line Swiss Knife

Multiple Build Guides
----
Current: MacBook Pro RP560X + 480/R9 Fury/Vega 64 | GTX 780/1070
Previous: 2014 MacBook Pro 750M + 480/R9 Fury | GTX 780/980 Ti/1070


ReplyQuote
(@francoscala)
Eminent Member
Joined: 1 year ago
 

The script (macOS-eGPU.sh @ GitHub) works with a MacBook pro Mid 2018 with MacOS 10.14.X and nVidia eGPU?

This post was modified 6 months ago

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
Getch
(@getch)
Active Member
Joined: 11 months ago
 

Hi.  I've got this running great on my Mac w/ GTX 1080TI but the driver is outdated from when I first installed it, and I need an updated driver to work with my software for my job.  Any chance someone could explain what I should do to update the driver for the graphics card?  I'm currently on 387.10.10.10.40.105 and need to be running 387.10.10.10.40.118

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
esatamacmodular
(@esatamacmodular)
Estimable Member
Joined: 3 years ago
 
Posted by: Getch

Hi.  I've got this running great on my Mac w/ GTX 1080TI but the driver is outdated from when I first installed it, and I need an updated driver to work with my software for my job.  Any chance someone could explain what I should do to update the driver for the graphics card?  I'm currently on 387.10.10.10.40.105 and need to be running 387.10.10.10.40.118

update your signature in your egpu.io profile. create a backup before trying too much ... since it's otherwise running great.

iMac 2013 10.14.1, Macbook Air 2013 10.11, MBP 2016 13" 10.13.6 , HP 4530s 10.11, node lite, DA-2 PSU w/mod, PE4L 2.1b expresscard34, GTX460,1050Ti,1060,1070/Ti RX470,560,580


ReplyQuote
roscho
(@roscho)
New Member
Joined: 6 months ago
 

Hi,
sorry to bother you, the script runs through fine and states haveing installed the tunnel Patch but when I run macos-egpu -C later on, it states that the tunnel patch has not been installed?  Furthermore I see frequent reboots as soon as the eGPU is presumably accessed (e.g. running valley benchmark).

Who can help? 

BEst regards,

Robert

Roberts-iMac:~ roscho$ macos-egpu --install -R --iopcieTunneledPatch --beta

 

 

 

╔╗ ╔═╗╔╦╗╔═╗  ╔╦╗╔═╗╔╦╗╔═╗

╠╩╗║╣  ║ ╠═╣  ║║║║ ║ ║║║╣ 

╚═╝╚═╝ ╩ ╩ ╩  ╩ ╩╚═╝═╩╝╚═╝                             

 

 

 

 

 

 

 

 

macOS-eGPU.sh (v1.6)

 

Your system hasn't yet been approved. The system may be unbootable or unstable.

Continuation might result in failure and/or system crash. (seriously!)

continuing due to beta flag...

4..3..2..1..0

Accept license terms...                                                                                                           [done]

Killing all other running programs...                                                                                               [OK]

Internet connection established...                                                                                                 [YES]

Fetching system information...

   macOS info                                                                                                                     [done]

   system integrity protection                                                                                                    [done]

   thunderbolt version                                                                                                            [done]

   GPU information                                                                                                                [done]

   installed eGPU software                                                                                                        [done]

   installed patches                                                                                                              [done]

   installed programs                                                                                                             [done]

Setting internal switches...

Checking for incompatibilies and up to date software...

   NVIDIA drivers                                                                                                                 [skip]

   NVIDIA eGPU enabler                                                                                                            [skip]

   AMD legacy drivers                                                                                                             [skip]

   T82 unblocker                                                                                                                  [skip]

   NVIDIA dGPU deactivator                                                                                                        [skip]

   macOS 10.13.4/.5 NVIDIA patch                                                                                                  [skip]

   macOS 10.13.4+ thunderbolt 1/2 unlock                                                                                          [skip]

   CUDA software                                                                                                                  [skip]

   thunderbolt daemon                                                                                                             [skip]

   IO PCIE Tunnelled patch                                                                                         [reinstall scheduled]

Checking if SIP is sufficently disabled...                                                                                          [OK]

 

 

Download external content...

 

 

Checking for elevated privileges...

   elevating privileges

   Password:

   checking for elevated privileges                                                                                                 [OK]

 

 

Uninstalling...

   IO PCIE Tunnelled patch                                                                                                        [done]

Installing...

   IO PCIE Tunnelled patch                                                                                                        [done]

Patching...

deactivating auto-updates...

 

 

Finish...

   cleaning system                                                                                                                [done]

Rebuilding caches

   kext cache                                                                                                                     [done]

   system cache                                                                                                                   [done]

A reboot will soon be performed...

5..4..3..2..1..0

reboot: / is busy updating, waiting for lock (this might take approx 15-30s)...

reboot: / is busy updating; waiting for lock

 

Roberts-iMac:~ roscho$ 

  [24.02.2019, 00:56:02 Wiederhergestellt]

Last login: Sun Feb 24 00:55:56 on console

Roberts-iMac:~ roscho$ macos-egpu -C

 

 

 

 

 

macOS-eGPU.sh (v1.6)

 

 

 

 

Fetching system information...

   macOS info                                                                                                                     [done]

   system integrity protection                                                                                                    [done]

   thunderbolt version                                                                                                            [done]

   GPU information                                                                                                                [done]

   installed eGPU software                                                                                                        [done]

   installed patches                                                                                                              [done]

   installed programs                                                                                                             [done]

   fetching GPU related system information                                                                                        [done]

 

 

 

macOS-eGPU.sh (v1.6)

 

Listing installation status of packages...

   NVIDIA driver                                                                                                   [387.10.10.10.40.105]

   NVIDIA eGPU enabler                                                                                                   [not installed]

   AMD legacy drivers                                                                                                    [not installed]

   T82 unblocker                                                                                                         [not installed]

   NVIDIA dGPU                                                                                                           [not available]

   NVIDIA macOS 10.13.4/.5 patch                                                                                         [not installed]

   IO PCIE Tunnelled patch                                                                                               [not installed]

   unlocked thunderbolt version                                                                                                      [3]

   thunderbolt daemon                                                                                                    [not installed]

   CUDA

      CUDA drivers                                                                                                             [396.148]

      CUDA developer drivers                                                                                             [not installed]

      CUDA toolkit                                                                                                       [not installed]

      CUDA samples                                                                                                       [not installed]

Listing system information...

   macOS version                                                                                                               [10.13.6]

   macOS build                                                                                                                 [17G5019]

   SIP status                                                                                                                        [0]

   thunderbolt interface version                                                                                                     [1]

   eGPU information

      connected eGPU                                                                                                             [false]

   NVIDIA dGPU                                                                                                                   [false]

   AGW version                                                                                                            [Unrecognized]

 

--- developer Information ---

8f81728827c9772f172ab79be7fb63c2c0df2f521464b577cd191a1c9220b050673fb60217d85c2da184226d407b5381c1cd3f3443e3eb9fd01749f722f8699e

--- end developer Information ---

 

Graphics/Displays:

 

    AMD Radeon HD 6970M:

 

      Chipset Model: AMD Radeon HD 6970M

      Type: GPU

      Bus: PCIe

      PCIe Lane Width: x16

      VRAM (Dynamic, Max): 2048 MB

      Vendor: AMD (0x1002)

      Device ID: 0x6720

      Revision ID: 0x0000

      ROM Revision: 113-C2960K-152

      VBIOS Version: 113-C2960900-101

      EFI Driver Version: 01.00.507

      Displays:

        iMac:

          Display Type: LCD

          Resolution: 2560 x 1440 (QHD/WQHD - Wide Quad High Definition)

          UI Looks like: 2560 x 1440

          Framebuffer Depth: 24-Bit Color (ARGB8888)

          Main Display: Yes

          Mirror: Off

          Online: Yes

          Rotation: Supported

          Automatically Adjust Brightness: No

          Connection Type: DisplayPort

 

Hardware:

 

    Hardware Overview:

 

      Model Name: iMac

      Model Identifier: iMac12,2

      Processor Name: Intel Core i7

      Processor Speed: 3,4 GHz

      Number of Processors: 1

      Total Number of Cores: 4

      L2 Cache (per Core): 256 KB

      L3 Cache: 8 MB

      Memory: 24 GB

      Boot ROM Version: 82.0.0.0.0

      SMC Version (system): 1.72f2

 

Thunderbolt:

 

    Thunderbolt Bus:

 

      Vendor Name: Apple Inc.

      Device Name: iMac

      UID: 0x0001000A1D390C20

      Route String: 0

      Firmware Version: 22,1

      Domain UUID: 3159E807-8D3E-7557-9E38-E450E4A56B5B

      Port:

          Status: No device connected

          Link Status: 0x7

          Speed: Up to 10 Gb/s x2

          Receptacle: 1

          Port Micro Firmware Version: 2.1.3

      Port:

          Status: No device connected

          Link Status: 0x7

          Speed: Up to 10 Gb/s x2

          Receptacle: 2

          Port Micro Firmware Version: 2.1.3

Roberts-iMac:~ roscho$ 

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
toandang
(@toandang)
Active Member
Joined: 10 months ago
 
I have Macbook pro 2016 with touch bar, EVGA GTX 1080Ti, Akitio Node Pro.
- I use macOS-eGPU latest to setup:
- Check the driver and see it recognize the eGPU: 387.10.10.10.30.106

- Install python 3.6 and some packages
- install cuDNN 7.0.5 and Command Line Tools 8.2 (I see it install latest driver with CUDA 9.1):
/Developer/NVIDIA/CUDA-9.1/CUDA_Toolkit_Release_Notes.txt
- clang version:
clang --version
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin17.5.0
Thread model: posix

 

InstalledDir: /Library/Developer/CommandLineTools/usr/bin
- download latest Pytorch source from git and compile:
#sudo xcode-select --switch /Library/Developer/CommandLineTools
#cd ~/pytorch 
#MACOSX_DEPLOYMENT_TARGET=10.13 CC=clang CXX=clang++ python3 setup.py install
#cd ..
#python3
import torch
print(torch.cuda.is_available())
=> false
 
It means that it cannot compile and work with coda eGPU.
Is there any people that have the same issue? Please help me. I am struggle with it for a long time.
 
Thanks,
This post was modified 4 months ago

Akitio Node Pro, Mac Pro 2016, EVGA GTX 1080 Ti + macOS-egpu + Cuda


ReplyQuote
 of  21