AMD Rayon R7 5800H Install Monterey kernel Panic

zxc2689963

Active member
AMD OS X Member
Joined
Feb 27, 2022
Messages
135
Hello everyone, the Monterey kernel panic problem has been solved for AMD R7 5800H notebook installation. It is a great thing that the CPU can now run on 8 cores. Thank you guys very much.Thank them for discovering the problem and providing kernel patches @ExtremeX@Visual

Brand: Lenovo
Model: Legion 5 6th Gen
CPU: AMD Ryzen 7 5800h
GPU: AMD Radeon RX 6600m 8GB ( Separate GPU mode)
HDD: Samsung SSD 970 EVO Plus 1TB (1000 GB, PCI-E 3.0 x4)
WDS500G3X0C-00SJG0 (500 GB, PCI-E 3.0 x4)
Network: RealTek Semiconductor RTL8168/8111 PCI-E Gigabit Ethernet NIC
Intel(R) Wi-Fi 6E AX210 160MHz
Ram: x2 8GB 3200mhz ddr4
Display: 15.6 1080p 165HZ

Updated October 5, 2023
Problems solved:
1. You do not need to disable XHCI
2. The microphone problem is rectified
3. Monitor brightness can be adjusted, only in Ventura

Unresolved issues:
Failure to wake from sleep

 

Attachments

  • EFI-2023-10-5.zip
    40 MB · Views: 219
Last edited:
Solution
Panic from Monterey 12.6
View attachment 7258
Thanks. I looked at the sched_prim.c file in the XNU Kernel source code (nice of Apple to let us know exactly where to search) and found that it's related to the TSC (Time Stamp Counter) Syncronization of the CPU cores. The section of the code which gives the panic is: https://github.com/apple-oss-distributions/xnu/blob/xnu-8020.140.41/osfmk/kern/sched_prim.c#L2836
Unfortunately Apple didn't update the XNU Source Code for macOS 12.6 yet, but I still managed to find the place where it calls the panic.
Image 1 is the code of XNU that panics if the time between cores does not match (not syncronized properly).

As seen when comparing the Big Sur and Monterey code (Image 2), Big Sur...

redhorse1990

Member
AMD OS X Member
Joined
Jul 2, 2022
Messages
178

yunyun

New member
AMD OS X Member
Joined
Jun 28, 2024
Messages
3
Hello everyone, the Monterey kernel panic problem has been solved for AMD R7 5800H notebook installation. It is a great thing that the CPU can now run on 8 cores. Thank you guys very much.Thank them for discovering the problem and providing kernel patches @ExtremeX@Visual

Brand: Lenovo
Model: Legion 5 6th Gen
CPU: AMD Ryzen 7 5800h
GPU: AMD Radeon RX 6600m 8GB ( Separate GPU mode)
HDD: Samsung SSD 970 EVO Plus 1TB (1000 GB, PCI-E 3.0 x4)
WDS500G3X0C-00SJG0 (500 GB, PCI-E 3.0 x4)
Network: RealTek Semiconductor RTL8168/8111 PCI-E Gigabit Ethernet NIC
Intel(R) Wi-Fi 6E AX210 160MHz
Ram: x2 8GB 3200mhz ddr4
Display: 15.6 1080p 165HZ

Updated October 5, 2023
Problems solved:
1. You do not need to disable XHCI
2. The microphone problem is rectified
3. Monitor brightness can be adjusted, only in Ventura

Unresolved issues:
Failure to wake from sleep

Hello guys, my laptop Hackintosh is currently dual-system and works normally, but the wifi can't be used. Can it be solved?
Model: Lenovo R7000p 2021A
CPU: R7 5800H
Graphics card: 6600m
System: Ventura 13.5
Network card: bcm94360z4 and bcm94360ng
The problem is:
Problem 1 WiFi and Bluetooth are both used normally under win10, but WiFi can't be turned on in mac
Because the bcm94360z4 network card is driver-free in Ventura, I deleted the related inter drivers, including (AirportItlwm.kext, BlueToolFixup.kext, IntelBluetoothFirmware.kext, IntelBTPatcher.kext, AirportItlwm-Ventura.kext)

I tried adding Broadcom's wifi driver (AirportBrcmFixup-2.1.8-RELEASE) AirportBrcmFixup.kext, but it didn't work. Then I deleted the included AirPortBrcm4360_Injector.kext driver, but it didn't work either.
 

