Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

MP 1,1-5,1 RefindPlus/OpenCore Chainload

Dewdman42

macrumors regular
Jul 25, 2008
143
14
You can't do MBR with FAT.

It is either/or.

either or what? Please explain, I am not that knowledgable. What does Windows require? What can I put into my Mac if its all on one drive vs if I am trying to shared a drive with other APFS volumes?

The Apple way is a hybrid partition when installed on the same drive (at least on older macs). When a hybrid parturition is created Windows cannot see the EFI partition. As far as it is concerned it is an MBR drive (even though it is not hence it is called hybrid).

how do I create a "hybrid"?
 
Comment

Dayo

macrumors 6502a
Original poster
Dec 21, 2018
628
253
Does anyone know what I need to change/set in order to get the ratio right for my setup?
Look at the "banner_scale" config setting in RefindPlus. It is currently set to "fillscreen" which stretches the background as needed as the provided banner is based on my monitor dimensions.

You can try to change banner_scale to "noscale" which will crop the banner if it too big or show it with a border if it too small. Alternatively, create a banner image that fits your monitor and use this instead. The current banner is in the overrides images folder. (EDIT: Will add this to the "Other Considerations" Section).

To reiterate, In order to use this setup, all users need to familiarise themselves with the configuration settings for rEFInd (for RefindPlus) and with those for OpenCore as if they were separately installing each one themselves (Links are in Post 1 and copies of the documentation for both are provided with MyBootMgr).

This process might generate queries and stuff which should be directed to relevant forums to allow maintaining focus on the actual mechanics of the MyBootMgr process here.
 
Last edited:
  • Like
Reactions: JedNZ
Comment

Dayo

macrumors 6502a
Original poster
Dec 21, 2018
628
253
how do I create a "hybrid"?
Perhaps create a thread and ask there?

Alright here is one problem with ConfigFactory I just found. The reason VMM is not working is because you have the wrong value generated for Cpuid1Data.
There is a bug indeed. The values are generated correctly but then overwritten by a setting added in v063. That is, it worked up to v062. A fix will be in the next release.
 
Last edited:
Comment

startergo

macrumors 68030
Sep 20, 2018
2,700
1,147
either or what? Please explain, I am not that knowledgable. What does Windows require? What can I put into my Mac if its all on one drive vs if I am trying to shared a drive with other APFS volumes?



how do I create a "hybrid"?
 
  • Like
Reactions: Dewdman42
Comment

joevt

macrumors 68020
Jun 21, 2012
2,059
924
I'm not daring enough to use the EFI shell yet. ;-)
but it's fun. If you have RefindPlus, might as well look at the EFI Shell.
First thing you do is type mode to get a list of text modes.
Then type mode x y to change the mode to the one with the most vertical lines.
Then type help for a list of commands.
Then type map for a list of file systems and block devices.
Then type fs0: to chose the first file system (like C drive of Windows)
Then type ls to get a list of files on that file system.
If it has an EFI folder, then it's probably an EFI partition and you can use mkdir to make a directory and cd to change directory, and you can do commands and pipe their output to a file
dmpstore > dmpstore.txt
Then you can boot into macOS, mount the EFI partition, and view the file you created.

Anyway, not sure what you are suggesting to discover with that?
The point is to gather info about your system so you can tell if Windows changes anything important afterward. You can discover what nvram variables it changes, or what boot code it adds to the MBR or PBR.

Dayo has some excellent instructions on that other thread about installing Windows using a VM first to run the Windows installer... the only thing is his instructions involve using a whole drive, rather then a partition on a drive. Which doesn't have to be a big deal, but I read some comments on this forum about people who setup dual boot systems and then at some point a windows updater may have written outside the partition into a boot sector of some and kind of screwed things up. I don't really remember the details of what I read now, but I am just wanting to make sure I don't run into any kind of weird problem like that.

I guess at this point all the drives in my box were partitioned with GUID. So if I have to somehow use MBR, then again, I don't know how I would do that as a FAT partition on one of these, might be better to just buy another drive and format it purely the windows way with MBR and FAT on top. Yea?
A VM is one way to do it. You still want to gather the info about your system before doing the install. So you have something to compare when it's done.

