Jump to content
About Just Joined group Read more... ×
Jief_Machak

Clover on real mac

132 posts in this topic

Recommended Posts

Hi,

 

I've installed Clover on my MacPro 3,1 to use as a boot manager.

One reason is that I use a PC graphic card, so I can't have original mac bootloader anymore.

 

Of course, I'd like Clover to be as transparent as possible. No modification because none needed. I have already disabled all injection, patch, etc. Os X boots fine. So far no problem.

 

I can see in the debug.log generated by Clover that there is still patching/droping some SSDT table. Should that be disabled ? I can comment out in code to try, I have a working copy that compiles.

 

Cheers,

Jief

Share this post


Link to post
Share on other sites
Advertisement

I dig a bit more and here what I did

 

Around at line 1799 (for rev 3555), there is

  if (gSettings.DropSSDT) {
    //special case if we set into menu drop all SSDT
    DropTableFromXSDT(EFI_ACPI_4_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE, 0, 0);
    DropTableFromRSDT(EFI_ACPI_4_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE, 0, 0);
  } else { 
    //all remaining SSDT tables will be patched
    PatchAllSSDT();
    //do the empty drop to clean xsdt
    DropTableFromXSDT(XXXX_SIGN, 0, 0);
    DropTableFromRSDT(XXXX_SIGN, 0, 0);
  }
 

gSettings.DropSSDT is false for me, in the else part I've changed :

  } else { 
    if (gSettings.PatchDsdtNum > 0) {
        //all remaining SSDT tables will be patched
        PatchAllSSDT();
        //do the empty drop to clean xsdt
        DropTableFromXSDT(XXXX_SIGN, 0, 0);
        DropTableFromRSDT(XXXX_SIGN, 0, 0);
    }
  }
 

That way, nothing's done if gSettings.PatchDsdtNum==0, which is the case, of course.

 

Not sure if it's needed or not...


@Download-Fritz : 

One reason is that I use a PC graphic card, so I can't have original mac bootloader anymore.

1) PC graphic cards don't have efi bios. You can't have Apple's Startup Manager.

2) Apple's Startup Manager can't boot uefi windows or other OS

3) Apple's Startup Manager is not configurable. With Clover I can add some tools, like gdisk.efi in a custom entry

4) Apple's Startup Manager doesn't work on 4k screen (with my Mac Pro 3,1. I guess newer Mac works)

5) Clover is pretty (if you find the theme you like).

...

Share this post


Link to post
Share on other sites

1) Ahh, so you boot Clover legacy?

2) It should be able to (except when the OS loader doesn't support EFI 1.10).

3) True, but you could also use rEFInd (saves you having Clover patches on a Mac).

4) See 3).

5) See 3).

 

Just my 5 cents, Clover does quite some stuff unasked as it's not really designed for Mac-use (though ofc nobody stops you from using it that way).

Share this post


Link to post
Share on other sites

I need the "compatibility support module" to be able to use BIOS firmware. So yes, it's a Legacy boot.

I read everywhere that EFI 1.10 can't windows. Indeed, it doesn't work an my macpro 3,1

 

I already tried rEFInd. Forgot why it didn't work. I know better Clover now because I also have Hackintoshes.

 

My MacPro I'm using now is booted through Clover. So I'm doing it. If some tweaks are needed, I may do them.

So, please, stop trying to convince me not doing so.

Share this post


Link to post
Share on other sites

So, please, stop trying to convince me not doing so.

 

(though ofc nobody stops you from using it that way).

 

I was only confused because it makes no sense that Apple Startup Manager shouldn't work if Clover does, except for when Clover is booted legacy... it wasn't obvious from your post, so I asked. Is it so bad? ;)

Share this post


Link to post
Share on other sites

Nope, but after I've explained my reasons,

you still suggest to use rEFInd :

 

3) True, but you could also use rEFInd (saves you having Clover patches on a Mac).

4) See 3).

5) See 3).

 

It's ok. Can we nicely close the "you can do something else" thing that wasn't at all my inital question ?

 

Thanks.

Share this post


Link to post
Share on other sites

Clover will not patch/drop any SSDT if you don't ask to do this.

