AMD Rayon R7 5800H Install Monterey kernel Panic

zxc2689963

Active member
AMD OS X Member
Feb 27, 2022
135
92
28
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

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...
@ExtremeXT
Please help me

1665458863048.png

My configuration is a MediaTek network card. The pm8512 is solid. Everything else is the same. I installed the macos on another computer: macOS Monterey 12.6. Do I have problems upgrading to it.

我的配置是联发科网卡,pm8512固态,其他都一样,macos是我在另一台电脑上装好的:macOS Monterey 12.6,我是升级上去的这样会有问题吗。

EFI: https://github.com/extremegrief1/Lenovo_Legion_5_Hackintosh



8801c067f837dd71deecb910562c2c3.jpg
ec89d79bcb22704108fd153a891c440.jpg
5f9892b717eba29c1871de7201b56e3.jpg
9d7350c3c07a1aa570ba95f84cbe9a6.jpg


bb0585fb40bf88e3cca181b7e22e3fb.jpg


7403c32a142c593bb9d6e0130c7e11b.jpg

1665454849646.png
 

Attachments

  • 1665454827881.png
    1665454827881.png
    233.6 KB · Views: 8
Last edited:
I got the Alienware Area51m R2 with the RX5700m (these are unicorns/ very rare) Pretty much I got almost everything running. The trackpad is not working although others have made it work. Under Big Sur the 5700m was not performing well, but Apple fixed the graphic drivers on Monterey and I get full graphics acceleration now.

Since this laptop can switch GPU's up to a 200 watts 2080 Super. I might Unlock the RX5700m TGP of 125 to 150watts. That should give me more of an uplift in performance. These behemoth uses 2 AC adapters, so currently 660watts.:ROFLMAO::ROFLMAO::ROFLMAO:

S__4563080_0.jpg

S__4563084.jpg

Screen Shot 2022-10-11 at 12.21.17 AM.png
 
Last edited:
Can I Install Mac OS on Legion 5 - AMD Ryzen 7 5800H - RTX 3050TI?

CPU: Ryzen 7 5800H
GPU: RTX 3050TI
RAM: 2x 8GB 3200MHz DDR4
can't because Apple not supported for NVDIA RTX Series
 
  • Like
Reactions: ExtremeXT
  • Like
Reactions: OG Nerd
Well actually you can, we just need to disable the 3050TI using a SSDT-Disable-DGPU.aml.
It is possible because of recent new developments we've made for the AMD IGPU. Whilst there is no acceleration it can run in VESA mode in say Monterey.
The EFI is found here and can work with most AMD Ryzen APUs > https://forum.amd-osx.com/threads/how-to-install-on-my-laptop-the-specs-are-below.3176/#post-22802
If there is no graphics acceleration then is rather pointless. Everything would be choppy and sluggish
 
If there is no graphics acceleration then is rather pointless. Everything would be choppy and sluggish
Actually yes and no. For 3D work obviously it won't work but I find it works rather well with playing video or music. Youtube, VLC or music playback is definitely not a problem.
 
Why not use the Legion 5 EFI? It should work.
No, the Legion 5 EFI is specifically set up for the RX6600M so it can't be used. Plus I found it had a few errors. Plus the one I uploaded recently for the APU is more up to date.
 
  • Like
Reactions: ExtremeXT
@zxc2689963 @OG Nerd
If you want to test, use the EFI from the main branch (https://github.com/extremegrief1/Lenovo_Legion_5_Hackintosh/tree/main). I added some stability and bug fixes. If it works fine for you, please try the fix-usb branch (https://github.com/extremegrief1/Lenovo_Legion_5_Hackintosh/tree/fix-usb). If you get any panic, take an image and send it.

- ExtremeXT
I downloaded your EFI from the main fork on your GitHub... Make a new 12.6 Installer and tried booting off it, I end up at the same place as a couple others.... I get the USBToolBox: XHC0: waitForMatchingService failed or timed out error then after a few minutes it goes to the forbidden symbol. Here are the specs of the machine... Legion 5, (I am able to boot into Big Sur with old EFI), 5800H CPU, Ryzen 6600M, 40GB RAM, 2 XPG Gammix X70 Blade NVME SSDs.

I have tried your main fork EFI unmodified, modified to disable USBXHCI.Kext & change system info, I tried the USB-Fix fork as well with same results.

Has anyone come up with a solution to get past the USBToolBox: XHC0: waitForMatchingService failed or timed out error?
 
I downloaded your EFI from the main fork on your GitHub... Make a new 12.6 Installer and tried booting off it, I end up at the same place as a couple others.... I get the USBToolBox: XHC0: waitForMatchingService failed or timed out error then after a few minutes it goes to the forbidden symbol. Here are the specs of the machine... Legion 5, (I am able to boot into Big Sur with old EFI), 5800H CPU, Ryzen 6600M, 40GB RAM, 2 XPG Gammix X70 Blade NVME SSDs.

I have tried your main fork EFI unmodified, modified to disable USBXHCI.Kext & change system info, I tried the USB-Fix fork as well with same results.

Has anyone come up with a solution to get past the USBToolBox: XHC0: waitForMatchingService failed or timed out error?
Your SSD is probably unsupported, try disabling NVMeFix or maybe disabling USBToolBox.
 
Your SSD is probably unsupported, try disabling NVMeFix or maybe disabling USBToolBox.
With nvmefix and usbtoolbox disabled, I now hang at the stage below then goes to a forbidden sign....

IMG_0251.jpeg
 
With nvmefix and usbtoolbox disabled, I now hang at the stage below then goes to a forbidden sign....

View attachment 7835
I was having problems installing. So Installed it on a desktop computer. Once installed Monterey successfully I inserted the drive back to the legion and use the EFI posted here and boots right up

except the trackpad and drives hooked to the usb ports. Note. No sound from speakers, but do work under Big sur
 
Last edited:
I was having problems installing. So Installed it on a desktop computer. Once installed Monterey was successfully I inserted the drive back to the legion and use the EFI posted here and boots right up

except the trackpad and drives hooked to the usb ports. Note. No sound from speakers, but do work under Big sur
For the trackpad, you will need SSDT-GPIO. aml enabled plus VoodooI2C, VoodooI2CHID and VoodooPS2Controller.kext.
 
For the trackpad, you will need SSDT-GPIO. aml enabled plus VoodooI2C, VoodooI2CHID and VoodooPS2Controller.kext.
AMD I2C trackpads don't work
 
  • Like
Reactions: Middleman
With nvmefix and usbtoolbox disabled, I now hang at the stage below then goes to a forbidden sign....

View attachment 7835
Stop at the forbidden sign because there is GenericUSBXHCI.kext, you need to cancel all kext related to USB before you can install it successfully, you need to restart the computer constantly, it will boot into the system successfully one time, and the USB controller will take effect probabilistically. I don't know why, or upgrade to monterey12.6 directly in bigsur.
 
  • Like
Reactions: ExtremeXT
  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.