Contribute
Register

[Guide] Generate SSDT For Coffee Lake CPU

Joined
Mar 22, 2015
Messages
16
Motherboard
Gigabyte Z370 Aorus Gaming 7
CPU
i7-8700k
Graphics
GTX 750 Ti
Mac
iMac
DOWNLOAD

ssdtPRGen.sh-coffee_lake.zip

Now you need to :
  1. Unzip ssdtPRGen.sh-coffee_lake.zip
  2. Rename the the unzipped folder ssdtPRGen.sh-coffee_lake to ssdtPRGen
  3. Move the renamed folder to ~/Library/
  4. This can be done in Terminal with these lines:

unzip -qu ~/Downloads/ssdtPRGen.sh-coffee_lake.zip -d ~/Library/
mv ~/Library/ssdtPRGen.sh-coffee_lake ~/Library/ssdtPRGen

Coffee Lake SSDT Generation
Now that it’s properly named you can return to the normal SSDT guide and complete it:

  1. Open Terminal
  2. Type & Enter cd ~/Library/ssdtPRGen into Terminal
  3. Put the first line into terminal if you are using a stock CPU and replace cpu_name placeholder with yours. If the CPU is overclocked in BIOS add the -turbo flag and its overclocked amount in MHz to to the end: Stock speeds: sudo sh ssdtPRGen.sh -p ‘cpu_name’
    BIOS Overclocked: sudo sh ssdtPRGen.sh -p ‘cpu_name’ -turbo XXXX

    Examples:

    sudo sh ssdtPRGen.sh -p 'i3-8100' (An i3-8100 @ stock speeds)
    sudo sh ssdtPRGen.sh -p 'i7-8700k' (An i7-8700k @ stock speeds)
    sudo sh ssdtPRGen.sh -p 'i7-8700k' -turbo 4800 (An i7-8700k @ 4.8GHz overclock)
  4. Type & Enter n to the question: Do you want to open ssdt.dsl (y/n)?
  5. Right-Click Finder App
  6. Select Go to Folder…
  7. Type ~/Library/ssdtPRGen/
  8. Click Go
  9. Open ssdtPRGen folder
  10. Copy ssdt.aml
  11. Mount EFI Partition
  12. Paste ssdt.aml in /Volumes/EFI/EFI/CLOVER/ACPI/patched/
  13. Restart Hackintosh
  14. Done.

    Credit ibash
Hey all, I cant complete step 3, as I keep getting
sudo: ssdtPRGen.sh: command not found

I running the following command,
sudo ssdtPRGen.sh -p ‘i7-8700k’

I tried without sudo and verified the file is .sh file is present along with all other unzipped contents. Any thoughts??
 
Joined
Mar 22, 2015
Messages
16
Motherboard
Gigabyte Z370 Aorus Gaming 7
CPU
i7-8700k
Graphics
GTX 750 Ti
Mac
iMac
I got the script to execute. For some reason, I am not able to execute it from my user/library directory. I just executed from my directory where I downloaded and unzipped.

Anyway, I now see this error

Code:
System information: Mac OS X 10.13.4 (17E202)
Brandstring: "Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz"

Override value: (-p) processor model, now using: i7-8700k!

Version: models.cfg v171 / Coffee Lake.cfg v196


Scope (_PR_) {430 bytes} with ACPI Processor declarations found in DSDT (ACPI 1.0 compliant)
Generating ssdt.dsl for a 'iMac17,1' with board-id [Mac-B809C3757DA9BB8D]
Intel i7-8700k processor [0x906EA] setup [0x0705]
With a maximum TDP of 95 Watt, as specified by Intel
Number logical CPU's: 12 (Core Frequency: 3700 MHz)
Number of Turbo States: 10 (3800-4700 MHz)
Number of P-States: 40 (800-4700 MHz)
Injected C-States for PR00 (C1,C3,C6,C7,C8,C9,C10)
Injected C-States for PR01 (C1,C2,C3,C6,C7)
Warning: 'cpu-type' may be set improperly (0x0705 instead of 0x1005)
     - Clover users should read https://clover-wiki.zetam.org/Configuration/CPU#cpu_type