You don't need to change to MBR. You keep GPT and make hybrid MBR/GPT which is the same as GPT except the first block contains boot code to do BIOS boot of Windows, and the first block has a MBR partition table with up to 3 partitions specified (first partition should still by type EE - for EFI but is changed to extend only to the start of the first partition). iPartition.app does this with a couple clicks. Use the dumpvols.sh script before and after you do iPartition, to learn what iPartition does to your disk. iPartion.app cannot resize APFS partition so leave them alone. If you need to resize an APFS partition to create the FAT partition, then use Disk Utility.app to create the new partition. Then use iPartition.app to make the new partition Active and Visible in Windows.

You can't do MBR with FAT. It is either/or. The Apple way is a hybrid partition when installed on the same drive (at least on older macs). When a hybrid parturition is created Windows cannot see the EFI partition. As far as it is concerned it is an MBR drive (even though it is not hence it is called hybrid).
It's a FAT partition on a hybrid GPT/MBR disk. macOS treats it as GPT. Windows will treat it as MBR. Don't do partitioning in Windows. Only use Windows to erase the partition as NTFS (you can tell what partition is the correct one by looking at the size and name).

As mentioned above I'm having issues with the RefindPlus resolution. It looks like it might be 1024x768 or 1280x1024 scaled to fit 16:9 (so stretched laterally/horizontally - optically it all looks fat and wide). Photo attached.

Below is a (partial) RefindPlus log that includes all the info about Graphics, GOP and resolution.

Code:
15:172   0:023  Read Config...
 15:198   0:025  Detected Overrides - Read Config...
 15:250   0:051  Adjust Default Selection...
 15:271   0:021  Initialise Screen...
 15:297   0:025  Check for Graphics:
 15:322   0:024    - Seek Console Control
 15:368   0:046      * Seek on ConsoleOut Handle ...Success
 15:394   0:025    - Assess Console Control ...ok

 15:418   0:024    - Seek Universal Graphics Adapter
 15:443   0:024      * Seek on ConsoleOut Handle ...Unsupported
 15:469   0:025      * Seek on Handle Buffer ...Success
 15:493   0:024      ** Examine Handle[00] ...Success
 15:518   0:024      *** Select Handle[00] @ 640x480
 15:543   0:024    - Assess Universal Graphics Adapter ...ok

 15:569   0:025    - Seek Graphics Output Protocol
 15:618   0:049      * Seek on ConsoleOut Handle ...Success
 15:644   0:025    - Assess Graphics Output Protocol ...NOT OK!

 15:668   0:024  Validate Replacement GOP for ConsoleOut Handle:
 15:693   0:024    - Seeking Firmware GOP Handles ...Success
 15:744   0:050    - Found Candidate Replacement GOP on Firmware Handle[01]
 15:768   0:024      * Evaluating Candidate
 15:793   0:024      ** Valid Candidate : Width = 1280, Height = 1024

 15:843   0:050  INFO: Provide GOP on ConsoleOut Handle ...Success

 15:893   0:049  Query GOP Modes (Modes=5, FrameBufferBase=80000000, FrameBufferSize=0x0):
 15:919   0:025    - Mode[00] ...Success @  1280x1024  ( 1280 Pixels Per Scanned Line, 8bit BGR Pixel Format )
 15:968   0:049    - Mode[01] ...Success @   640x480   (  640 Pixels Per Scanned Line, 8bit BGR Pixel Format )
 16:018   0:050    - Mode[02] ...Success @   800x600   (  832 Pixels Per Scanned Line, 8bit BGR Pixel Format )
 16:068   0:049    - Mode[03] ...Success @  1024x768   ( 1024 Pixels Per Scanned Line, 8bit BGR Pixel Format )
 16:151   0:083    - Mode[04] ...Success @  1280x960   ( 1280 Pixels Per Scanned Line, 8bit BGR Pixel Format )

 16:205   0:053  Set Screen Resolution:
 16:229   0:024    - BestMode: GOP Mode[0] @ 1280x1024
 16:261   0:031    - Switch to GOP Mode[0] ...Success
 16:285   0:024  Screen Resolution Set

 16:310   0:024  INFO: Implemented Graphics Output Protocol

 16:341   0:030  INFO: Implement Text Renderer ...Success

 16:363   0:022  Setup Screen...
 16:410   0:046  Prepare for Graphics Mode Switch:
 16:434   0:024    - HiDPI Not Detected ...Maintain Icon Scale

 16:460   0:025  INFO: Running Graphics Mode Switch

 16:485   0:024  Refresh Screen:
 16:510   0:024    - Get Banner
 16:590   0:079    - Scale Banner
 16:643   0:053    - Clear Screen
 16:675   0:031    - Show Banner

 16:709   0:033  INFO: Switched to Graphics Mode