Clover really do some tuning without question but for purpose to be like real Mac. I don't think you should afraid it.

Anyway, boot.log?

Share this post


Link to post
Share on other sites

Hi Slice,

 

I was a bit worried about PatchAllSSDT that was called. It's now not called anymore if gSettings.PatchDsdtNum > 0   

I guess before, it was just copying some table, replacing by the same version because I have no patched in my config.plist.

 

Here is a debug.log. I've added few thing to see what's happening.

 

Jief

debug.log.zip

Share this post


Link to post
Share on other sites

Hi Slice,

 

I was a bit worried about PatchAllSSDT that was called. It's now not called anymore if gSettings.PatchDsdtNum > 0   

I guess before, it was just copying some table, replacing by the same version because I have no patched in my config.plist.

 

Here is a debug.log. I've added few thing to see what's happening.

 

Jief

Very interesting! Some comments:

1. 

0:108  0:000  LegacyRegion2: Chipset/proc: 0x40038086
0:108  0:000   Unknown chipset

will be corrected

2.

37:569  0:000  Clover revision: 3391  running on MacPro3,1
37:569  0:000  ... with board Mac-F42C88C8

good.gif
 
3.
37:731  0:005  Loading Ps2MouseDxe-64.efi  status=Success

I don't think you need it.

 

4.

571:813  0:003  Table 131 is present, CPUType=402
571:814  0:001  Change to: 402

Changed to same ;)

 

5.

571:831  0:001  ========= Auto patch DSDT Starting ======== 

Yes, but for analyze. It do nothing.

6.

572:323  0:001  // Drop tables

There must be note "dropped" if it happen like me

58:776  0:055  Drop tables from Xsdt, SIGN=SSDT TableID=CpuPm Length=2706
58:834  0:058   Xsdt has tables count=7 
58:891  0:056   Table: SSDT  CpuPm  2706 dropped

7.

572:544  0:001  ** Warning: Your MLB is not suitable for iMessage(must be 17 chars long) !

:hysterical:

Did you have working iMessage?

 

 

All is good

Share this post


Link to post
Share on other sites

Even if everything is fine, personally I would remove the 'APPLE_GETVAR_PROTOCOL' (where is that name from? should be 'EFI_DEVICE_PATH_PROPERTY_DATABASE_PROTOCOL') exposure, as your Mac provides its own.

 

@Slice Does Clover internally locate the protocol (i.e. will DevProps code use the Mac protocol) or does it only use the one it exposes?

Share this post


Link to post
Share on other sites

Even if everything is fine, personally I would remove the 'APPLE_GETVAR_PROTOCOL' (where is that name from? should be 'EFI_DEVICE_PATH_PROPERTY_DATABASE_PROTOCOL') exposure, as your Mac provides its own.

 

@Slice Does Clover internally locate the protocol (i.e. will DevProps code use the Mac protocol) or does it only use the one it exposes?

 

InstallMultipleProtocolInterfaces

will return EFI_ALREADY_STARTED

Share this post


Link to post
Share on other sites

 

InstallMultipleProtocolInterfaces

will return EFI_ALREADY_STARTED

 

 

This only applies to Device Paths:

'EFI_ALREADY_STARTED  A Device Path Protocol instance was passed in that is already present in the handle database.'

https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Uefi/UefiSpec.h#L1158

Share this post


Link to post
Share on other sites

@Slice :

 

3. I was'nt sure if mouse emulation for BIOS boot was PS2 or USB. So... the answer is.... USB ! I removed PS2MouseDxe.efi

5. Yes, Auto patch DSDT does nothing. I've checked with various added DBG message.

6. That was a DBG message I've added to be sure it was going there. But it doesn't drop anything.

7. iMessage working fine. Forum usually says that MLB is 13 or 17 chars long. 13 for old macs. Mine is quite old now. I didn't get why this warning.

 

I do have 2 problems, though.

1) nvram are not persistent. I don't have a huge need for it (when I want to bypass Clover, I need to change the boot device, that I can't anymore from OS X).

2) integrated sound card isn't working anymore most of the time. HDEF is seen with IOJones but layout-id is 0, therefore no service connected (it happend twice to have it and I don't know why).

 