Error: board-id [Mac-B809C3757DA9BB8D] not supported by Unknown – check SMBIOS data / use the -target option
board-id [Mac-B809C3757DA9BB8D] not supported by Unknown – check SMBIOS data / use the -target option

So I tried to use the -target option and it doesn't take.

ssdtPRGen.sh -p 'i7-8700k' -target 6





ssdtPRGen.sh v0.9 Copyright (c) 2011-2012 by † RevoGirl

v6.6 Copyright (c) 2013 by † Jeroen

v21.5 Copyright (c) 2013-2018 by Pike R. Alpha

-----------------------------------------------------------

Bugs > https://github.com/Piker-Alpha/ssdtPRGen.sh/issues <


System information: Mac OS X 10.13.4 (17E202)

Brandstring: "Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz"


Override value: (-p) processor model, now using: i7-8700k!


Error: 'BridgeType' must be 0, 1, 2 or 3 ... #I entered 6 since the help menu says 6 = coffeelake

Aborting ...

Done.



Any thoughts?
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,974
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hey all, I cant complete step 3, as I keep getting
sudo: ssdtPRGen.sh: command not found

I running the following command,
sudo ssdtPRGen.sh -p ‘i7-8700k’

I tried without sudo and verified the file is .sh file is present along with all other unzipped contents. Any thoughts??
I got the script to execute. For some reason, I am not able to execute it from my user/library directory. I just executed from my directory where I downloaded and unzipped.

Anyway, I now see this error

Code:
System information: Mac OS X 10.13.4 (17E202)
Brandstring: "Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz"

Override value: (-p) processor model, now using: i7-8700k!

Version: models.cfg v171 / Coffee Lake.cfg v196


Scope (_PR_) {430 bytes} with ACPI Processor declarations found in DSDT (ACPI 1.0 compliant)
Generating ssdt.dsl for a 'iMac17,1' with board-id [Mac-B809C3757DA9BB8D]
Intel i7-8700k processor [0x906EA] setup [0x0705]
With a maximum TDP of 95 Watt, as specified by Intel
Number logical CPU's: 12 (Core Frequency: 3700 MHz)
Number of Turbo States: 10 (3800-4700 MHz)
Number of P-States: 40 (800-4700 MHz)
Injected C-States for PR00 (C1,C3,C6,C7,C8,C9,C10)
Injected C-States for PR01 (C1,C2,C3,C6,C7)
Warning: 'cpu-type' may be set improperly (0x0705 instead of 0x1005)
     - Clover users should read https://clover-wiki.zetam.org/Configuration/CPU#cpu_type
Error: board-id [Mac-B809C3757DA9BB8D] not supported by Unknown – check SMBIOS data / use the -target option
board-id [Mac-B809C3757DA9BB8D] not supported by Unknown – check SMBIOS data / use the -target option

So I tried to use the -target option and it doesn't take.

ssdtPRGen.sh -p 'i7-8700k' -target 6





ssdtPRGen.sh v0.9 Copyright (c) 2011-2012 by † RevoGirl

v6.6 Copyright (c) 2013 by † Jeroen

v21.5 Copyright (c) 2013-2018 by Pike R. Alpha

-----------------------------------------------------------

Bugs > https://github.com/Piker-Alpha/ssdtPRGen.sh/issues <


System information: Mac OS X 10.13.4 (17E202)

Brandstring: "Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz"


Override value: (-p) processor model, now using: i7-8700k!


Error: 'BridgeType' must be 0, 1, 2 or 3 ... #I entered 6 since the help menu says 6 = coffeelake

Aborting ...

Done.



Any thoughts?
No need for ssdtPRgen.sh with your hardware.
You only need config.plist/ACPI/SSDT/Generate/PluginType=true.

Read here:
https://www.tonymacx86.com/threads/macos-native-cpu-igpu-power-management.222982/
 