My GPU is a Sapphire Pulse RX590 8GB - it has a single BIOS (so doesn't have a bios switch). I connect to a Samsung U28E590 28" 4K display via DisplayPort cable with DisplayPort 1.2 setting and with Freesync on. It has a pixel density of 157PPI. I get the same result regardless of which DisplayPort I connect from on the back of the GPU (it has 2x DP).

Does anyone know what I need to change/set in order to get the ratio right for my setup?
Strange that you're not getting any 16:9 modes. Maybe the Radeon EFI driver sucks. But at least you're getting an image. Unless it's using the wrong GOP or UGA on GOP or something weird. In EFI Shell (access from RefindPlus), you can do this command (after setting the current directory to a writable directory as explained above.
dh > dh.txt
dh -d -v > dh_d_v.txt
 
  • Like
Reactions: JedNZ
Comment

startergo

macrumors 68030
Sep 20, 2018
2,700
1,147
Correct. I just did a research on the Bootcamp operation from BigSur in cMP:
 
  • Like
Reactions: Dewdman42
Comment

Teachermark01

macrumors member
Aug 22, 2020
33
0
Somehow the latest Mojave security update facked up my BootMgr.. so it is not working anymore.
I have delete it with the uninstall tool. But now everytime when I want to try to start the 'configFactory' it says: Please uninstall Lilu to proceed. I totally not know what to do.. :( Who can help me?

Kind regards,

Mark
 
Comment

Dewdman42

macrumors regular
Jul 25, 2008
143
14
Thanks for that info. its a lot to digest, but I will. One quick question...

Once I setup a legacy Windows install on a hybrid MBR drive, presuming I decide to do it that way...do you then boot into windows WITHOUT OpenCore? Just use rEFInd's direct boot to the volume without OC in that case?
 
Comment

startergo

macrumors 68030
Sep 20, 2018
2,700
1,147
Once I setup a legacy Windows install on a hybrid MBR drive, presuming I decide to do it that way...do you then boot into windows WITHOUT OpenCore? Just use rEFInd's direct boot to the volume without OC in that case?
Correct. OC does not support Legacy Windows.
 
Comment

Dewdman42

macrumors regular
Jul 25, 2008
143
14
One more thing I want to ask before I forget. As I setup this rEFInd/OpenCore Mac...It is finally occurring to me a couple things:

  1. rEFInd can launch instances of OC or it can directly launch volumes without OC. (check)

  2. When using OpenCore, it does not appear to be straightforward to specify which precise volume I want that one particular OC instance to boot into. It appears that an OC instance will have the possibility to use a different config.plist with potentially different kext injection, etc..but...the "normal" way to use OpenCore is to let it scan all volumes and thne either select the specific volume in OC BootPicker...or depend on the "default"

  3. But the "default" is not something I can configure in rEFInd or OpenCore (right?)..its a global NVRAM parameter that gets specified by using System Preferences to select the startup disk.

So the above leads me to believe that I cannot do what I had hoped to do. I had hoped to setup a rEFInd setup that would have two OC icons for Catalina (with and without VMM), two icons for BigSur (with and without VMM) and then a direct Volume icon that would boot up Mojave (without OC) and a direct Volume icon to boot up Windows (without OC)

that's a nice idea, but as far as I can tell, I'm not sure I can do that because I haven't been able to figure out a way to configure in the OC config.plist, which actual volume to boot to...it is always dependent on the global NVRAM setting.

Right?

So the boot up procedure I guess would always be...select the OC instance I want...and then then also make sure to select the desired OSX volume in the OC Boot Picker menu as a second step... Two boot selections, one after the other, whenever booting to either Catalina or BigSur.

Am I Understanding this correctly or is there another variation on configuration I can look into to try to make this a little more automatic so that if I select a particular OC instance, it will then directly boot the particularly version of OSX that it is setup for?
 
Comment

Dayo

macrumors 6502a
Original poster
Dec 21, 2018
628
253
I want to try to start the 'configFactory' it says: Please uninstall Lilu to proceed.
ConfigFactory has detected that you have Lilu, and perhaps others such as Whatevergreen, installed outside OpenCore. As OpenCore would also inject these, having them in place would lead to a conflict and thus, it does not proceed.

You need to uninstall any such potentially conflicting Kext that is flagged by ConfigFactory first: https://www.maketecheasier.com/add-remove-kexts-from-macos
 
Comment

GreppMichaels

macrumors member
Apr 17, 2020
50
10
Los Angeles, CA
Try to ensure you know the meanings of terms you use as neither OpenCore nor RefindPlus have anything to do with BootROMs.

Deep breath ... OK.
  1. Shut your computer down
  2. Connect a GPU that can boot into Mac OS natively
  3. Disconnect the physical disk RefindPlus/OpenCore is installed on
    1. Assume you did not install on the same disk as your Mac OS as was advised​
  4. Restart and Hard Reset NVRAM (Hold the OPT + CMD + P + R keys down until the fourth chime)
    1. You may be booted into recovery mode. If so ...
      1. Click on the arrow to move to the next screen
      2. The Apple Icon should appear on the top left of the menu of the next screen
        1. Don't select any of the options in the main window​
      3. Click on the Apple Icon and select Startup Disk from the available options
      4. Select a Mac OS volume and restart
  5. You should be booted into Mac OS on restart
    1. Go into System Preferences
    2. Select a Mac OS Volume and restart from System Preferences
  6. You should be booted into Mac OS on restart
  7. Shut your computer down after logging in
  8. Reconnect the disk from Step 3
  9. Restart your computer and login to Mac OS
  10. Mount the EFI partition on the reconnected disk
  11. Delete RefindPlus and OpenCore
Sorry meant to totally delete/edit/remove all my post
 
  • Like
Reactions: Dayo
Comment

Dewdman42

macrumors regular
Jul 25, 2008
143
14
question about the RefindPlus configuration being used in MyBootMgr: I notice that there is an overrides dir with override.conf. I can't find any mention about this capability of using a separate override.conf file...anywhere in the docs of rEFInd. Is this an extension built into RedindPlus to use an overrides dir?
 
Comment

JedNZ

macrumors 6502
Dec 6, 2015
470
168
Deep South
Look at the "banner_scale" config setting in RefindPlus. It is currently set to "fillscreen" which stretches the background as needed as the provided banner is based on my monitor dimensions.

You can try to change banner_scale to "noscale" which will crop the banner if it too big or show it with a border if it too small. Alternatively, create a banner image that fits your monitor and use this instead. The current banner is in the overrides images folder. (EDIT: Will add this to the "Other Considerations" Section).

To reiterate, In order to use this setup, all users need to familiarise themselves with the configuration settings for rEFInd (for RefindPlus) and with those for OpenCore as if they were separately installing each one themselves (Links are in Post 1 and copies of the documentation for both are provided with MyBootMgr).

This process might generate queries and stuff which should be directed to relevant forums to allow maintaining focus on the actual mechanics of the MyBootMgr process here.

Default is "noscale", but made that setting and no change. Likewise, tried "fillscreen" and no change either.

The banner imagedoesn;t look bad anyway, it's the icons that are skewed.
 

Attachments

  • RefindPlus GUI.jpg
    RefindPlus GUI.jpg
    212.6 KB · Views: 6
  • Like
Reactions: Dayo
Comment

Dayo

macrumors 6502a
Original poster
Dec 21, 2018
628
253
Is this an extension built into RedindPlus to use an overrides dir?
It uses the include feature from rEFInd. Take a look at the refind.conf file to see how it is brought in.
There is a page in the rEFInd docs that explains this.
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.