[EFI Loader] Error 12 Fix in Boot Camp for Apple T2 Security Chip Macs (apple_se...
 
Notifications
Clear all

[EFI Loader] Error 12 Fix in Boot Camp for Apple T2 Security Chip Macs (apple_set_os loader v0.5)  

 of  12
  RSS

aa15032261
(@aa15032261)
Eminent Member
Joined: 7 months ago
 

@itsage

I have tried every combination on my 16”, with and without apple_set_os, cold and hot plug. Only cold plug with apple_set_os and port swapping works. I don’t even know how it works. I used automate_egpu initially and thought it did some magical patches to make the egpu to work, then I realised it was just injected apple_set_os to the system and nothing else. Then I compared the dsdt between with and without apple_set_os boot, they were identical.

I am really confused why I have to enable iGPU to make eGPU to work. I also noticed when I use apple_set_os, windows takes longer to boot, about 30 seconds. Without apple_set_os, it takes just few seconds. 

When I cold plug the eGPU and use apple_set_os, Windows cannot recognise the eGPU, it is like nothing has plugged in. If I reconnect the eGPU to the ports on the left side, nothing will happen. I have to connect it to the right side, there will be a disconnect sound and error 12 appears. After that, swap it back to the left side, it will be recognised and start working.

My guess is, maybe Windows allocates enough resource at startup for my eGPU but somehow cannot complete the connection/handshake. So it will work after swapping since the resource is already allocated.

@bloodstainer

Sorry to hear that but we can create a new post to discuss this issue.

This post was modified 7 months ago

MacBook Pro 16" / i9-9880H / 16GB / 5500M 4GB
Razer Core X / AMD Radeon VII


itsage liked
ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 
Posted by: @aa15032261

I am really confused why I have to enable iGPU to make eGPU to work. I also noticed when I use apple_set_os, windows takes longer to boot, about 30 seconds. Without apple_set_os, it takes just few seconds. 

Technically, booting with set os is also likely to have more effects than just keeping the iGPU enabled for non-macOS boots. This is conjecture at best but setting the OS in firmware can affect OS PCIe device allocation - hence you see influence while cold plug, not hot plug, in which case the firmware does not play a role. Notably once booted cold plugged with eGPU initialized, you may find that unplugging and hot-plugging might still work. So it may seem that setting the OS also affects how PCIe devices are handed off to the booting OS. Where we can exactly see these differences is beyond my knowledge. 

purge-wranglertbt-flashpurge-nvdaset-eGPU
Insights Into macOS Video Editing Performance

Master Threads:
2014 15-inch MacBook Pro 750M
2018 15-inch MacBook Pro

 
2019 13" MacBook Pro [8th,4C,U] + RX Vega 64 @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.14.6 & Win10 [build link]  


aa15032261 and itsage liked
ReplyQuote
(@akash4393)
Eminent Member
Joined: 3 years ago
 

@aa15032261

This is the exact behavior I have observed. 

2019 16-inch MacBook Pro (i9/1TB/64GB/5500 - 8GB). Akitio Node (Corsair SF600) - Vega 64

 
2014 13" MacBook Pro [5th,2C,U] + RX Vega 64 @ 16Gbps-TB2>TB3 (AKiTiO Node) + macOS 10.14.5 & Win10 1903 [build link]  


ReplyQuote
TheMegaTB
(@themegatb)
Active Member
Joined: 12 months ago
 

@aa15032261 Thanks for the modified script! I can confirm it fixing Code 12 with the 16“, Core X, 5700XT and will be posting a build log once everything is fully tested after Christmas. 

Could you please publish your changes to the source code somewhere (maybe link a fork of the original repository or open a PR)? I’d like to make some further adjustments to the EFI script. 

This post was modified 7 months ago

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

.

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

@aa15032261 Thanks very much! I am in exactly the same situation as @TheMegaTB. This resolved Error 12 for me with a MBP16, Core X, and 5700 XT.

And +1 on publishing the changes when you have a chance.

Thanks again!

16" MacBook Pro | 2.3GHz Intel Core i9 | 5500M 8GB | 64GB RAM | 2TB SSD | Razer Core X | Sapphire RX 5700 XT Nitro+


ReplyQuote
aa15032261
(@aa15032261)
Eminent Member
Joined: 7 months ago
 

@themegatb

Thats a good idea, I will make it open source in few days.

MacBook Pro 16" / i9-9880H / 16GB / 5500M 4GB
Razer Core X / AMD Radeon VII


ReplyQuote
aa15032261
(@aa15032261)
Eminent Member
Joined: 7 months ago
 

@mac_editor

That's a good point but I think I need to learn a bit more to debug this 😂😂.

MacBook Pro 16" / i9-9880H / 16GB / 5500M 4GB
Razer Core X / AMD Radeon VII


ReplyQuote
Eightarmedpet
(@eightarmedpet)
Noble Member Moderator
Joined: 3 years ago
 

I remember apple_set_os had an effect on my TB3 bandwidth (limiting it) so another thing that might be worth keeping an eye on?

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
TheMegaTB
(@themegatb)
Active Member
Joined: 12 months ago
 

Thank you for publishing the sources! I made some further investigations in the behaviour of Windows when doing the port switching from left to right to left. First off I attempted to disable the x8 PCIe bridge (left hand ports) and/or subsequent switches which didn't yield anything usable. Then I noticed that when plugging the eGPU into the right-hand ports and back to the left the port into which you plug the eGPU doesn't matter as long as it is on the x8 bridge.

It seems like the eGPU won't work on the x8 bridge until you plug it somewhere into the x4 bridge (right-hand ports on the 16") and then back somewhere into the x8 bridge. Makes me wonder what kind of allocation magic is going on there and whether or not there is a way to do this either in software or by attaching some other device to the x4 bridge. I'm currently building a DIY dock for the 16" and having to switch the eGPU from one side to the other makes that somewhat impossible (esp. with the short TB3 cable) so some kind of software solution would be favourable. I'll further investigate with my limited eGPU/PCIe allocation knowledge and time in the following days ^^

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

.

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

@aa15032261

First off thanks for your efforts on this!

On my 2019 16" 64GB w/ 5500M 8GB, the latest version of bootx64.efi just gives me a blank screen when attempting to boot into Windows. Any thoughts on why/ what to do?

Also, I made a mistake and overwrote the previous version with the new one so now I can't boot into windows at all with the egpu - can you post the previous version?

Macbook Pro 2019 16" 64GB/5500M 8GB
PowerColor RX 5700 XT + Razer Core X Chroma


ReplyQuote
 of  12