[Solved] [SCRIPT] PurgeWrangler: AMD + NVIDIA eGPUs for all Thunderbolt Macs
Ok so I don't know if this is this patch or Apples fault, but I seem to not be able to boot into Big Sur (advanced purge-wrangler) with my eGPU plugged in.
In my initial reboot after patching I applied the commands firestarter posted.
If I unplug the eGPU and then hot-plug after boot, everything runs as expected.
Personally I don't really care, just wanted to note that here.
It has been a while since we had news from the frontlines, @mac_editor. Is there any good news concerning the Big Sur/Purge Wrangler future?
MBP11,4, i7-4980HQ, 256gb SSD, 16gbRAM Cathalina (Sonnet Breakaway box 350 + Gigabyte Radeon RX 580 Gaming 8GB)
MacBook7,1 A1342, P8600 120gb SSD 4gbRAM. Mojave (Hiking/Camping)
iMac7,1 A1224, T9500 CPU upgrade 120gb SSD 4gbRAM. HS
Mac mini3,1 P7350, 250gb SSD 8gbRAM. HS (server) iPhone10,3 64gb. iOS12 iPad5,3, 16gb. iOS12 iPod shuffle 2nd gen. 2gb
@jeroen-van-keulen and everyone awaiting updates, here's the current state of things on macOS 11 so far:
- TB1/2 eGPU Support: works as expected, but some issues occur when running the script first-time (see @psonice's comment: "recovery mode / diskutil / bless dance"). However, I just made a code change that might have fixed the issue. Needs more testing.
- Ti82 Support: The patch that worked for Catalina is not functional in Big Sur when I last checked. I still need to look into it, but ensuring TB1/2 support works properly (even on first-time use) comes first.
- macOS Updates: Mounting the disk as writable can cause issues with macOS software update. The betas still need to iron out a lot of issues with this, so I am hoping these are resolved before public release.
- New Recovery: The next version of the script will allow you to restore your system in case of failed boot via the Recovery partition using Time Machine system snapshots (even if you don't use it for backups) - no CLI needed. In recent macOS releases, the script's old recovery mechanism stopped working in Single User Mode because kernel caches could no longer be rebuilt there, so it was removed.
macOS 11 support will be available in script version v6.3.0 once most of the issues are ironed out. I will most likely release it alongside the gold master or public release of Big Sur. Advanced users (people will to take risk + well-versed with macOS mechanics) can try out Big Sur support already using the advanced handbook. Special thanks to everyone who took the plunge and have helped test Big Sur support so far - the feedback has been really valuable!
Consider making patches using Lilu? I am working on some iGPU patches in WhateverGreen to enable 5K SST on my 4K display connected to my Mac mini 2018. I haven't figured out how to make WhateverGreen + Lilu load before the graphics driver (probably Open Core kext injection would allow that), so I made changes to make the patches get applied in either case (whether WateverGreen + Lilu load before or after the graphics driver). Anyway, with this you don't need to worry about mounting Big Sur as writable. The patches are done in memory so that they are not permanent and can be controlled by boot-args or whatever. Usually a macOS update won't stop a patch from working if the code hasn't changed significantly.
Loading a new version of the WateverGreen + Lilu kexts seems to require that the version number is changed each time (incremented or decremented). I copy the extensions to /Library/Extensions. Then do kmutil load, the OS detects the changes and asks that I authorize it in the security preferences panel, then asks that I restart the computer after I do that.
@joevt, true, Lilu and other in-memory patching mechanisms are far more elegant. Patching would work across software updates seamlessly because the bits to flip have only ever changed once (10.15.1) - so the need to update kexts would be rare. Ti82 patch already has an in-memory patch on Github. Scripts are the lowest denominator for any semblance of automated patching - but given I already had a lot of groundwork in place, it was just easier to add vs. migrate. Most patches didn't change at all. Lilu was beyond me at the time I started this script - and now I don't have enough time to migrate. This script's days are numbered anyway - once macOS drops TB2 macs (ignoring unofficial ways to run macOS).
@psonice, lovely. Thanks for testing.
@mac_editor, I updated my 2013 Mac Pro to latest Dev build tonight. Same experience as @psonice reported. First boot after Purge-Wrangler no longer hangs the system. My eGPU was working immediately through hot-plug. Amazing work as always!