@Download-Fritz

I have a look in the source. Not sure what you mean by "remove". I'm kind of new to UEFI, so I can't say I understand that very well. Should I comment out some code ? Or configure something ? 

 

Thanks you both.

Share this post


Link to post
Share on other sites

I don't think it's injected by Clover. I've checked with debug trace and set_hda_props isn't called.

Clover does something that change it somewhere in the code. And not 100% of the time. Bug somewhere ?

Share this post


Link to post
Share on other sites

boot.efi locates the mentioned protocol to get the props... If boot.efi locates Clover's, all Mac props will be discarded. So yes, you probably should bother about it, Slice, and it might even be this layout-id issue.

Share this post


Link to post
Share on other sites

Sometimes, it works without changing anything. A race issue ?

I have an idea.

Boot into OSX by Apple's way. Make full DarwinDumper report and find here DeviceProperties string. Example for MacPro3,1 attached.

device-properties.hex.zip

Then insert it into Clover config.plist to be injected as string

	<key>Devices</key>
	<dict>
		<key>Properties</key>
		<string>7a00000001000000010000006e0000000200000002010c00d041030a0000000001010600001b7fff040028000000500069006e0043006f006e00660069006700750072006100740069006f006e00730000000800000001080100180000006c00610079006f00750074002d00690064000000080000000c000000</string>

This way you will get exactly same properties that you had before Clover.

Share this post


Link to post
Share on other sites

I'm away for few days (with my Dell M4300 that works really great with os x, thanks Clover).

I'll try that when I'll be back.

 

I'll do 2 reports with DarwinDumper, 1 when I'm booted through Clover, 2 when booted the Apple's way. To check if it's different. Then I'll do what you said and see for the sound problem.

 

I'll tell you the results.

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

