Jump to content
fantomas1

Clover test and patches for Polaris GPU

279 posts in this topic

Recommended Posts

THIS TOPIC IS THE RESULT OF VARIUS SPLITTED POST FROM CLOVER GENERAL DISCUSSION

 

THE MAIN GOAL OF THAT IS KEEP TRACK OF THE RESULT IN THE TEST AND MAYBE FIND POSSIBLE SOLUTION ON THE BOOT HANG WITH POLARIS CARDS WITHOUT THE HELP OF PRIMARY iGPU

 

ALSO TO KEEP THE CLOVER GENERAL DISCUSSION TOPIC CLEAN...

 

Other related topic:

AMD Polaris IDs on 10.12 Sierra

10.12 Sierra AMD Framebuffer dump script

 

 

 

ErmaC (November, 12 2016)

 

 


 

Hi guys  :)

 

A question from a noob: it's about Clover support for Polaris graphics cards

https://sourceforge.net/p/cloverefiboot/code/HEAD/tree/rEFIt_UEFI/Platform/ati.c (line 277)

 

 

  //Polaris
  { 0x67C0,	0x00000000, CHIP_FAMILY_HAWAII,	"AMD Radeon Polaris 10",        kNull	},
  { 0x67DF,	0x00000000, CHIP_FAMILY_HAWAII,	"AMD Radeon RX480",             kNull	},
  { 0x67E0,	0x00000000, CHIP_FAMILY_HAWAII,	"AMD Radeon RX460",             kNull	},
  { 0x67EF,	0x00000000, CHIP_FAMILY_HAWAII,	"AMD Radeon RX460",             kNull	},
  { 0x67FF,	0x00000000, CHIP_FAMILY_HAWAII,	"AMD Radeon Polaris 11",
Shouldn't we have CHIP_FAMILY_POLARIS instead of CHIP_FAMILY_HAWAII???

 

Or maybe CHIP_FAMILY_BAFFIN (for Polaris 11) and CHIP_FAMILY_ELLESMERE (for Polaris 10)???

 

Also, are you sure about RX460 with 0x67E0??? According to AMD  and Linux Kernel Driver DataBase, there's no RX 460 with that device.

 

Here, all known Polaris graphics cards device-ids

 

 

  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67c0 ("Ellesmere [Polaris10]")
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67c1
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67c2
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67c4
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67c7
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67c8
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67c9
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67ca
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67cc
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67cf
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67df ("Ellesmere [Radeon RX 470/480]")
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67e0 ("Baffin [Polaris11]")
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67e1 ("Baffin [Polaris11]")
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67e3
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67e7
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67e8 ("Baffin [Polaris11]")
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67e9 ("Baffin [Polaris11]")
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67eb ("Baffin [Polaris11]")
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67ef ("Baffin [Radeon RX 460]")
  • vendor: 1002 ("Advanced Micro Devices, Inc. [AMD/ATI]"), device: 67ff ("Baffin [Polaris11]")

 

Edited by ErmaC
Split from Clover general discussion

Share this post


Link to post
Share on other sites
Advertisement

Also, are you sure about RX460 with 0x67E0??? According to AMD  and Linux Kernel Driver DataBase, there's no RX 460 with that device.

 

From Linux:

 

+ /* Polaris11 */

+ {0x1002, 0x67E0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67E1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67E8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67E9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67EB, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67FF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ /* Polaris10 */

+ {0x1002, 0x67C0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},

+ {0x1002, 0x67DF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},

Share this post


Link to post
Share on other sites

From Linux:

 

+ /* Polaris11 */

+ {0x1002, 0x67E0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67E1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67E8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67E9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67EB, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67FF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ /* Polaris10 */

+ {0x1002, 0x67C0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},

+ {0x1002, 0x67DF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},

 

Yes but it does not show the model name   :(

 

EDIT:

 

CHIP_FAMILY_POLARIS10

CHIP_FAMILY_POLARIS11 

 

it sounds good (instead of CHIP_FAMILY_HAWAII).   ;)

Share this post


Link to post
Share on other sites

Yes but it does not show the model name :(

 

EDIT:

 

CHIP_FAMILY_POLARIS10

CHIP_FAMILY_POLARIS11

 

it sounds good (instead of CHIP_FAMILY_HAWAII). ;)

Hello there,

 

We'll look into your concern.

 

Best regards.

Share this post


Link to post
Share on other sites

From Linux:

 

+ /* Polaris11 */

+ {0x1002, 0x67E0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67E1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67E8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67E9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67EB, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ {0x1002, 0x67FF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS11},

+ /* Polaris10 */

+ {0x1002, 0x67C0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},

+ {0x1002, 0x67DF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},

Thanks, I will add this to Clover sources when I'll return home.

But I have to notice that it will not influence on macOS, just naming.

For modern cards in Sierra Inject->ATI=false is the best solution.

Hi,

Is it possible with clover to solve this ssdtprgen script warning?

 

Warning: 'system-type' may be set improperly (1 instead of 3)

 

I have also had a cpu warning that I solved in clover adding type parameter for my cpu.

Any advice?

system-type calculated from ModelName in Smbios section of your config.plist.

Set all to default and be happy.

 

PS. I don't use ssdtprgen

Share this post


Link to post
Share on other sites

@Slice
 

@Slice can you add the 9500controller in ATI.h and ATI.c with related Framebuffers? Please :)

Kext /System/Library/Extensions/AMD9500Controller.kext/Contents/MacOS/AMD9500Controller
Personality: Exmoor
ConnectorInfo count in decimal: 6
Disk offset in decimal 1892144
0000000 02 00 00 00 00 01 00 00 00 01 01 51 00 00 00 00 22 05 02 04 00 00 00 00
0000024 02 00 00 00 00 01 00 00 00 01 02 61 01 00 00 00 12 04 01 03 00 00 00 00
0000048 00 04 00 00 04 03 00 00 00 01 03 43 00 00 00 00 11 02 03 01 00 00 00 00
0000072 00 04 00 00 00 01 00 00 00 01 04 31 00 00 00 00 21 03 05 05 00 00 00 00
0000096 00 04 00 00 04 03 00 00 00 01 05 23 00 00 00 00 10 00 04 02 00 00 00 00
0000120 00 04 00 00 00 01 00 00 00 01 06 11 00 00 00 00 20 01 05 05 00 00 00 00
0000144
Personality: Berbice
ConnectorInfo count in decimal: 5
Disk offset in decimal 1892288
0000000 02 00 00 00 00 01 00 00 39 05 01 08 00 00 00 00 20 01 01 01 00 00 00 00
0000024 00 04 00 00 00 01 00 00 00 01 02 43 00 00 00 00 10 00 02 02 00 00 00 00
0000048 00 04 00 00 04 03 00 00 00 01 03 13 00 00 00 00 21 03 03 03 00 00 00 00
0000072 00 04 00 00 04 03 00 00 00 01 04 53 00 00 00 00 11 02 04 04 00 00 00 00
0000096 00 04 00 00 04 03 00 00 00 01 05 33 00 00 00 00 12 04 05 05 00 00 00 00
0000120
Personality: Elqui
ConnectorInfo count in decimal: 5
Disk offset in decimal 1892416
0000000 02 00 00 00 00 01 00 00 00 01 01 41 00 00 00 00 11 02 02 04 00 00 00 00
0000024 02 00 00 00 00 01 00 00 00 01 02 31 01 00 00 00 21 03 01 03 00 00 00 00
0000048 00 04 00 00 04 03 00 00 00 01 03 03 00 00 00 00 20 01 03 01 00 00 00 00
0000072 00 04 00 00 04 03 00 00 00 01 04 03 00 00 00 00 12 04 04 02 00 00 00 00
0000096 00 04 00 00 04 03 00 00 00 01 05 01 00 00 00 00 10 00 05 05 00 00 00 00
0000120
Personality: Acre
ConnectorInfo count in decimal: 3
Disk offset in decimal 1892640
0000000 00 04 00 00 04 03 00 00 00 01 01 01 00 00 00 00 11 02 02 01 00 00 00 00
0000024 00 08 00 00 04 02 00 00 00 01 02 00 00 00 00 00 21 03 05 04 00 00 00 00
0000048 04 00 00 00 04 02 00 00 00 01 03 00 00 00 00 00 00 00 03 05 00 00 00 00
0000072
Personality: Caroni
ConnectorInfo count in decimal: 5
Disk offset in decimal 1892832
0000000 02 00 00 00 00 01 00 00 00 01 01 41 00 00 00 00 11 02 02 04 00 00 00 00
0000024 02 00 00 00 00 01 00 00 00 01 02 31 01 00 00 00 21 03 01 03 00 00 00 00
0000048 00 04 00 00 04 03 00 00 00 01 03 03 00 00 00 00 20 01 03 01 00 00 00 00
0000072 00 04 00 00 04 03 00 00 00 01 04 03 00 00 00 00 12 04 04 02 00 00 00 00
0000096 00 04 00 00 04 03 00 00 00 01 05 01 00 00 00 00 10 00 05 05 00 00 00 00
0000120
Personality: Florin
ConnectorInfo count in decimal: 6
Disk offset in decimal 1893056
0000000 02 00 00 00 00 01 00 00 00 01 01 41 00 00 00 00 11 02 02 04 00 00 00 00
0000024 02 00 00 00 00 01 00 00 00 01 02 31 01 00 00 00 21 03 01 03 00 00 00 00
0000048 00 04 00 00 04 03 00 00 00 01 03 13 00 00 00 00 20 01 03 01 00 00 00 00
0000072 00 04 00 00 04 03 00 00 00 01 04 21 00 00 00 00 10 00 05 05 00 00 00 00
0000096 00 04 00 00 04 03 00 00 00 01 05 53 00 00 00 00 22 05 04 02 00 00 00 00
0000120 00 04 00 00 04 03 00 00 00 01 06 61 00 00 00 00 12 04 06 06 00 00 00 00
0000144
Personality: Guariba
ConnectorInfo count in decimal: 6
Disk offset in decimal 1893232
0000000 00 04 00 00 04 03 00 00 00 01 01 01 00 00 00 00 12 04 06 01 00 00 00 00
0000024 00 04 00 00 04 03 00 00 00 01 02 01 00 00 00 00 22 05 04 03 00 00 00 00
0000048 00 04 00 00 04 03 00 00 00 01 03 01 00 00 00 00 11 02 01 02 00 00 00 00
0000072 00 08 00 00 04 02 00 00 00 01 04 00 00 00 00 00 21 03 05 04 00 00 00 00
0000096 04 00 00 00 04 02 00 00 00 01 05 00 00 00 00 00 00 00 03 06 00 00 00 00
0000120 00 04 00 00 00 01 00 00 00 01 06 01 00 00 00 00 20 01 02 05 00 00 00 00
0000144
Personality: Dayman
ConnectorInfo count in decimal: 6
Disk offset in decimal 1893376
0000000 00 04 00 00 04 03 00 00 00 01 01 01 00 00 00 00 12 04 06 01 00 00 00 00
0000024 00 04 00 00 04 03 00 00 00 01 02 01 00 00 00 00 22 05 04 03 00 00 00 00
0000048 00 04 00 00 04 03 00 00 00 01 03 01 00 00 00 00 11 02 01 02 00 00 00 00
0000072 00 08 00 00 04 02 00 00 00 01 04 00 00 00 00 00 21 03 05 04 00 00 00 00
0000096 04 00 00 00 04 02 00 00 00 01 05 00 00 00 00 00 00 00 03 06 00 00 00 00
0000120 00 04 00 00 00 01 00 00 00 01 06 01 00 00 00 00 20 01 02 05 00 00 00 00
0000144
Personality: Baladi
ConnectorInfo count in decimal: 6
Disk offset in decimal 1893552
0000000 00 04 00 00 04 03 00 00 00 01 03 00 00 00 00 00 12 04 03 03 00 00 00 00
0000024 00 04 00 00 04 03 00 00 00 01 01 00 00 00 00 00 11 02 01 01 00 00 00 00
0000048 00 04 00 00 04 03 00 00 00 01 02 00 00 00 00 00 21 03 02 02 00 00 00 00
0000072 00 04 00 00 04 03 00 00 00 01 04 00 00 00 00 00 22 05 04 04 00 00 00 00
0000096 00 04 00 00 04 03 00 00 00 01 05 00 00 00 00 00 10 00 05 05 00 00 00 00
0000120 00 04 00 00 04 03 00 00 00 01 06 00 00 00 00 00 20 01 06 06 00 00 00 00
0000144
Personality: OPM
ConnectorInfo count in decimal: 5
Disk offset in decimal 1893696
0000000 00 04 00 00 04 03 00 00 00 00 00 01 00 00 00 00 11 02 02 02 00 00 00 00
0000024 00 04 00 00 04 03 00 00 00 00 00 01 00 00 00 00 21 03 03 03 00 00 00 00
0000048 00 04 00 00 04 03 00 00 00 00 00 01 00 00 00 00 12 04 01 01 00 00 00 00
0000072 00 04 00 00 04 03 00 00 00 00 00 01 00 00 00 00 10 00 04 04 00 00 00 00
0000096 00 04 00 00 04 03 00 00 00 00 00 01 00 00 00 00 20 01 05 05 00 00 00 00
0000120


gif-facteur-6.gif

Share this post


Link to post
Share on other sites

I know zero developers trying to understand a problem with some AMD CPU and some chipsets for AMD CPU.

I have no reports and logs about this.

Clover has detection for AMD CPU and uses MSR that is known to work with some AMD CPU. That's all I know about.

Slice,

 

i think, i might know where the problem is - see my Bootlog here:

5:426  0:000  Framebuffer @0xB0000000  MMIO @0xC0000000    I/O Port @0x0000E000 ROM Addr @0xDE740000
5:426  0:000  ATI card POSTed,
5:426  0:000  Set VRAM for Cedar+ = -1Mb        //<--- the value for VRAM readout is NOT correct
5:426  0:000  ATI: get_vram_size returned 0xFFF00000 //<---- but here the Value is correct, it is 4.096 dec.
5:426  0:000  ATI Radeon EVERGREEN family
5:426  0:000  Users config name Acre
5:426  0:000  Use # of ports setting from config.plist: 3
5:426  0:000  (AtiPorts) Nr of ports set to: 3
5:426  0:000  ATI Oland AMD Radeon RX460 -1MB (Acre) [1002:67EF] (subsys [174B:E344]):: PciRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0)
5:426  0:000  Intel Intel HD Graphics 530 [8086:1912] :: PciRoot(0x0)\Pci(0x2,0x0)
5:426  0:000  Intel GFX revision  =0x6
5:426  0:000   RCBA disabled; cannot use it
5:426  0:000  stringlength = 4500
5:426  0:000  CurrentMode: Width=3840 Height=2160
5:426  0:000  Beginning FSInjection
5:426  0:000  Blocking kext caches

might have something to do with this code-snippet within "ATI.c" file here:

//  size in MB on evergreen
//  XXX watch for overflow!!!

    card->vram_size = ((UINT64)REG32(card->mmio, R600_CONFIG_MEMSIZE)) << 20;  //<--- this is the part to readout cards VRAM-size, if no Value for VRAM was set within config.plist
    DBG("Set VRAM for Cedar+ = %dMb\n", (INTN)RShiftU64(card->vram_size, 20));
    } else if (chip_family >= CHIP_FAMILY_R600) {
            card->vram_size = REG32(card->mmio, R600_CONFIG_MEMSIZE);
    } else {
      card->vram_size = REG32(card->mmio, RADEON_CONFIG_MEMSIZE);
      if (card->vram_size == 0) {
        card->vram_size = REG32(card->mmio, RADEON_CONFIG_APER_SIZE);

//  Slice - previously I successfully made Radeon9000 working
//  by writing this register
    
          WRITEREG32(card->mmio, RADEON_CONFIG_MEMSIZE, (UINT32)card->vram_size);
      }
    }
  }
  gSettings.VRAM = card->vram_size;
  DBG("ATI: get_vram_size returned 0x%x\n", card->vram_size);  //<--- and this is the part for correct VRAM size in Bootlog
}