Attachments

  • WechatIMG335.png
    WechatIMG335.png
    732.5 KB · Views: 17

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,607
Have a read of these OCLP notes, specifically the Hackintosh section as it deals with the Broadcom WiFi support in Ventura and newer releases of macOS.


This guide might give you a better understanding of what is required.

 

redhorse1990

Member
AMD OS X Member
Joined
Jul 2, 2022
Messages
178
RX6600 is not supported in Big Sur. The drivers for the RX 6600 series of cards were only added to Monterey 12.2, if I recall correctly.
Hi Edwark, using this one almost work. However the only problem is that the original EFI disabled NVMe where my NVMe is working. So there is some problem in loading ACPI table matching. My UTBkext is uploaded already in this thread. Would you help me fixed it? Thank you

I have tried changing the USBMap.kext to UTBMap.kext that is created from USB toolbox and using your XHC1 to XHC_ rename patch in plist. But the issue is still the same. And I also tried changing ACPI file to your created one using my USB configuration. And the issue is also the same.
 

Attachments

  • IMG_0602.jpeg
    IMG_0602.jpeg
    4.4 MB · Views: 15
  • opencore-2024-08-29-191148.txt
    256 KB · Views: 1
Last edited:

redhorse1990

Member
AMD OS X Member
Joined
Jul 2, 2022
Messages
178
Have a read of these OCLP notes, specifically the Hackintosh section as it deals with the Broadcom WiFi support in Ventura and newer releases of macOS.


This guide might give you a better understanding of what is required.

I think my laptop is identical to this one. The only difference is that I replaced the SSD with Crucial P3 Plus 1TB PCIe Gen4 3D NAND NVMe M.2 which is supported for macos. The author of this post is installing the macos on an external harddisk connected by USB. I think that is why there is a SSDT:usbreset ACPI table loading error in my installation. But I still has no idea how to fix it. Would you help me to resolve this issue? The first EFI file is the EFI provided in the original post . And the second one is the EFI you created using my generated UTBMap.kext. Thanks
 

Attachments

  • EFI.zip
    6.2 MB · Views: 1
  • EFI-11.zip
    5.6 MB · Views: 1
Last edited:

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,607
I will have a look at the two EFI folders tomorrow.
 

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,607
@redhorse1990 post a copy of your system DSDT.aml table. Or tell me which post I can find the DSDT table, as I am sure you provided it previously.

I want to check that a few of the SSDT's in your OC EFI are required, I think they are but just want to make sure before telling you anything new.

The USBReset table in both EFI/OC/ACPI folders are very close to identical. Only difference I can see is as follows.
  1. EFI-11 contains Scope (\_SB.PCI0.GP17.XHC)
  2. The EFI from the Reddit post contains Scope (\_SB.PCI0.GP17.XHC1)
  3. All the other XHCx Devices are the same.
These SSDT's were both created using Corpnewt's SSDTTime, so I can only assume you are using a different bios/USB config compared to the Reddit laptop.

The Kexts folders are also similar, with a few differences.
  1. GenericUSBXHCI.kext is not present in EFI-11, you should use this kext.
  2. NVMeFix.kext is not present in EFI-11, you should use this kext.
  3. SMCLightSensor.kext is not present in EFI-11, you should use this kext.
  4. USBToolBox.kext is present in EFI-11, but that is correct as you are using UTBMap.kext. It shouldn't be present in the other EFI. Not when using USBMap.kext to configured the USB ports.
  5. ECEnabler.kext is not present in the Reddit EFI. It should be.
  6. The Reddit EFI is using a newer version of NootRX.kext, you should use this updated kext.
Screenshot 2024-09-05 at 19.25.57.png EFI-11/OC/Kexts folder contents

Screenshot 2024-09-05 at 19.26.06.png Reddit EFI/OC/Kexts folder contents

Screenshot 2024-09-05 at 19.31.03.png Combined/Revised OC/Kexts folder contents.

There are a few differences in the config.plist, a pair of Boot Arguments being the most likely to help your system. Plus the creator of this Reddit EFI is using MacPro7,1 SMBIOS not a MacBook Pro SMBIOS. Switching to the MP7,1 SMBIOS might help.

I will have a more thorough look at the two EFI's and see about creating one based on OC 1.0.1 for your laptop.
 

redhorse1990

Member
AMD OS X Member
Joined
Jul 2, 2022
Messages
178
@redhorse1990 post a copy of your system DSDT.aml table. Or tell me which post I can find the DSDT table, as I am sure you provided it previously.

