-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opencore hangs chain loaded trough RefindPlus with UGA cards #1542
Comments
Please provide the exact commit causing this as well as the configuration file. |
Not sure about the exact commit, but I opened an issue dakanji/RefindPlus#24 |
Please find it via https://dortania.github.io/builds/?product=OpenCorePkg&viewall=true |
Ok I will find the working snapshot when I get back home (1-2) days. |
Wonder why all those debug log items are sent to screen instead of to the log file. |
Also worth noting that this issue only appears to affect the MacPro5,1 (No UGA on ConsoleOut) and not the MacPro3,1 (UGA on ConsoleOut ... MacPro version involved in #1498). Other point of note is that the screen is already in graphics mode when RP calls OC. |
@dakanji basically all log sent before OC logging protocol is initialised has to go onscreen currently.
|
This is the EFI version spoofing to allow the NVIDIA GOP to initialize. This is currently implemented in RP, but not yet in OC, so if someone wants to use OC with NVIDIA, the EFI version has to be spoofed to version 2 early in the booting sequence. |
To clarify things. There are two overlapping issues as follows:
Issue 1 was the subject of the bug report @startergo raised in the RP repo. This was shut down as invalid because it turned out to be related to the fix from #1280 where he injected the drivers into his firmware (The Nvidia Hack). Issue 1 is not relevant to this issue except that he mentioned Issue 2 in passing in the report. @startergo had been moaning to me recently that OpenCore not booting when chain loaded from RP. I couldn't replicate his problem and others i asked to test could not either so I put it all down to his exotic setup (manifested in Issue 1) and ignored him 😉 However, someone else I ask to test stuff, who has a basic setup, mentioned the same issue so I finally started to take @startergo serious. After a few tests, the following same to light:
It might be related to RP only. Needs reconfirmation. |
Can we provide a quirk for NVIDIA inside OC to avoid potential collision between RP and OC at least for the test case? I remember the driver submitted, but no interest in upstreaming the patch. |
It looked like it will be a headache to incorporate but obviously not impossible. |
Yes, that would do. |
I just had a chance to do some testing. I tested the latest commits as of the time of writing this in a hope something might have changed, but the hang is still there. If I only have a GOP card connected to a display and the UGA card disconnected from the display( but still inside) the system boots. Attached are both config files. |
Please do #1542 (comment). |
I went back and tested 0.66 and 0.65. Still the same hang. I think it is safe to conclude that the problem is within RP as it used to work before. |
Right, I guess in this case I am closing this, but I will provide any help if necessary. Just respond as needed. |
IIRC, this was said to also be manifested while chain loading from rEFInd. |
@startergo ... Try this OC 0.6.8 build which has additional debug prints added and share the log. |
it is crashing on this The |
rEFInd chainloading: |
That one crashes after this line: https://github.com/acidanthera/OpenCorePkg/blob/e54b600945606d6f21909519aa43dd1b262e44fd/Library/OcDriverConnectionLib/OcDriverConnectionLib.c#L275 I think it is most likely a memory allocation issue in rEFInd that has carried over into RP. Initially seemed it might be the ReloadGOP thing but obviously not the case since this is not in rEFInd. Solution is not here in OpenCore and the breaking commit needs to be found in rEFInd. |
Something is still very inexplicable. rEFInd 0.13.1 does not boot at all (grey screen). All other before up to 0.11.4 need APFS.efi and HFS_x64.efi to display the boot partitions. Without them only tools are seen, but even then the hang is still there, whereas RP actually had a working snapshot as you can see in the other issue. |
So commit 90a1dbd8282b814486f8b292e3c03a9a577ee45b of OC allows rEFINd 0.13.0 to chainload OC. |
Can you raise an issue on the RP Repo to track finding this? |
There has been recent change which closed this issue:
#1498
After that, certain configurations with UGA/EFI cards on cMP5,1 prevent the OC from booting. This is the behavior:
If it is a GOP card there is no problem.
067 GT630 UGA MVC OC hung.zip
The text was updated successfully, but these errors were encountered: