AK47BTW 发表于 2016-6-4 12:38

z97x-ud3h 网卡声卡驱动以及DSDT

总览


下文中出现的所有内核扩展均放入clover/kext/10.11
1.声卡(alc-1150/DP)(内建模拟线性输入输出,DP/HDMI数字输出)使用dsdt 位置 Device (HDEF)Method (_DSM, 4, NotSerialized)// _DSM: Device-Specific Method
            {
                Store (Package (0x10)
                  {
                        "AAPL,slot-name",
                        Buffer (0x09)
                        {
                            "Built in"
                        },

                        "codec-id",
                        Buffer (0x04)
                        {
                           0x00, 0x09, 0xEC, 0x10                        
                        },

                        "layout-id",
                        Unicode ("\x01"),
                        "model",
                        Buffer (0x26)
                        {
                            "Realtek ALC1150 7.1 Channels HD Audio"
                        },

                        "name",
                        Buffer (0x16)
                        {
                            "Realtek ALC1150 Audio"
                        },

                        "device_type",
                        Buffer (0x11)
                        {
                            "Audio Controller"
                        },

                        "MaximumBootBeepVolume",
                        Buffer (One)
                        {
                           0x01                                          
                        },

                        "PinConfigurations",
                        Buffer (Zero) {}
                  }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }dsdt定位Device (PEG0) 加一个Device (HDAU)
                  {
                        Name (_ADR, One)// _ADR: Address
                        Method (_DSM, 4, NotSerialized)// _DSM: Device-Specific Method
                        {
                            Store (Package (0x02)
                              {
                                    "hda-gfx",
                                    Buffer (0x0A)
                                    {
                                        "onboard-1"
                                    }
                              }, Local0)
                            DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                            Return (Local0)
                        }
dsdt定位到显卡根据显卡接口数自行添加如下代码Device (PEGP)
                  {
                        Name (_ADR, Zero)// _ADR: Address
                        Method (_DSM, 4, NotSerialized)// _DSM: Device-Specific Method
                        {
                            Store (Package (0x18)
                              {
                                    "AAPL,slot-name",
                                    Buffer (0x07)
                                    {
                                        "Slot-1"
                                    },

                                    "model",
                                    Buffer (0x15)
                                    {
                                        "MSI GTX970 Gaming 4G"
                                    },

                                    "name",
                                    Buffer (0x17)
                                    {
                                        "NVIDIA GeForce GTX 970"
                                    },

                                    "device-id",
                                    Buffer (0x04)
                                    {
                                       0xC2, 0x13, 0x00, 0x00                        
                                    },

                                    "device-type",
                                    Buffer (0x13)
                                    {
                                        "Graphic Controller"
                                    },

                                    "@0,connector-type",
                                    Buffer (0x04)
                                    {
                                       0x00, 0x08, 0x00, 0x00                        
                                    },

                                    "@1,connector-type",
                                    Buffer (0x04)
                                    {
                                       0x00, 0x08, 0x00, 0x00                        
                                    },

                                    "@2,connector-type",
                                    Buffer (0x04)
                                    {
                                       0x00, 0x08, 0x00, 0x00                        
                                    },

                                    "@3,connector-type",
                                    Buffer (0x04)
                                    {
                                       0x00, 0x08, 0x00, 0x00                        
                                    },

                                    "@4,connector-type",
                                    Buffer (0x04)
                                    {
                                       0x00, 0x08, 0x00, 0x00                        
                                    },

                                    "@5,connector-type",
                                    Buffer (0x04)
                                    {
                                       0x00, 0x08, 0x00, 0x00                        
                                    },

                                    "hda-gfx",
                                    Buffer (0x0A)
                                    {
                                        "onboard-1"
                                    }
                              }, Local0)
                            DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                            Return (Local0)
                        }
                  }
                }
2.网卡(intel i217v/bcm94360cd)使用dsdt定位到Device (GLAN)Method (_DSM, 4, NotSerialized)// _DSM: Device-Specific Method
            {
                Store (Package (0x0C)
                  {
                        "AAPL,slot-name",
                        Buffer (0x09)
                        {
                            "Built in"
                        },

                        "built-in",
                        Buffer (One)
                        {
                           0x01                                          
                        },

                        "name",
                        Buffer (0x17)
                        {
                            "Intel Gigabit Ethernet"
                        },

                        "model",
                        Buffer (0x29)
                        {
                            "Intel I217V PCI Express Gigabit Ethernet"
                        },

                        "device-id",
                        Buffer (0x04)
                        {
                           0x3B, 0x15, 0x00, 0x00                        
                        },

                        "device_type",
                        Buffer (0x14)
                        {
                            "Ethernet Controller"
                        }
                  }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }
dsdt定位到 RP05下的Device (PXSX)Method (_DSM, 4, NotSerialized)// _DSM: Device-Specific Method
                  {
                        Store (Package (0x0C)
                            {
                              "AAPL,slot-name",
                              Buffer (0x07)
                              {
                                    "Slot-2"
                              },

                              "built-in",
                              Buffer (One)
                              {
                                     0x01                                          
                              },

                              "name",
                              Buffer (0x22)
                              {
                                    "Broadcom Wireless Network Adapter"
                              },

                              "model",
                              Buffer (0x33)
                              {
                                    "Broadcom BCM4360 802.11ac Wireless Network Adapter"
                              },

                              "device-id",
                              Buffer (0x04)
                              {
                                     0xA0, 0x43, 0x00, 0x00                        
                              },

                              "device_type",
                              Buffer (0x10)
                              {
                                    "AirPort Extreme"
                              }
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                  }
3.修正satadsdt 定位到Device (SATA)Method (_DSM, 4, NotSerialized)// _DSM: Device-Specific Method
            {
                Store (Package (0x0E)
                  {
                        "model",
                        Buffer (0x2E)
                        {
                            "Intel 9 Series Chipset Family SATA Controller"
                        },

                        "device_type",
                        Buffer (0x10)
                        {
                            "AHCI Controller"
                        },

                        "device-id",
                        Buffer (0x04)
                        {
                           0x82, 0x8C, 0x00, 0x00                        
                        },

                        "AAPL,slot-name",
                        "Built In",
                        "name",
                        "Intel AHCI Controller",
                        "compatible",
                        "pci8086,8c83",
                        "IOName",
                        "pci8086,8c83"
                  }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }
      }
4.修正LPCdsdt定位到Device (LPCB)Method (_DSM, 4, NotSerialized)// _DSM: Device-Specific Method
                {
                  If (LEqual (Arg2, Zero))
                  {
                        Return (Buffer (One)
                        {
                           0x03                                          
                        })
                  }

                  Return (Package (0x02)
                  {
                        "compatible",
                        "pci8086,9c43"
                  })
                }
======================================================clover 设置 15,1smbios 开启防黑屏,trim<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>ACPI</key>
        <dict>
                <key>DSDT</key>
                <dict>
                        <key>Debug</key>
                        <false/>
                        <key>DropOEM_DSM</key>
                        <false/>
                        <key>ReuseFFFF</key>
                        <false/>
                </dict>
                <key>DropTables</key>
                <array>
                        <dict>
                                <key>Signature</key>
                                <string>DMAR</string>
                        </dict>
                        <dict>
                                <key>Signature</key>
                                <string>SSDT</string>
                                <key>TableId</key>
                                <string>Cpu0Ist</string>
                        </dict>
                        <dict>
                                <key>Signature</key>
                                <string>SSDT</string>
                                <key>TableId</key>
                                <string>CpuPm</string>
                        </dict>
                </array>
                <key>SSDT</key>
                <dict>
                        <key>DropOem</key>
                        <false/>
                        <key>Generate</key>
                        <false/>
                </dict>
        </dict>
        <key>Boot</key>
        <dict>
                <key>Debug</key>
                <false/>
                <key>DefaultVolume</key>
                <string>Macintosh HD</string>
                <key>Legacy</key>
                <string>PBR</string>
                <key>Secure</key>
                <false/>
                <key>Timeout</key>
                <integer>0</integer>
                <key>XMPDetection</key>
                <string>Yes</string>
        </dict>
        <key>CPU</key>
        <dict>
                <key>UseARTFrequency</key>
                <false/>
        </dict>
        <key>Devices</key>
        <dict>
                <key>Audio</key>
                <dict>
                        <key>Inject</key>
                        <string>Detect</string>
                </dict>
                <key>USB</key>
                <dict>
                        <key>FixOwnership</key>
                        <false/>
                        <key>HighCurrent</key>
                        <true/>
                        <key>Inject</key>
                        <true/>
                </dict>
        </dict>
        <key>DisableDrivers</key>
        <array>
                <string>Nothing</string>
        </array>
        <key>GUI</key>
        <dict>
                <key>Hide</key>
                <array>
                        <string>BOOTX64.EFI</string>
                        <string>Windows</string>
                </array>
                <key>Language</key>
                <string>zh_CN:0</string>
                <key>Mouse</key>
                <dict>
                        <key>DoubleClick</key>
                        <integer>500</integer>
                        <key>Enabled</key>
                        <true/>
                        <key>Mirror</key>
                        <false/>
                        <key>Speed</key>
                        <integer>8</integer>
                </dict>
                <key>Scan</key>
                <dict>
                        <key>Entries</key>
                        <true/>
                        <key>Legacy</key>
                        <false/>
                        <key>Linux</key>
                        <false/>
                        <key>Tool</key>
                        <true/>
                </dict>
                <key>Theme</key>
                <string>black_green</string>
        </dict>
        <key>Graphics</key>
        <dict>
                <key>Inject</key>
                <dict>
                        <key>ATI</key>
                        <false/>
                        <key>Intel</key>
                        <false/>
                        <key>NVidia</key>
                        <false/>
                </dict>
                <key>NvidiaSingle</key>
                <false/>
        </dict>
        <key>KernelAndKextPatches</key>
        <dict>
                <key>AppleRTC</key>
                <true/>
                <key>AsusAICPUPM</key>
                <false/>
                <key>Debug</key>
                <false/>
                <key>KernelCpu</key>
                <false/>
                <key>KernelHaswellE</key>
                <false/>
                <key>KernelLapic</key>
                <false/>
                <key>KernelPm</key>
                <false/>
                <key>KextsToPatch</key>
                <array>
                        <dict>
                                <key>Comment</key>
                                <string>change 15 port limit to 20 in XHCI kext (9-series)</string>
                                <key>Disabled</key>
                                <false/>
                                <key>Find</key>
                                <data>
                                g72M/v//EA==
                                </data>
                                <key>Name</key>
                                <string>AppleUSBXHCIPCI</string>
                                <key>Replace</key>
                                <data>
                                g72M/v//FQ==
                                </data>
                        </dict>
                        <dict>
                                <key>Comment</key>
                                <string>AppleGraphicsDevicePolicy</string>
                                <key>Disabled</key>
                                <false/>
                                <key>Find</key>
                                <data>
                                Ym9hcmQtaWQ=
                                </data>
                                <key>Name</key>
                                <string>AppleGraphicsDevicePolicy</string>
                                <key>Replace</key>
                                <data>
                                Ym9hcmQtaXg=
                                </data>
                        </dict>
                        <dict>
                                <key>Comment</key>
                                <string>Trim Support</string>
                                <key>Disabled</key>
                                <false/>
                                <key>Find</key>
                                <data>
                                QVBQTEUgU1NEAA==
                                </data>
                                <key>Name</key>
                                <string>IOAHCIBlockStorage</string>
                                <key>Replace</key>
                                <data>
                                AAAAAAAAAAAAAA==
                                </data>
                        </dict>
                </array>
        </dict>
        <key>RtVariables</key>
        <dict>
                <key>BooterConfig</key>
                <string>0x28</string>
                <key>CsrActiveConfig</key>
                <string>0xFF</string>
                <key>MLB</key>
                <string></string>
                <key>ROM</key>
                <string></string>
        </dict>
        <key>SMBIOS</key>
        <dict>
                <key>BiosReleaseDate</key>
                <string>09/29/2014</string>
                <key>BiosVendor</key>
                <string>Apple Inc.</string>
                <key>BiosVersion</key>
                <string>IM151.88Z.0207.B00.1409291931</string>
                <key>Board-ID</key>
                <string>Mac-42FD25EABCABB274</string>
                <key>BoardManufacturer</key>
                <string>Apple Inc.</string>
                <key>BoardType</key>
                <integer>10</integer>
                <key>ChassisAssetTag</key>
                <string>iMac-Aluminum</string>
                <key>ChassisManufacturer</key>
                <string>Apple Inc.</string>
                <key>ChassisType</key>
                <string>13</string>
                <key>Family</key>
                <string>iMac</string>
                <key>Manufacturer</key>
                <string>Apple Inc.</string>
                <key>ProductName</key>
                <string>iMac15,1</string>
                <key>SerialNumber</key>
                <string></string>
                <key>SmUUID</key>
                <string></string>
                <key>Trust</key>
                <false/>
                <key>Version</key>
                <string>1.0</string>
        </dict>
        <key>SystemParameters</key>
        <dict>
                <key>CustomUUID</key>
                <string></string>
                <key>InjectKexts</key>
                <string>Yes</string>
                <key>InjectSystemID</key>
                <true/>
        </dict>
</dict>
</plist>









飘逸~┰⌒~ 发表于 2016-6-4 23:31

噫,噫,噫。

甘新平 发表于 2016-6-4 23:54

不错,技术文章。

AK47BTW 发表于 2016-6-5 11:22

飘逸~┰⌒~ 发表于 2016-6-4 23:31 https://www.pcbeta.com/static/image/common/back.gif
噫,噫,噫。

你这空间简直不要太粉嫩

cyx85121481 发表于 2016-6-5 11:47

来支持一下。

lanlingfeixue 发表于 2016-6-18 19:36

这个真的不错,一样的主板

lovestE6 发表于 2016-7-2 23:40

这个主板已经完美了吗?

AK47BTW 发表于 2016-7-3 10:19

lovestE6 发表于 2016-7-2 23:40 https://www.pcbeta.com/static/image/common/back.gif
这个主板已经完美了吗?

这玩意只能慢慢完善,没有完美的可能吧,

qq1677682460 发表于 2016-7-23 14:13

我也是这个主板的,安装完系统设置声音那里打开,USB鼠标就会卡死,是什么问题

sokowu005 发表于 2016-7-23 14:37

技术贴顶一个!!!

duen 发表于 2016-9-13 19:40

请问楼主可以把成功的dsdt分享出来吗?。。。。。
我和你的配置一样。。

s44151060 发表于 2016-9-16 19:23

学习一下 谢谢

狼的旋律 发表于 2017-4-21 13:08

"dsdt 定位到Device (SATA)" 搜不到这个??

guigeng 发表于 2017-4-25 10:25

正好用到,谢谢。

a13302211596 发表于 2017-6-11 18:23

a13302211596 发表于 2017-6-11 18:24

allstar-cc 发表于 2017-6-20 00:03

可以分享一下EFI文件吗LZ~{:5_264:}

0x14ohei 发表于 2017-6-22 08:35

不错。好文章···

chohsiao 发表于 2018-4-5 16:20

感谢楼主分享

hellokingabc 发表于 2018-6-7 23:43

感谢楼主,学习了
页: [1] 2
查看完整版本: z97x-ud3h 网卡声卡驱动以及DSDT