Joined
Mar 22, 2015
Messages
16
Motherboard
Gigabyte Z370 Aorus Gaming 7
CPU
i7-8700k
Graphics
GTX 750 Ti
Mac
iMac
Thanks RehabMan. I did see that in some threads where folks posted their builds and instructions, but I also noticed they listed it as if they did it.

Either way, I managed to get the script going last night (even though I don't need it). For some reason, it seems I had downloaded an older version of the ssdtPRgen.sh zip which didn't include the coffeelake cpu info in the versions file or one of the files.
 
Joined
Mar 3, 2014
Messages
779
Motherboard
Gigabyte Z390 I AORUS PRO WIFI
CPU
i9-9900K
Graphics
RX 580
Mac
MacBook Air
Classic Mac
Power Mac
I am interested in creating a new SSDT for the Z370N-WIFI motherboard, namely the modification of the USB ports to fit the (assumed) 15-port limit. I have the port limit change from 15 to 24 in the config.plist "Kext and kext patches" window, so all 24 (actually 26 according to IORegistryExplorer) are enabled. BUT: using MaciASL (RehabMan's version) to attempt choosing my desired ports doesn't work.

Some questions:
1. Is there still a 15-port limit required by Apple for the 300-series boards, i.e. is this strictly an OS requirement independent of hardware?
2. If so, please note that the "locationID" shown in IORegistryExplorer for all the "SSxx" ports state "0x15xxxxxxxx" whereas all the "HSxx" port "locationID"s state "0x14xxxxxxxx/" (See Exhibit A and Exhibit B attached below.) But there is no "XHC@15000000" listing in IORegistryExplorer!! What does this mean?
3. Consequently if MaciASL is used to choose the desired SSxx ports, the resulting SSDT is incorrect. The ports in SSDT-UIAC-ALL.dsl listed under "8086: a36d" for all the SSxx ports convert in IOCRegistryExplorer into HSxx ports. Is there a fix for this?

I have no idea what to do about this other than just to leave the 24-port limit in my config.plist. If anyone (are you reading this, RehabMan?") can help me, or resolve this question, please let me know!

Thanks for reading.
2018-05-23 Exibit A.jpg


2018-05-23 Exhibit B.jpg
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,974
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
I am interested in creating a new SSDT for the Z370N-WIFI motherboard, namely the modification of the USB ports to fit the (assumed) 15-port limit. I have the port limit change from 15 to 24 in the config.plist "Kext and kext patches" window, so all 24 (actually 26 according to IORegistryExplorer) are enabled. BUT: using MaciASL (RehabMan's version) to attempt choosing my desired ports doesn't work.

Some questions:
1. Is there still a 15-port limit required by Apple for the 300-series boards, i.e. is this strictly an OS requirement independent of hardware?
2. If so, please note that the "locationID" shown in IORegistryExplorer for all the "SSxx" ports state "0x15xxxxxxxx" whereas all the "HSxx" port "locationID"s state "0x14xxxxxxxx/" (See Exhibit A and Exhibit B attached below.) But there is no "XHC@15000000" listing in IORegistryExplorer!! What does this mean?
3. Consequently if MaciASL is used to choose the desired SSxx ports, the resulting SSDT is incorrect. The ports in SSDT-UIAC-ALL.dsl listed under "8086: a36d" for all the SSxx ports convert in IOCRegistryExplorer into HSxx ports. Is there a fix for this?

I have no idea what to do about this other than just to leave the 24-port limit in my config.plist. If anyone (are you reading this, RehabMan?") can help me, or resolve this question, please let me know!

Thanks for reading.
View attachment 332442

View attachment 332443
Off-topic.
This thread is regarding SSDT "for CPU".
(note also that it is completely unnecessary as well... as we can just set config.plist/ACPI/SSDT/Generate/PluginType=true)

USB is separate topic.
Refer to the guide:
https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/
 
Joined
Jun 6, 2018
Messages
32
Motherboard
Z370-A
CPU
i7 Intel 8th Gen 8700k
Graphics
M2000 Nvidia Quadro
Not working on either clover option for me?
 

Attachments

Top