I want to check that a few of the SSDT's in your OC EFI are required, I think they are but just want to make sure before telling you anything new.

The USBReset table in both EFI/OC/ACPI folders are very close to identical. Only difference I can see is as follows.
  1. EFI-11 contains Scope (\_SB.PCI0.GP17.XHC)
  2. The EFI from the Reddit post contains Scope (\_SB.PCI0.GP17.XHC1)
  3. All the other XHCx Devices are the same.
These SSDT's were both created using Corpnewt's SSDTTime, so I can only assume you are using a different bios/USB config compared to the Reddit laptop.

The Kexts folders are also similar, with a few differences.
  1. GenericUSBXHCI.kext is not present in EFI-11, you should use this kext.
  2. NVMeFix.kext is not present in EFI-11, you should use this kext.
  3. SMCLightSensor.kext is not present in EFI-11, you should use this kext.
  4. USBToolBox.kext is present in EFI-11, but that is correct as you are using UTBMap.kext. It shouldn't be present in the other EFI. Not when using USBMap.kext to configured the USB ports.
  5. ECEnabler.kext is not present in the Reddit EFI. It should be.
  6. The Reddit EFI is using a newer version of NootRX.kext, you should use this updated kext.
View attachment 14927 EFI-11/OC/Kexts folder contents

View attachment 14928 Reddit EFI/OC/Kexts folder contents

View attachment 14929 Combined/Revised OC/Kexts folder contents.

There are a few differences in the config.plist, a pair of Boot Arguments being the most likely to help your system. Plus the creator of this Reddit EFI is using MacPro7,1 SMBIOS not a MacBook Pro SMBIOS. Switching to the MP7,1 SMBIOS might help.

I will have a more thorough look at the two EFI's and see about creating one based on OC 1.0.1 for your laptop.
Hi, @Edhawk . This is a created a copy of my system DSDT.aml. Thanks for creating a EFI for mine.
 

Attachments

  • DSDT.zip
    50 KB · Views: 2

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,607
Revised EFI attached, try it and see if it works.

This is based on the review of the Reddit EFI, your DSDT.aml and what we had previously discovered about your laptop.

Remember to use the ResetNvram option from the OC boot screen before booting macOS with this revised EFI.
 

Attachments

  • EFI.zip
    8.1 MB · Views: 3

redhorse1990

Member
AMD OS X Member
Joined
Jul 2, 2022
Messages
178
Revised EFI attached, try it and see if it works.

This is based on the review of the Reddit EFI, your DSDT.aml and what we had previously discovered about your laptop.

Remember to use the ResetNvram option from the OC boot screen before booting macOS with this revised EFI.
Very unlucky, I found the same issue still exists
 

Attachments

  • IMG_0605.jpeg
    IMG_0605.jpeg
    4.2 MB · Views: 6

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,607
Try this config.plist which has VoodooGPIO.kext disabled. See if that gets you past this error.

Just replace the config in the last EFI I provided. Everything else remains the same.
 

Attachments

  • config.plist.zip
    6.7 KB · Views: 1

redhorse1990

Member
AMD OS X Member
Joined
Jul 2, 2022
Messages
178
Try this config.plist which has VoodooGPIO.kext disabled. See if that gets you past this error.

Just replace the config in the last EFI I provided. Everything else remains the same.
unluckily, the old issue still exists. But it also added a new issue
 

Attachments

  • IMG_0606.jpeg
    IMG_0606.jpeg
    3.9 MB · Views: 8

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,607
Ok, revert to previous config.plist.

Disable the SSDT-USBReset.aml table in the previous config.plist.
 

redhorse1990

Member
AMD OS X Member
Joined
Jul 2, 2022
Messages
178
Ok, revert to previous config.plist.

Disable the SSDT-USBReset.aml table in the previous config.plist.
Thanks for your suggestion. I just tried your suggested change. The original issue is resolved. But it comes with another issue. And I tried using another USB port for plugging USB flash. It stuck at PCI configuration
Update: I found that the installer just randomly stuck at one of these places.
 

Attachments

  • IMG_0608.jpeg
    IMG_0608.jpeg
    4 MB · Views: 5
  • IMG_0607.jpeg
    IMG_0607.jpeg
    4.3 MB · Views: 6
Last edited:
Back
Top Bottom
  AdBlock Detected
Sure, ad-blocking software does a great job at blocking ads, but it also blocks some useful and important features of our website. For the best possible site experience please take a moment to disable your AdBlocker.