tested it just with an installed RADEON RX460.

i might could test this part also with an installed R9 280x, to see, if VRAM size gets read out correctly with such an installed card <--- if this would be helpfull.

 

If card->vram_size really gets just "-1MB" that might be the problem, why system does not get loaded after verbose boot, cause OS X > 10.9 needs at least more memory than just a minimum of 128MB VRAM.

But please get noticed, that this is just some thoughts, cause i am NO coder - but i can read and compare  ;-) You might give it a try... your choice.

 

EDIT#1:

This is Bootlog with R9 280x installed as main GFX:

7:230  0:000  Framebuffer @0xB0000000  MMIO @0xDE900000    I/O Port @0x0000E000 ROM Addr @0xDE940000
7:230  0:000  ATI card POSTed,
7:230  0:000  Set VRAM for Cedar+ = 3072Mb  //<--- see here, this time VRAM size was correct detected
7:230  0:000  ATI: get_vram_size returned 0xC0000000  //<--- also here correct VRAM size value
7:230  0:000  ATI Radeon EVERGREEN family
7:230  0:000  Users config name Junsai
7:230  0:000  Use # of ports setting from config.plist: 5
7:230  0:000  (AtiPorts) Nr of ports set to: 5
7:230  0:000  ATI Tahiti AMD Radeon HD 7970X/8970/R9 280X 3072MB (Junsai) [1002:6798] (subsys [174B:3000]):: PciRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0)
7:230  0:000   RCBA disabled; cannot use it