Announcements

  • Similar Content

    • By MaLd0n
      -OpenCore Vanilla TUTORIAL-
       
       
      -USB Port Mapping TUTORIAL-
       
        1 -Create a USB bootable
       
      Create your usb installer, use this tool and download Catalina or Big Sur from Apple servers
       
      Catalina
      installScript_allfullapp.zip
       
      Big Sur
      installScript_1016fullapp.zip
       
      Credits: crazybirdy
       
      Copy Catalina / Big Sur installer to Applications folder, open terminal and run
       
      Catalina
       
       
      Big Sur
       
       
      If you want check one step by step, check here
       
      -Opencore Vanilla Tutorial
      https://tinyurl.com/ycvcnp8h
       
      2- EFI folder USB installation
       
      -EFI OpenCore Folder Desktop 10th Intel Processors
      Paste this EFI folder in EFI partition in your USB STICK
      https://tinyurl.com/ybwr9kq3
       
      -EFI Clover Folder Desktop 10th Intel Processors
      Paste this EFI folder in EFI partition in your USB STICK
      https://tinyurl.com/yxsw7d3t
       
      3- EFI folder SSD
       
      -EFI OpenCore Folder Desktop 10th Intel Processors
      Paste this EFI folder in EFI partition SSD 
      https://tinyurl.com/ybwr9kq3
       
      -EFI Clover Folder Desktop 10th Intel Processors
      Paste this EFI folder in EFI partition SSD
      https://tinyurl.com/yxsw7d3t
       
      4- Start Fine Tune
       
      Run this app and post full dump here for full ACPI solution
       
      RunMe.app
      https://tinyurl.com/y9562hz7
       
       
      If you like a SSDT way, here we go
      SSDT-OLARILA.aml.zip
       
      5- USB Solution
       
      Use these kexts, enable XHCI port limit patch
       
      USB INTEL SERIE 400.zip
       
      and follow this tutorial for remap USB ports
       
       
      --DSDT PATCHES--
       
      -FIX ERRORS AND WARNINGS -FIX ACPI ERRORS -REMOVE UNUSED SCOPES / DEVICES -HIGH PRECISION EVENT TIMER -SATA SERIE ID -DMAC -REMOVE LINES, PROBLEMATIC and UNUSED -FIX K.P in REBOOT -NVRAM -REAL TIME CLOCK -SLPB -DARWIN / WINDOWS -XHCI -PLUGIN TYPE -HDEF -ARTC -IPIC -TIMR -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -UAR1 -LAN -FWHD -USBX -PMCR -PPMC -XSPI -kUSBCompanionIndex -io-device-location -IMEI -EC -PNLF -ARPT -GFX0 -NVME -ACPI-WAKE-GPE -DTGP -HDMI / HDAU  
      --SCREENSHOTS--































      -If you want to buy me a beer - Donations with PayPal
      https://tinyurl.com/r2bvzm7
       
      Big Thanks to XLR and your Badass Motherboard, Ultrafast CPU, Coolest Heatsink, Huge Graphics Card, Tonnes of RAM,
      Gigantic Hard Drive, Lightspeed Disk Burner, Professional Sound Card, Massive LCD Display.
       
       
      -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
      Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!

      We're all here to have fun and learn from each other!
    • By Nomade
      Hello All,
       
      It's been a while that I am trying to update my system to 10.15.16.
      The install seem to start, then at reboot time I only see the Normal boot and the Recovery option from the Clover boot menu.
      None of those 2 allow to complete the update.
       
      Is there any ways to force it to install and/or show the "Update" option on the Clover boot screen?
       
      PS: I'm using Z97-Gaming-3
    • By Damx
      The specs CPU: Intel® Core™ i3 Processor 8130U, 2.20 GHz (Kaby Lake Refresh) Chipset: Intel® 300 Series Graphics: Intel® UHD Graphics 620 Display: 21.5'' 1920x1200 RAM: DDR4 PC2400 4GB SSD1: M.2 PLEXTOR (with original Windows 10) SSD2: SATA SAMSUNG 850 EVO (for macOS) Sound: Realtek ALC269 WiFi / BT: Intel 3168 NGW Realtek Card-reader  
       
      Not working
      WiFi: Intel 3168 NGW Realtek Card-reader  
       
      Pre-Installation
       
      I will not go through the basics since it is explained in details here on this site. Briefly, the process is to:
      Get Clover Get Catalina macOS installer Create USB with 2 MBR partitions (FAT32 for Clover and HFS+J for the installer)  
       
      Required kexts
      AppleALC.kext Lilu.kext RealtekRTL8111.kext VirtualSMC.kext WhateverGreen.kext  
       
      Config.plist
      I used the one provided by RehabMan called config_HD615_620_630_640_650.plist. Download it from GitHub. It has almost everything you will need with only few edits for audio.
      Edits:
      [CPU] Make sure there is lilcpu=9 setting in boot arguments needed for Kaby Lake R CPU to be recognised correctly. [GPU] Make sure there is a patch GFX0 to IGPU under ACPI->DSDT [GPU] Under Devices->Properties->PciRoot(0)/Pci(0x02,0) make sure that the AAPL,ig-platform-id value is 00001B59, and the device-id value is 16590000 [AUDIO] Under Devices->Properties->PciRoot(0)/Pci(0x1f,3) set the layout-id to 40 and the device-id to 70A10000 [SMBIOS] Set Mac model ID is iMac19,2  

       

       
      Notes
      For some reason with latest version of Clover the install partition was not visible. If you run into the same issue you can downgrade Clover to r5103, which worked perfectly. WiFi / BT Intel 3168 NGW needs to be replaced if one needs WiFi. Someone mentioned that to get HDMI work properly you may need to change AAPL,ig-platform-id value to 00001659 for PciRoot(0)/Pci(0x02,0) - not my case but may be considered if you get this issue. Don't forget to generate your serial and other SMBUS values before signing in with iCloud services.  
       
    • By MaLd0n
      A very custom DSDT for best experience under macOS. Removed all unused devices, injected all Apple devices, essentials, cosmetics, real improvements. 
       
      -OpenCore Vanilla TUTORIAL-
       
       
      -USB Port Mapping TUTORIAL-
       
          -Original DSDT have 167,880 lines and 762kb
       
      DSDT ORIGINAL.aml.zip138.01 kB · 8 downloads
       
      -Patched DSDT have 30,912 lines and 111kb
       
      DSDT PATCHED.aml.zip27.01 kB · 17 downloads
       
      --Hardware--
      Asus ROG RAMPAGE VI EXTREME OMEGA

      Processor  Intel i9-10980XE

      GPU Radeon RX 5700 XT

      --DSDT Patches--
      -FIX ERRORS AND WARNINGS -FIX ACPI ERRORS -REMOVE UNUSED SCOPES / DEVICES -HIGH PRECISION EVENT TIMER -SATA SERIE ID -DMAC -REMOVE LINES, PROBLEMATIC and UNUSED -REAL TIME CLOCK -SLPB -DARWIN / WINDOWS -XHCI -PLUGIN TYPE -HDEF -ARTC -IPIC -TIMR -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -UAR1 -LAN -FWHD -USBX -XSPI -EC -PNLF -ARPT -GFX0 -NVME  
      --Screenshots-



















       
      -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
      Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!

      We're all here to have fun and learn from each other!
    • By MaLd0n
      -OpenCore Vanilla TUTORIAL-
       
       
      -USB Port Mapping TUTORIAL-
       
          -Wifi card has been replaced with Dell DW1560!
      -I'm using a S145 Model with Intel Core i5-1035G1 IceLake / Intel HD Graphics ICL
      -Update bios/uefi to last version 
       
      *For now we have 2 problems. Wake from sleep and some bugs in trackpad*
       
      --Bios/UEFI config--
      Go to Security tab and disable Secure boot
       
      -IceLake Premade installation Folder (easy way installation)
      https://tinyurl.com/y3tl6xlx
       
      --Clover and OpenCore Folders--
      Just paste EFI folder inside EFI partition
      -OpenCore
      https://tinyurl.com/y3c4rjkr
      -Clover
      https://tinyurl.com/y4496nq8
       
      --Enable Trackpad Dragging Option--
      Go to System Preferences/Accessibility/PointerControl/Trackpad Options and "Enable dragging"

      -Bluetooth Broadcom
       
      BrcmBluetoothInjector.zip2.46 MB · 4 downloads
       
      -OcQuirks.efi for Clover (Just replace Drivers folder)
       
      drivers.zip74.57 kB · 4 downloads
       
      --DSDT Patches--

      -Patches
      -FIX ERRORS AND WARNINGS -REMOVE UNUSED SCOPES / DEVICES -HIGH PRECISION EVENT TIMER -SATA SERIE 12 ID -DMAC -REMOVE LINES, PROBLEMATIC and UNUSED -SLPB -DARWIN / WINDOWS 2015 -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -REAL TIME CLOCK -ARTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -FWHD -USBX -PMCR -PPMC -XSPI -GMM -IMEI -EC -PRWs -_DSMs -PNLF -BRIGHTNESS KEYS -I2C -NATIVE USB -ARPT -GFX0 -DTGP -ACQUIRE MUT0 0XFFFF -OPERATION REGION GPIO -MUTEX MUT0 0x00 -EXTERNAL REFERENCES -UNKNOWNOBJ -FULL RENAMED DEVICES   --IGPU Patch-- (All credits to Austere.J) Discussion about that HERE
       
      <key>PciRoot(0x0)/Pci(0x2,0x0)</key>             <dict>                 <key>AAPL,ig-platform-id</key>                 <data>AABSig==</data>                 <key>device-id</key>                 <data>UooAAA==</data>                 <key>framebuffer-fbmem</key>                 <data>AACQAA==</data>                 <key>framebuffer-patch-enable</key>                 <data>AQAAAA==</data>                 <key>framebuffer-stolenmem</key>                 <data>AAAwAQ==</data>                 <key>framebuffer-unifiedmem</key>                 <data>AAAAgA==</data>                 <key>hda-gfx</key>                 <string>onboard-1</string>                 <key>igfxfw</key>                 <data>AgAAAA==</data>             </dict>  
      --USB Fix-- https://tinyurl.com/y4mqfahz
       
      -ScreenShots

       


























      -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad, Sampath007, onemanosx, erroruser, Jenny David, Acidanthera Team, Olarila Facebook Community, Hackintosh Facebook Community and many others!     We're all here to have fun and learn from each other!
×