so i think, the code has to be modified in some way to get the correct VRAM size from newer cards (like cards with TONGA chipset or newer).

 

EDIT#2:

 

this is Bootlog output when using

		<key>VRAM</key>
		<integer>4096</integer>

within config.plist to determine VRAM size:

12:046  0:000  Framebuffer @0xB0000000  MMIO @0xC0000000    I/O Port @0x0000E000 ROM Addr @0xDE740000
12:046  0:000  ATI card POSTed,
12:046  0:000  Set VRAM from config = 4096Mb  // <--- correct, cause provided by config.plist
12:046  0:000  ATI: get_vram_size returned 0x0  // <--- incorrect, cause code will be ignored (through if...then...else), if VRAM size was set by config.plist
12:046  0:000  ATI Radeon EVERGREEN family
12:046  0:000  Users config name Acre
12:046  0:000  Use # of ports setting from config.plist: 3
12:046  0:000  (AtiPorts) Nr of ports set to: 3
12:046  0:000  ATI Oland AMD Radeon RX460 4096MB (Acre) [1002:67EF] (subsys [174B:E344]):: PciRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0)
12:046  0:000  Intel Intel HD Graphics 530 [8086:1912] :: PciRoot(0x0)\Pci(0x2,0x0)
12:046  0:000  Intel GFX revision  =0x6

Attached you will find the "ati.c" and "ati.h" files, which i i have expanded to contain BAFFIN and ELLESMERE code snippets:

expanded "ati.h" with:

    /* Arctic Islands */    
    CHIP_FAMILY_ELLESMERE, /* Polaris 10 */
    CHIP_FAMILY_BAFFIN,   /* Polaris 11 */
    CHIP_FAMILY_LAST

and

    /* AMD9500Controller */
    kBarbice,
    kElqui,
    kAcre,
    kCaroni,
    kFlorin,
    kGuariba,
    kDayman,
    kCfgEnd

and "ati.c" with:

    /* AMD9500Controller */
    {"Exmoor",    6},
    {"Barbice",   5},
    {"Elqui",     5},
    {"Acre",      3},
    {"Caroni",    5},
    {"Florin",    6},
    {"Guariba",   6},
    {"Dayman",    6},
    {"Baladi",    6},
    {"OPM",       5},

and (in parts)

//  ELLESMERE Polaris 10

    { 0x67C0,    0x00000000, CHIP_FAMILY_ELLESMERE,    "AMD Radeon Polaris 10",    kNull    },
    { 0x67DF,    0x00000000, CHIP_FAMILY_ELLESMERE,    "AMD Radeon RX480",         kNull    },

//  BAFFIN Polaris 11

    { 0x67E0,    0x00000000, CHIP_FAMILY_BAFFIN,    "AMD Radeon Polaris 11",        kNull    },
    { 0x67E1,    0x00000000, CHIP_FAMILY_BAFFIN,    "AMD Radeon Polaris 11",        kNull    },
    { 0x67E8,    0x00000000, CHIP_FAMILY_BAFFIN,    "AMD Radeon Polaris 11",        kNull    },
    { 0x67E9,    0x00000000, CHIP_FAMILY_BAFFIN,    "AMD Radeon Polaris 11",        kNull    },
    { 0x67EB,    0x00000000, CHIP_FAMILY_BAFFIN,    "AMD Radeon Polaris 11",        kNull    },
    { 0x67EF,    0x00000000, CHIP_FAMILY_BAFFIN,    "AMD Radeon RX460",             kAcre    },
    { 0x67FF,    0x00000000, CHIP_FAMILY_BAFFIN,    "AMD Radeon Polaris 11",        kNull    },

also i "cleaned" it a little bit to have a better overview:

Bildschirmfoto2016-11-05um18.01.17.png

Bildschirmfoto2016-11-05um18.03.31.png

Bildschirmfoto2016-11-05um18.03.54.png

and just to be sure: i did NOT change any existing part* or removed any outcommented parts.

 

* except this line:

    { 0x67EF,    0x00000000, CHIP_FAMILY_BAFFIN,    "AMD Radeon RX460",             kAcre    },  //changed "kNULL" to "kAcre" as standard FB for RX460

ati_files_clover.zip

Share this post


Link to post
Share on other sites

About VRAM size problem above <--- i fixed it by changing one line:

//  size in MB on evergreen
//  XXX watch for overflow!!!


//  card->vram_size = ((UINT64)REG32(card->mmio, R600_CONFIG_MEMSIZE)) << 20;   // <--- changed THIS line
    card->vram_size = IoRead32(R600_CONFIG_MEMSIZE) << 20;                      // <--- into THIS line
    DBG("Set VRAM for Cedar+ = %dMb\n", (INTN)RShiftU64(card->vram_size, 20));
    } else if (chip_family <= CHIP_FAMILY_R600) {
            card->vram_size = REG32(card->mmio, R600_CONFIG_MEMSIZE);
    } else {
      card->vram_size = REG32(card->mmio, RADEON_CONFIG_MEMSIZE);
      if (card->vram_size == 0) {
        card->vram_size = REG32(card->mmio, RADEON_CONFIG_APER_SIZE);

//  Slice - previously I successfully made Radeon9000 working
//  by writing this register

and now my Bootlog looks like this:

2:831  0:000  Framebuffer @0xB0000000  MMIO @0xC0000000    I/O Port @0x0000E000 ROM Addr @0xDE740000
2:831  0:000  ATI card POSTed,
2:831  0:000  Set VRAM for Cedar+ = 4095Mb             // <--- correct detected VRAM size here
2:831  0:000  ATI: get_vram_size returned 0xFFF00000   // <--- and here
2:831  0:000  Found generic VBIOS ROM file (1002_67EF.rom)
2:833  0:001  Loaded ROM len=262144
2:833  0:000  Calculated ROM len=58368
2:833  0:000  VideoBIOS read from file
2:833  0:000  ATI Radeon EVERGREEN family
2:833  0:000  Users config name Acre
2:833  0:000  Use # of ports setting from config.plist: 3
2:833  0:000  (AtiPorts) Nr of ports set to: 3
2:833  0:000  ATI Oland AMD Radeon RX460 4095MB (Acre) [1002:67EF] (subsys [174B:E344]):: PciRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0)

I know, it may NOT be the best way to fix it, but ONE way, and for me it works. Maybe someone of the PROs find a better way. Anyway... this change just fixed the VRAM size problem,

NOT the blacksreen after verbose boot with RADEON RX460.

Sorry, was hoping, too , that it may also fix the "blackscreen" problem.

Share this post


Link to post
Share on other sites

Slice I have a real Mac Pro 5,1 and able to do any test you may need to fix this gpu issue that everyone seems to be having, I have 7970, 290X and RX 480 to test if needed. Just let me know what you need

Share this post


Link to post
Share on other sites

About VRAM size problem above

Sorry, was hoping, too , that it may also fix the "blackscreen" problem.

Hi Mork von Ork

 

just to be sure that I understand what you are try to do... (I try to help)

(PS I don't have this hardware... I mean ATi/AMD to test myself...)

 

So...

I use the latest Clover 3905 sources with the ATI changes that I post few "post" ago with you tiny change of today...

... with respect of your change made yesterday there is some duplicated in the card_configs...

 

can you test this? (pls the logs are very useful)

 

-> removed... new one in the next post

 

also... one things... are you using a FAKE id? (maybe I lost where you mention it...)

but looking at you output I see this

2:833  0:000  ATI Oland AMD Radeon RX460 4095MB (Acre) [1002:67EF] (subsys [174B:E344]):: PciRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0)

Oland?????

 

the oland card we have in the source are this:

 

 

 
  // OLAND
  
  // Oland: R7-240, 250  - Southand Island
  { 0x6600, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon HD 8600/8700M", kNull       }, // Mobile
  { 0x6601, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon HD 8500/8700M", kNull       }, // Mobile
  // { 0x6602, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon",           kNull       }, // Mobile
  // { 0x6603, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon",           kNull       }, // Mobile
  { 0x6604, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon R7 M265",       kNull       }, // Mobile
  { 0x6605, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon R7 M260",       kNull       }, // Mobile
  { 0x6606, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon HD 8790M",      kNull       }, // Mobile
  { 0x6607, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon R5 M240",       kNull       }, // Mobile
  { 0x6608, 0x00000000, CHIP_FAMILY_OLAND, "AMD FirePro W2100",        kNull       },
  { 0x6610, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon R7 250",        kFutomaki },
  { 0x6611, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon R7 340 Series", kNull       },
  { 0x6613, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon R7 240",        kFutomaki },
  // { 0x6620, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon",           kNull       }, // Mobile
  // { 0x6621, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon",           kNull       }, // Mobile
  // { 0x6623, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon",           kNull       }, // Mobile
  // { 0x6631, 0x00000000, CHIP_FAMILY_OLAND, "AMD Radeon",           kNull       },
 

 

 

 

ErmaC

Share this post


Link to post
Share on other sites

@ErmaC

 

same effect: no initialization of RX460 w/o helper card (IGPU in my case). Still boots to BlackScreen after verbose boot.

 

but now ELLESMERE gets detected correctly in BootLog:

4:806  0:000  Framebuffer @0xB0000000  MMIO @0xC0000000    I/O Port @0x0000E000 ROM Addr @0xDE740000
4:806  0:000  ATI card POSTed,
4:806  0:000  Set VRAM for Cedar+ =4095Mb
4:806  0:000  ATI: get_vram_size returned 0xFFF00000
4:806  0:000  ATI Radeon EVERGREEN family
4:806  0:000  Users config name Acre
4:806  0:000   use N ports setting from config.plist: 3
4:806  0:000  (AtiPorts) Nr of ports set to: 3
4:806  0:000  ATI Ellesmere AMD Radeon RX460 4095MB (Acre) [1002:67EF] (subsys [174B:E344]):: PciRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0)

Have to check one of my files: ati.c or ati.h for that OLAND output.

No FakeID here - i completly let CLOVER detect device-id, vendor-id and subsystem-id:

Bildschirmfoto2016-11-06um19.02.55.png

see "Arbitrary" is outcommented, so that old "inject"-Method should work.

Share this post


Link to post
Share on other sites
4:806  0:000  Users config name Acre
4:806  0:000   use N ports setting from config.plist: 3
4:806  0:000  (AtiPorts) Nr of ports set to: 3
4:806  0:000  ATI Ellesmere AMD Radeon RX460 4095MB (Acre) [1002:67EF] (subsys [174B:E344]):: PciRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0)

 

pls try also removing the port number in config.plist

because ithe "logic" automatically set the number of port to 3 (acre =3)

 { 0x67EF, 0x00000000, CHIP_FAMILY_BAFFIN, "AMD Radeon RX460",             kAcre },

your device have already set the correct number of port (so no need to set it in the config)

{"Acre", 3},

but now ELLESMERE gets detected correctly in BootLog:

 

I made some error...

yep ELLESMERE is now detect but your card is a BAFFIN...

 

I will check the list probably I forgot some CHIP_FAMILY...

 

EDIT:

YES I forgot to add a family chip...

this one is correct. (I mean the chip family for your card)

-> removed new one posted

ErmaC

Share this post


Link to post
Share on other sites

@Ermac

Bios setting: primary PCIe

With FakeID

Black screen again... :(  :wallbash:

 

Test RX-480

 

@gengik84

 

I only try to fix the memory size and chip family (+ port number)

set the primary GFX is another story for now...

 

In the same way as Mork vom Ork set your gfx card in a way where you are able to boot and post the logs

 

ErmaC 

Share this post


Link to post
Share on other sites

@ErmaC:

 

removed the entry for "VideoPorts" in config.plist. <--- but CLOVER still defaults to 6 ports for the RX460 (which only have 3 ports: DP, HDMI and DVI).

All other values have been detected as expected so far, even "CHIP_FAMILY_BAFFIN" :thumbsup_anim:

 

About the Portdetection ithink we have to look at this part of the code:

//  use cfg_name on radeon_cards, to retrive the default name from card_configs,
        card->cfg_name = card_configs[card->info->cfg_name].name;
        n_ports = card_configs[card->info->cfg_name].ports;        // <--- # of ports declared here (declared through  detection?)
        
//  which means one of the fb's or kNull
        DBG("Framebuffer set to device's default: %a\n", card->cfg_name);
    DBG(" N ports defaults to %d\n", n_ports);
  }
 
  if (gSettings.VideoPorts != 0) {                                  // <--- part, when # of Ports provided by config.plist
    n_ports = gSettings.VideoPorts;
    DBG("Use # of ports setting from config.plist: %d\n", n_ports);
  }
 
    if (n_ports > 0) {                                              // <--- part, when # of Ports NOT provided by config.plist, then try to detect through CLOVER
        card->ports = (UINT8)n_ports; // use it.
        DBG("(AtiPorts) Nr of ports set to: %d\n", card->ports);
  } else {
    
//      if (card->cfg_name > 0) // do we want 0 ports if fb is kNull or mistyped ?
//      else, match cfg_name with card_configs list and retrive default nr of ports.
        for (i = 0; i < kCfgEnd; i++) {
            if (AsciiStrCmp(card->cfg_name, card_configs[i].name) == 0) {
                card->ports = card_configs[i].ports; // default
      }
    }
        
        DBG("Nr of ports set to framebuffer's default: %d\n", card->ports);
    }
 
  if (card->ports == 0) {
    card->ports = 2; //real minimum
    DBG("Nr of ports set to min: %d\n", card->ports);
  }

Share this post


Link to post
Share on other sites

removed the entry for "VideoPorts" in config.plist.

All other values have been detected as expected so far, even "CHIP_FAMILY_BAFFIN" :thumbsup_anim:

remove also "FB Name" entry if it is not empty.

of course this also is important no 'missed' value have to interfere...

 

Can you post the log with this?

 

-> CLOVER_3905_ATI_V4.zip

 

setting in config and w/o setting in config..

 

pls

 

ErmaC

Share this post


Link to post
Share on other sites

next problem here:

even i have set ACRE to be RX460's default Framebuffer

    { 0x67EF,    0x00000000, CHIP_FAMILY_BAFFIN,    "AMD Radeon RX460",             kAcre    },

CLOVER allways sets LABRADOR as default framebuffer if i don't provide a Framebuffer via Config.plist. That's why my default # of Ports allways get set to "6" instead of "3" ("6" is default value for LABRADOR)

 

@ErmaC

testing now your files with values provided by config.plist and w/o providing values via config.plist. I'll be back in couple of minutes to report...

 

EDIT#1:

WOW, i am impressed, all values correct w/o providing them via config.plist (CLOVER detected them all correct):

20:107  0:000  Framebuffer @0xB0000000  MMIO @0xC0000000    I/O Port @0x0000E000 ROM Addr @0xDE740000
20:107  0:000  ATI card POSTed,
20:107  0:000  Set VRAM for Baffin =4095Mb
20:107  0:000  ATI: get_vram_size returned 0xFFF00000
20:107  0:000  ATI Radeon EVERGREEN family
20:107  0:000  Framebuffer set to device's default: Acre
20:107  0:000   N ports defaults to 3
20:107  0:000  (AtiPorts) Nr of ports set to: 3
20:107  0:000  ATI Baffin AMD Radeon RX460 4095MB (Acre) [1002:67EF] (subsys [174B:E344]):: PciRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0)

CONGRATULATIONS!

Share this post


Link to post
Share on other sites

Got good news and got bad news!

 

Good News: we don't need to provide Framebuffername and # of VideoPorts anymore through config.plist for RX460 now, cause CLOVER detects them itself.

 

Bad News: still need Helpergpu like IGPU to get RX460 working. W/o HelperGPU i still get BlackScreen after verbose boot. :(  But i think, we might get closer to solve this finally.

 

@ErmaC:

 

would you please provide me with your "ati.c" and "ati.h" files - so i can update my versions of the file? Would make me happy...

Share this post


Link to post
Share on other sites

@ErmaC:

 

would you please provide me with your "ati.c" and "ati.h" files - so i can update my versions of the file? Would make me happy...

Hi...

No problem I will post it in the patch section of clover....

 

just let me write some info about what is what.... so then the changes will be avaiable for all..

 

ErmaC

 

EDIT: done

Share this post


Link to post
Share on other sites

With all the above applied patches and some cosmetical corrections, my bootlog for Radeon RX460 now looks like this:

4:883  0:000  Framebuffer @0xB0000000 • MMIO @0xC0000000 • I/O Port @0x0000E000 • ROM Addr @0xDE740000
4:883  0:000  ATI card POSTed
4:883  0:000  Set VRAM for Cedar+ to 4095Mb
4:883  0:000  ATI get_vram_size returned: 0xFFF00000
4:883  0:000  ATI Radeon EVERGREEN family
4:883  0:000  Devices default Framebuffer: Acre
4:883  0:000  Default Nr. of ports: 3
4:883  0:000  (AtiPorts) Nr. of ports: 3
4:883  0:000  ATI CHIP FAMILY: Baffin • CARD NAME: AMD Radeon RX460 • VRAM: 4095MB • FRAMEBUFFER: Acre • VENDOR-/DEVICE-ID: 1002:67EF • SUBSYSTEM-ID: 174B:E344 • PciRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0)

by using these settings within my config.plist:

Bildschirmfoto2016-11-07um01.20.50.png

But remember: still have to use IGPU to get RX460 working.

Share this post


Link to post
Share on other sites

But remember: still have to use IGPU to get RX460 working.

Was it a Clover bug or the entire lineup of the new AMD cards are all like that ? I'm planning to get a RX470 soon, and if this problem can't be fixed in the near future i might refrain from getting it.

Also can Clover identify Haswell-E/Broadwell-E CPUs properly ? I have a setup at work running Sierra with Xeon E5-2683v3 and System Report shows it as Unknown ( even though many applications still see the name correctly ), which preventing me from installing Intel Power Gadget to check for speedstep. Tried FakeCPUID and manually injecting CPU type, doesn't work I'm an idiot for not researching enough, PikeRAlpha has a kernel patch to resolve this matter

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Coddyx
      Hi,
       
      I followed the AMD OSX Vanilla Guide and managed to successfully build my first hackingtosh.
      Everything works great EXCEPT for my MSI - Radeon RX 580 8 GB GAMING X.
      I ran some benchmarks (and tried World of Warcraft) and I am getting ~50% of the performance I am usually getting in Windows 10.
      Unigine Heaven reports ~950 vs 1750 in Windows and World of Warcraft runs @ 30 fps lowest settings vs 60 fps ultra settings in Windows.
       
      Here are the kexts I am using:
      AppleALC Lilu NullCPUPowerManagement RealtekRTL811 VirtualSMC WhateverGreen  
      I should mention that this is an AMD hackingtosh running on Ryzen 5 1600 3.2 GHz 6-Core Processor.
       
      I read and I completely understand that I should not expect 100% performance. But I believe a 50% drop is out of the ordinary.
       
      If anyone has ideas on what I could try to up the performance it would be greatly appreciated.
       
      Thank you!
       
       
    • By fusion71au
      Clover r4961 ISO compiled with GCC and minimal config.plist compatible for use in VMWare Workstation.
       
      Tested with unlocked Workstation 15 running OSX 10.9 -->10.14 guest in Windows X64 host.
       
      Installation
      1. Download and unzip "EFI_Clover_r4961 for VMware.zip". Mount Clover-v2.4k-4961-X64.iso by double clicking on it.
      2. Mount your VM's EFI System Partition eg in terminal
      sudo diskutil mount disk0s1   3. Copy EFI folder from step 1 into the EFI partition
      4. Shutdown the VM, add bios.bootDelay = "3000" to your VM's vmx file
      5. Reboot your VM, press <F2> to access the VMware Boot Manager and add CLOVERX64.efi to the boot menu.
       
      Substitute your own unique and valid MLB and ROM variables in the /EFI/CLOVER/config.plist (Rt Variables section) to activate iMessage/Facetime on your VM.
    • By gengik84
      Ciro82==>>Thanks
      Uno dei tre Requisiti:
      Hack funzionante Mac vero Macchina virtuale Impostazioni Bios per il boot:
      Cercate una voce  del tipo “Sata Mode”e settatela  in AHCI
      Secure Boot: disabilitare o altri sistemi operativi
      CSM: UEFI o LEGACY, oppure a secondo del tipo di installazione
      VT-x / VT-d disable
      *Nota: Secure boot e csm valido solo per bios UEFI
      Materiale Occorrente 
      "OS X (Versione App.Store)”
      USB 8GB  *nota: nel caso di usb superiori dovrà essere partizionata, in modo da avere una partizione su cui "lavoreremo,di questa dimensione
      ShowAllfiles 
      kext Wizard 
      Bootloader Clover_2.3k_r xxx:                   http: //sourceforge.n.../cloverefiboot/
      Clover Configurator:                                    http: //mackie100proj...a.org/download/
      FakeSmc.kext:                                            https://github.com/kozlek/HWSensors/releases
      In allegato,a fondo pagina troverete un "pacchetto" contenente : ShowAllfiles, Kext Wizard, FakeSmc.kext: 
      App alternative:
      ESP Mounter Pro: per montare la partizione EFI
      Vi illustrerò tre metodi per creare la usb, ma sono ben distinti… quindi usatene soltanto uno
      Metodo 1: “Install Mac_OS_X.command” Metodo 2: “Create Install Media di Apple” Metodo 3:  Metodo Manuale Alla fine delle preparazione dell’installer, tutti i metodi necessitano l’installazione del Bootloader Clover sulla a vostra USB.
      “CONDIZIONI OBBLIGATORIE”
      PUNTO 1: che la vostra usb sia stata preventivamente nominata USB (caratteri maiuscoli) Tabella di partizione GUID e la formattazione in  Mac esteso Journaled.
      PUNTO 2: che l’installer di OSX si trovi in Applicazioni
      Utility Disco 
      Selezionate la pendrive, andate su “partizione”, selezionate “1 partizione”, impostate Mac OS esteso journaled e date il nome USB, poi in basso cliccate su opzioni e scegliete Tabella partizione (GUID), poi “applica”.
      Immagine 
      Riporto nuovamente l’operazione sopra citata adoperando dal nuovo Utility Disco introdotto su El Capitan.
      Rimane ovviamente invariato nome della usb in ==>> USB (maiuscolo), la formattazione in Mac esteso Journaled e sia la mappa partizione in GUID
      Da utility disco selezionate la usb, cliccate su inizializza.
      dal menù a tendina scegliete la relative impostazioni
      Immagine  
      Procedura effettua da High Sierra è la stessa della precedente, l'unica attenzione e operazione da aggiungere in primis  è cliccare nel menù a tendina in alto sulla sinistra di utility disco e selezionare "mostra tutti i dispositivi"
      Immagine 
       
      =====================
        METODO 1: "Install_Mac_OS_X.Command" Lo script che trovate allegato in fondo alla guida permette la creazione dell’installer in maniera automatica
      Include la possibilità di scelta di tre versioni di osx
      Yosemite El Capitan Sierra Il risultato finale è come quello del metodo "manuale" descritto nella guida, per cui l'installazione avverrà in un solo passaggio, non in due come con il metodo createinstallmedia. 
      Offre inoltre la possibilità di inserire un kernel patchato, utile, per esempio, per chi usa AMD.
      Rimane invariato il nome dato alla usb in USB, mappa partizione e tipo di formattazione
      Se la vostra usb non sarà rinominata nel modo corretto, verrete avvisati dal terminale, quindi non dovrete far altro che apportare la relativa modifica e rilanciare nuovamente lo script
      Esempio
      ===========================
      Metodo 2 
      L'intento è quello di usare la procedura fornitaci direttamente da Apple, "createinstallmedia", introdotta  con Mavericks. 
      Tale metodo prevede l’uso del terminale che via via se ne sta perdendo il “valore e l’uso”
      Inizialmente per i neofiti potrà sembrare problematico ma alla fine non è così.
      Durante il post installazione alcune operazioni ne richiedono l’ uso.
      Perciò mi sono chiesto perchè, qualora uno volesse, non far conoscere da subito un po’ questo “strumento”???
      Per favorirvi vi ho allegato i comandi già  “pronti”, i quali li potrete copiare ed incollare sul terminale.
      A questo punto aprite il terminale, copiate ed incollate il comando sottostante e premete invio, digitate la vostra password e premete nuovamente invio.
      Comando per creare USB con Yosemite:
      sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction  
      Comando per creare USB con El Capitan
      sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction Comando per creare USB con Sierra 
      sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ macOS\ Sierra.app/ --nointeraction Per creare USB con Hight Sierra o Mojave usate --> C_I_M (aggiornato per 10.14)
       
      Funziona con il drag & drop sul terminale, in questo caso non vi è necessità che la usb sia nominata in un determinato modo ed essendo basato su create install media ovviamente funziona da 10.9 a 10.14.... 
      BENE…IL PROCESSO DI CREAZIONE E’ INIZIATO…
      AVREMO CIRCA 20/30 MINUTI DI TEMPO LIBERO A CUI DEDICARSI A CIO’ CHE VOGLIAMO………………………………………..  
      COLGO L’OCCASIONE PER FARVI NOTARE LA VELOCITA’ E LA SICUREZZA DI QUESTO METODO
      CONFRONTATE QUESTO CON IL TERZO METODO E NOTERETE CHE CON UN SOLO PASSAGGIO, OSSIA IL COMANDO DATO AL TERMINALE, FACCIAMO IN UNA SINGOLA OPERAZIONE TUTTI I VARI STEP DESCRITTI SULL’ ALTRO METODO.
      DETTO QUESTO, MOLTO IMPORTANTE E’ SOTTOLINEARE CHE COSI’ FACENDO EVITEREMO ERRORI  DI DISTRAZIONE RIGUARDO AI PASSAGGI O FRAINTENDIMENTI.
      Immagine 
      Potete adesso passare ad installare il bootloader Clover sulla vostra usb.
      *NOTA*:
      Avendo usato questo metodo l'installazione si dividerà in due fasi, perciò dopo il primo riavvio e necessario far partire nuovamente l'installer, selezionare lo stesso disco senza formattarlo.
      Finita questa ulteriore fase , l'installazione sarà terminata
      =========================
      METODO "MANUALE"....  (lascio per futura memoria-Compatibile fino a 10.12)
      ==========================
      Bootloader
      **Nota:** Installazione in UEFI  dipenderà dalla scheda madre in vostro possesso, quindi se non supporta tale opzione , il bootloader dovrà essere installato in  modalità Legacy.
       Vi invito, qualora non sapeste questa informazione, a recarvi nel sito ufficiale del produttore e controllare le informazioni a riguardo
      Fatto questo dobbiamo installare  Clover sulla usb.
      A seconda del tipo di Bios o al tipo di installazione che vogliamo fare UEFI o Legacy avremo ovviamente configurazioni diverse in questa fase.
      Lanciate il pkg.
      Immagine 

       
      Cambiate la destinazione di installazione ad USB oppure Install Mac_OS_X (a secondo del tipo di creazione eseguita)
      Successivamente clicchiamo su "Ad Hoc"
      Per Installazione UEFI
      Mettete i flag   : Installazione solo per avvio UEFI
                               : installare Clover nella ESP
                               : Driver64UEFI  AptioMemory --> (consigliato) 
                               : Driver64UEFI  ApfsDriverLoader --> (consigliato) --> sostituisce l'uso del driver apfs.efi
                               : Selezionate l'altri driver come da successiva immagine,
       
      *Nota: Altri driver che si possono usare  al suo posto  sono:
       informazioni 
       
      Proseguite con l’installazione.
      Immagine 
      ** Ricordate che avrete accesso a questa cartella dopo aver montato la partizione EFI**
      ===========================
      Per installazione Legacy
      Immagine 
      ===========================
      Impostazione per config.plist:
      Con clover configurator “montate” la partizione EFI della usb.
      1) Per fare questo nel menù di sinistra, cliccate su “Mount EFI”
      2) individuate la partizione relativa alla vostra usb, a questo punto montiamo la relativa partizione EFI  selezionando l’apposito pulsante “Mount Partition”
      Immagine 
      3) Successivamente cliccate su “Open Partition”.. recatevi in EFI/Clover ed aprite il config.plist
      4) Sezione ACPI: Disabilitate tutti i fix sia del menù 1 che del menù 2
      Immagine 
      5) Sezione BOOT: Sole se si sta installando Yosemite mettete il flag su kext-dev-mode=1
      Immagine 
      6) Sezione RT Variables: Se si sta installando El Capitan oppure Sierra, aggiungere i valori: BooterConfig= 0x28, CsrActiveConfig= 0x67
      Immagine 
      7) Sezione System Parameters: Su inject kext mettete YES
      Immagine 
      ===========================
      Nota: Su El Capitan, è stato introdotto SIP (System Integrity Protection)
      Info:
      ===========================
      Recatevi in EFI/Clover/kext/10.x 
      X= alla versione di osx che state installando. Per esempio se installerete Yosemite dovrete recarvi nella cartella 10.10, con El Capitan in 10.11….ecc
      Se non ci fosse tale cartella, createla e nominatela voi a “modo”.
      Copiatevi all’interno FakeSmc.kext
      *Nota se venite già da altre vostre configurazioni, oltre kext sopra citato ,potete mettere gli altri necessari per il vostro hardware
      Stessa cosa se avete DSDT e/o SSDT potete copiarli in EFI/Clover/Acpi/Patched
      Immagine 
      
      Per High Sierra:
      Scaricare il driver apfs.efi a fine guida, collocarlo:
          --> EFI/clover/Driver64UEFI se stiamo usando UEFI
      --> EFI/Clover/Driver64 se stiamo usando Legacy
       
      Per chi volesse continuare ad usare HFS vi rimando a questo post:
        Come installare High Sierra in HFS direttamente dalla usb  
      Utenti Laptop:  Nel 99% è obbligatorio disattivare la grafica discreta Nvidia/Amd per installare questo nuovo osx
                                     Quindi aggiungete --> SSDT-Disable_DGPU.aml.zip
                                     in EFI/Clover/acpi/Patched della usb
      --------------------------------------------------------------------
      Per Mojave:
      Scaricare il driver apfs.efi per 10.14 a fine guida, collocarlo:
          --> EFI/clover/Driver64UEFI se stiamo usando UEFI
      --> EFI/Clover/Driver64 se stiamo usando Legacy
      Versione di clover non antecedente a V_4015
      Volete usare HFS?
      E' possibile fare un installazione diretta su altro disco o partizione, nel caso può essere usato anche per effettuare aggiornamenti...
      nel caso guardate...
       Mojave in HFS 
       Oppure direttamente da usb  
       
      Fatto questo avrete la vostra USB bootable per installare OSX.
      ………Non scordatevi Fakesmc.kext da mettere nella relativa cartella…. senza il quale non farete mai il Boot......
      *NOTA: se usato il terminale per la creazione della usb, l'installazione si dividerà in due fasi, perciò dopo il primo riavvio e necessario far partire nuovamente l'installer, selezionare lo stesso disco senza formattarlo.
      Finita questa ulteriore fase , l'installazione sarà terminata
      **NOTA** Se avete processori Broadwell,Skylake o Kabylake...usate FakeSmc.kext e relativi sensors che trovate all'interno del secondo pacchetto.. (potete usarlo anche sui precedenti senza problemi, essendo una versione più aggiornata ha ulteriore supporto per le cpu più recenti)
      Update: Fakesmc e sensors versione 6.26
      Post installazione... post #2           
       Buon Hack….. 
      Aggiornamento:Install_Mac_OS_X.command.zip (compatibile da 10.10 a 10.12)
      le info le trovate a questo post
      Ringrazio @Ciro82 che mi ha aiutato nel preparare questa guida.
      Pacchetto.zip
      Pacchetto-2.zip
      Pacchetto-Fake+Sensors 6.26.1440.zip
      C_I_M.zip
       
      apfs.efi-10.14-beta1_No_Log.zip





       

    • By kushwavez
      Acer Aspire V15 V5-591G - Mojave 10.14.5
       
      (Note: mine is 55TU version, but the bootpack will work fine with another versions of 591G, for example: V5-591G-71K2, -764Z, -59PU, etc.)
      Specifications:
      - Motherboard: USOPP_SLS (Skylake-H PCH)
      - BIOS:Insyde Corp. v 1.15
      - CPU:Intel Core i5-6300HQ 2.3 GHz (Skylake)
      - GPU: NVIDIA GeForce GTX 950M 2 GB (Optimus) & Intel HD Graphics 530
      - RAM:SK hynix 4 GB DDR4 (Later I bought + KINGSTON 4 GB) 2133 MHz
      - WiFi + Bluetooth:Qualcomm Atheros QCNFA344A 5 GHz (Later -> Broadcom BRCM94352Z M.2 5 GHz WiFi + 4.0 Bluetooth)
      - Audio:Realtek HD Audio: ALC 255 
      - Ethernet: Realtek RTL8168/8111
      - Card Reader:Realtek USB 2.0 Card Reader (USB2.0-CRW)
      - Webcam:HD Webcam
      - HDD:TOSHIBA MQ01ACF032 320 GB HDD
      - SSD:SPCC M.2 230 GB SSD
      - Display:1366x768 (15.6", Matte)
      - Battery: 6 cell 56Wh / 5040mAh
      - Connectors: 
      1x SD Card Reader 2x USB 3.0 (1x USB Charging), 1x USB 2.0 1x VGA 1x HDMI 1x 3.5mm microphone/audio combined jack connector 1x Ethernet (Rj-45) - Keyboard & Touchpad:Multi-Touch & Multi-gestures ELAN 501 Touchpad, Backlight Keyboard.
      Working:  
      - Wi-Fi (with BCM94352Z)
      - Bluetooth hand-off (With BCM94352Z)
      -Full Graphics enabled on HD 530: ig-platform-id: 0x191b0000 (HD 530 Mobile)
      - Display: if default colour profile is corrupted (blue is not actual blue but purplish) Use "Rec. ITU-R BT. 709-5" Color Profile (System Pref. -> Displays -> Color)
      -HDMI & VGA Outputs: AppleGraphicsDevicePolicy.kext Clover patch
      - Audio (ALC 255):(Internal Speakers, Internal Microphone, Headphone jack with AppleALC, ALCPlugFix -> layout-id=17)
      - Ethernet Realtek 8168/8111: RealtekRTL8111.kext
      - App Store, Messages, FaceTime, Siri, iCloud(native)
      - Integrated webcam(native)
      - 3.0 USB (native)
      - Touchpad and Keyboard(ELAN501): Fn keys are good, the weird thing is the Brightness key. On my keyboard it's Pause Break:Br-up, Fn+F12:Br-dwn-> To fix this try Karabiner (VoodoPS2Controller.kext), - for gestures try SmartTouchpad drivers
      - Battery info:Install ACPIBatteryManager.kext with Kext Utility or other installer.
      - Sleep Mode
      - SSD with TRIM enabled (to enable trim, open Terminal and write "sudo trimforce enable")
      Not working:
      - Original Wi-Fi (Qualcomm Atheros QCNFA344A):  unsupported, you need switch to BCM94352Z or just use a mini usb wifi dongle.
      - NVIDIA GeForce GTX 950M: Optimus not supported.
      - Card Reader: Unsupported -> Can't really fix because I don't have any SD Card at the moment, maybe can be fixed by adding Prod & Ven IDs to AppleStorageDevices.kext, I never used it anyway. name: "USB2.0-CRW" Prod ID: "0x0129" Ven ID: "0x0bda  (Realtek Semiconductor Corp.)"
      For Wi-Fi:
      - 1st method:You can choose an external USB wifi dongle (I used TP-Link Archer T1U (5GHz support), TP-Link has official macOS drivers, you just need to install it
      -2nd and I think the best method:Replace your M.2 Qualcomm Card with a compatible BCM94352Zcard (you will have hand-off Bluetooth too), just install the kexts (enabled with BrcmFirmwareData.kext, BrcmPatchRAM2.kext, FakePCIID.kext, FakePCIID_Broadcom_WiFi.kext, they're all in my attached zip). You could buy this card from ebay, aliexpress, or amazon
       
      Issues:
      - None
      BIOS Settings:
      - BIOS version 1.15 (irrelevant)
      - Secure Boot: Disabled
      - Touchpad: Advanced
      - Boot mode:UEFI
      Getting ready for Installation:
      - Download the install zip (bootpack & postinstall): Click here -> acer_aspire_v591g_installfiles.zip
      Installation:
      - Create an installer with any method you know (- Mac: createinstallmedia - Windows: Transmac, Vmware, Win32diskimager)
      - Copy my Clover folder to the USB's EFI folder
      - Boot with the Installer USB
      - If you stuck in boot, reboot and in the Clover bootloader select "config_debug.cfg" -> you'll have more informations about the freeze
       
      Please open the README.rtf in my install zip for more informations about the USB Installer & Post installation!
      If you have a single RAM and getting panic at boot, then you need to edit the "config.plist" with these (SMBIOS->after "Version 1.0"):
      ->Edit "Frequency" and "Size" to match your RAM values
      <key>Version</key> <string>1.0</string> <key>Memory</key> <dict> <key>Channels</key> <integer>1</integer> <key>SlotCount</key> <integer>1</integer> <key>Modules</key> <array> <dict> <key>Slot</key> <integer>0</integer> <key>Size</key> <integer>8192</integer> <key>Frequency</key> <integer>2133</integer> <key>Type</key> <string>DDR4</string> </dict> </array> </dict> </dict>  
      PowerManagement  fix:
      Set HWPEnable=YES in Clover (already set), CPUFloor to "700", Frequency to "2300" and "3200"(Normal and Turbo, if you have i7-6700HQ version then it should be "2600", "3500") and "FrequencyVectors" from "0x0d000000" to "0x07000000" in "S/L/E/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/Resources/Mac-A5C67F76ED83108C.plist", MSR _xcpm_idle Patch to KernelToPatch in Clover (If you have High Sierra, change "MatchOS" to 10.13):

      <key>KernelToPatch</key> <array> <dict> <key>Comment</key> <string>MSR 0xE2 _xcpm_idle instant reboot(c) Pike R. Alpha</string> <key>Disabled</key> <false/> <key>Find</key> <data> ILniAAAADzA= </data> <key>MatchOS</key> <string>10.14</string> <key>Replace</key> <data> ILniAAAAkJA= </data> </dict> </array> Reboot, and it's 800MHz in idle state, same on Windows.
       

       
      Elan SmartTouchpad
      I only use scrolling, one-, double- & tripletap
      If you want to try other gestures go to this link for more informations, options (v4.7 beta 5) ->  DETAILS ABOUT THE SMART TOUCHPAD DRIVER FEATURES
      Fn Brightness keys not working with this, tried several things without success. With VoodoPS2Controller it's working, but you'll have no gestures (neither scrolling).
       
       
      Before updating to a new version of Mojave please update kexts (and clover if necessary) to newer versions to avoid kernel panics.
      Generate a serial number with Clover Configurator.app (open up your config.plist with CC then -> SMBIOS -> Serial Number -> Generate New)
       
      Mojave & Windows 10 Dual-Boot:
      Dual-boot clean install (on one drive), UEFI Only:
       
       Boot into your Mac installer, Create 2 partitions in GUID table (1 for Win (I used FAT32 but I think it doesn't matter what you choose), 1 for Mac),   Install Mac, boot with your USB, mount your EFI partition (use terminal or an EFI mounter app), create an EFI folder (if there is no folder), copy the CLOVER folder I attached to the EFI folder, restart,  Boot into your Win installer, Format the partition you created for Win, install.   Now, it's automatically booting into Windows. To use Clover open cmd in administrator, type:  bcdedit /set {bootmgr} path \EFI\CLOVER\CLOVERX64.efi       5.  You're done! It will booting into Clover when you start the system, and you can select Win or Mac (or another OS if installed on a 3rd partition).
       
      Dual-boot with Windows installed first (on one drive), UEFI Only:
      If you already have Windows and you don't want to lose all your data there is a hope:
      I created a video from this restore method: [Hackintosh] Dual-Boot High Sierra & Windows - when Windows already installed - no data waste - UEFI
      You need bootable Mac Installer and a full system restore image (link is in my video's description).
      (You may see errors if your EFI partition is not 200 MB)
       Boot into your Windows, resize your partition or create one for Mac.  Boot into your Mac installer and in Disk Utility format the partition you created.  Restore from image: select your full system restore image.  When it's finished restoring you just need to restart, then boot to the system with your usb.  When you successfully booted to Mac desktop, mount your EFI partition (use terminal or an EFI mounter app), open EFI, you will see there is a Microsoft folder already (don't touch that!). Copy my CLOVER folder to the EFI folder then Restart.  Now, it's automatically booting into Windows. To use Clover open cmd in administrator, type:  bcdedit /set {bootmgr} path \EFI\CLOVER\CLOVERX64.efi       7.  You're done! You can select your old Windows and your new macOS!
      (Only tried with Windows 8/8.1/10. I don't know Windows 7,etc.)
       
      IF YOU GETTING ERRORS DURING MAC RESTORE:
      - Make sure you have partitions in GPT
      - Windows using 100 MB EFI and will annoy the Mac restore. Don't worry, just ignore the errors.
       
      IF YOU GETTING ERRORS DURING WINDOWS INSTALLATION (could not be formatted, etc):
      - Make sure you have GPT partitions, and GPT (UEFI) installer, also disconnect all external storage drives (except the installer USB)
       
      IF YOU USED RESTORE METHOD THEN CAN'T MOUNT YOUR EFI PARTITION (No EFI partition found):
      - It's because your EFI is not 200 MB or not an "Apple" original EFI,  but do not worry, try another EFI mounter, or mount from terminal (I used EFI mounter v3: Getting errors, but you can mount and use without problem)
      - You also could "mount" the EFI from Windows:
      1st method: open cmd in administrator mode and type:
      diskpart
      list vol (Now select the "System" volume,(FAT 32) For example I select 4)
      sel vol 4
      list part(Select System type partition, for example 2)
      sel part 2
      assign letter=b(This will "mount" your EFI partition)
      Open Explorer++ or TotalCommander in administrator mode to manage EFI
      remove letter=b (This will "unmount" your EFI)
      2nd method: open cmd in administrator mode and type:
      mountvol b: /s (This will mount your EFI)
      Open Explorer++ or TotalCommander in administrator mode to manage EFI
      mountvol b: /d (This will unmount your EFI)
      Thanks to all OSXLatitude members for helping me out! (Jake Lo, Hervé, Bronxteck, black.dragon74)!
      Notes:
      2019.06.05: Updated to 10.14.5 -> no problem when/after installing
      2019.04.25: Optimized touchpad scrolling -> updated install files
      2019.03.30: Fixed USB 3.0 ports, fixed Bluetooth crashes after sleep -> updated bootpack
      2019.03.28: Updated to 10.14.4. Unexpected crashes while updating to 10.14.4 -> fixed by updating Clover to the latest (v4910) version. Bluetooth crashes appeared -> fixed by downgraded Brcm*.kexts. Updated bootpack.
      2019.02.24: Bluetooth crashes after sleep -> fixed, updated bootpack. 
      2019.02.22: Updated to 10.14.3. Fixed HDMI Audio by installing "FakePCIID_Intel_HDMI_Audio.kext" -> fixed freezing during boot. Fixed brightness levels by installing "AppleBacklightFixup.kext". Also updated bootpack & postinstall zip down in attachments.
      2019.01.21: Removed FakeSMC.kext, SMCHelper-64.efi, replaced by VirtualSMC.kext, VirtualSMC.efi because I got random freezes when booting system (kextd stall[0], (120s): 'AppleACPICPU' -> CPU is at 100%, fans are spinning fast), also updated bootpack in the attachments "acer_aspire_v591g-55tu_clover.zip"-> Freeze continued, brought back FakeSMC, deleted VirtualSMC (caused BT crashes).
      2019.01.18: HDMI Audio is fixed, I didn't do anything HDMI Audio is not fixed, sometimes it worked but most likely not. (no idea why)
      2018.12.09: Updated to 10.14.2 -> did without any complication
      2018.11.28: Fixed combo-jack garbage sound output by installing ALCPlugFix and CodecCommander.kext
      2018.11.01: Updated to 10.14.1 -> HDMI & VGA ports are gone again. -> Fixed by "AppleIntelSKLGraphicsFramebuffer.kext" rollback from 10.14.
      2018.09.28: Updated to Mojave 10.14 -> Fixed HDMI & VGA Outputs by adding "AppleGraphicsDevicePolicy.kext" patches to config.plist, HDMI audio not working
×