AMD Rayon R7 5800H Install Monterey kernel Panic

zxc2689963

Member
Joined
Feb 27, 2022
Messages
55
Hi. I want to install Monterey on an AMD laptop (Legion 5 6th Gen with Ryzen 7 5800H and Radeon 6600M GPU). But the installation failed. There is a kernel panic during startup. I don't know what to do. Please help me find out what the problem is. thank you

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

This is to install monterey12.3.1

 

Attachments

  • EFI.zip
    6.2 MB · Views: 43
  • acpi_dsdt.zip
    630.2 KB · Views: 19

Edhawk

Active member
Joined
May 2, 2020
Messages
686
I am not sure using GenericUSBXHCI.kext is the best solution for your USB ports. It was suspect and a bit of a fudge when it was used on Intel systems with Yosemite and older. It was dropped (for a good reason) when the USB changes were implemented by Apple with the release of El Capitan.

The laptop uses XHC0 and XHC1 USB controllers. The later may clash with the Apple USB controller. Both might be better served with a ACPI rename patch to change them to names that won't clash with the Apple USB controllers.
  1. Using the Windows USBToolBox script to map the USB ports would be one solution.
  2. The alternative is to install an early version of Big Sur, 11.0.1 or Similar, where the XHCIPortLimit quirk works and map the USB ports in macOS.
  3. The Big Sur options is I think a better option of the two but probably means more work, downloading and installing an early version of Big Sur.
  4. Once someone has created a standard USBMap.kext or whatever, the kext should be capable of setting the USB ports for any identical laptop systems.

Doesn't the RX 6600M dGPU require the agdpmod=pikera boot arg? It is not shown as being used/present in the screen image in post #381.
 

OG Nerd

OG Nerd
Donator
Joined
Dec 7, 2021
Messages
166
I have had a look at your IOReg and would comment as follows:
  1. Can I ask why you are using a SMBIOS for a MacPro7,1 and not the SMBIOS for a MacBookPro16,4?
  2. Are you not using WhateverGreen.kext because it doesn't match with the ACPI path for the dGPU?
    1. The ACPI path for the RX 6600m is not normal, as it uses the name VGA, not PEGP, GFX0 which we would normally expect.
    2. IOACPIPlane:/_SB/[email protected]/[email protected]/[email protected]/[email protected]/[email protected] this translates to ( /_SB/PCI0/GPP0/SWUS/SWDS/VGA).
    3. Having a three character name is not normal, VGA0 would be more understandable, as every other part is 4 characters.
    4. Maybe adding an ACPI rename patch - change VGA_ to GFX0 - in to the config.plist would help the system match with WhateverGreen.kext?
  3. The CPU is showing the first thread connected to PR00, using AMDRyzenCPUPowerManagement kext attached, along with SMCAMDProcessor.kext.
  4. The next 15 threads all show the IOCPUState as uninitialised, whereas the first thread says it is running. Is this solely due to the cpus=1 boot argument?
  5. What is different in the IOReg when you are running Big Sur on this system, without the cpus=1 boot arg?
1. Middleman Suggested using MacBookPro Symbios as well, however, I was under the impression since it is a Ryzen CPU that it needed the MacPro one. (I did try it per Middlemans suggestions and it would hang at the nvme controller driver. (It was one of my previous posts)

2. Whenever I tried enabling whatevergreen, it would just boot to blank screen in Monterey. Even with AGDPMOD=PIKERA. (I will try to the rename patch once I get the symbios issue corrected)

3. I don't know what you are suggesting here, are you saying I should disable the AMDRyzenCPUPowerManagement Kext?

5. That is a good question, I would need to reinstall big sur to see. I do have a second SSD installed, is a IOReg equivalent available for windows that would be of any help?
 

OG Nerd

OG Nerd
Donator
Joined
Dec 7, 2021
Messages
166
I am not sure using GenericUSBXHCI.kext is the best solution for your USB ports. It was suspect and a bit of a fudge when it was used on Intel systems with Yosemite and older. It was dropped (for a good reason) when the USB changes were implemented by Apple with the release of El Capitan.

The laptop uses XHC0 and XHC1 USB controllers. The later may clash with the Apple USB controller. Both might be better served with a ACPI rename patch to change them to names that won't clash with the Apple USB controllers.
  1. Using the Windows USBToolBox script to map the USB ports would be one solution.
  2. The alternative is to install an early version of Big Sur, 11.0.1 or Similar, where the XHCIPortLimit quirk works and map the USB ports in macOS.
  3. The Big Sur options is I think a better option of the two but probably means more work, downloading and installing an early version of Big Sur.
  4. Once someone has created a standard USBMap.kext or whatever, the kext should be capable of setting the USB ports for any identical laptop systems.

Doesn't the RX 6600M dGPU require the agdpmod=pikera boot arg? It is not shown as being used/present in the screen image in post #381.
I did a USBToolbox map from Windows 11, which it should be in the efi I posted, it seems not to work with the genericUSBXHCI.kext and no other kext that we have tried, (we as in what myself, middleman and a few others suggested)

What would be the best option? I can reinstall an earlier version of big sur and map ports from there?

On the RX 6600M, it boots up without the Pikera arg. with it, I cannot remember if it booted. But it is working wthout it, acceleration and all.
 

Edhawk

Active member
Joined
May 2, 2020
Messages
686
Installing an early version of macOS Big Sur would be the best option. As you can use Hackintool & your IOReg to map the ports. You can also use the XhciPortLimit quirk in OpenCore.

I wouldn't worry about the agdpmod=pikera boot arg, if it works without it. However, if you rename the VGA controller to GFX0, then you may need to include it. Actually as it works this may be a red herring, and not need changing. But you will only know when you have tried using the rename patch.

This is what the Rename patch should look like:

Screenshot 2022-06-22 at 21.33.05.png VGA_ to GFX0 rename patch, as shown in ProperTree plist editor.

The SMBIOS is definitely strange. I think using a MBP SMBIOS would be best. The MacBookPro16,4 uses an 8-core 16-thread CPU, so should be a reasonable match.

No, I am not suggesting your remove the AMDRyzenCPUPowerManagement kext. That was just me making an observation that the first CPU thread was using the correct inputs.
 

OG Nerd

OG Nerd
Donator
Joined
Dec 7, 2021
Messages
166
Can you post a copy of your current EFI, so I can see exactly what you are using.
Yes, this is the EFI I am currently using.... I also included the EFI we used to install big sur. (I did not do the port mappings with it, but I will try the suggestions that you suggested. Do you think I should change the symbios to the MBP 16,4 when I reinstall Big Sur?
 

Attachments

  • EFI.zip
    23.6 MB · Views: 2
  • Big Sur.zip
    29.8 MB · Views: 1

Middleman

Active member
Joined
Jan 29, 2021
Messages
395
1. Middleman Suggested using MacBookPro Symbios as well, however, I was under the impression since it is a Ryzen CPU that it needed the MacPro one. (I did try it per Middlemans suggestions and it would hang at the nvme controller driver. (It was one of my previous posts)

Yes MacbookPro would be good to test as @Edhawk has suggested. But did you ever test it with iMacPro1,1? Try it with the new SSDT-CPUR because I think it will solve your issue.

As to your NVME issue, see if NVMEFix.kext or NVMexpressDXE.efi installed under EFI/OC/Drivers would solve your boot problem.
 

Jo-Toku

Donator
Donator
Joined
Dec 29, 2021
Messages
108
I also use this laptop. I read all content you had sent. So, the premise is my laptop must use Radeon Gpu if I want to install Hackintosh?
My Laptop use 3050TI, if there have some solution I can use ? Or maybe I should give up to try to install Hackintosh
If you have Nvidia, you may have thunderbolt, you could attach an external GPU and try use an amd card to boot Mac OS (maybe). If not, you will be stuck with no graphics acceleration.
 

Middleman

Active member
Joined
Jan 29, 2021
Messages
395
@lev12354 Can you share the EFI that you booted Big Sur using the patches I uploaded without cpus=1 for @OG Nerd to test please. There must be a different settings somewhere between the configs that allowed yours to boot.
@Shaneee I can confirm it was the updated SSDT-CPUR I gave @lev12345 that booted his Big Sur. The one I gave him was set for 6 cores by mistake (I forgot he has a 5800H). I since gave him a corrected one set for 8 cores. It is these two files.
 

Attachments

  • SSDT-CPUR-6cores.aml.zip
    836 bytes · Views: 0
  • SSDT-CPUR.aml.zip
    813 bytes · Views: 1

Middleman

Active member
Joined
Jan 29, 2021
Messages
395

Middleman

Active member
Joined
Jan 29, 2021
Messages
395
@lyx,

Just don’t forget to replace the PlatformInfo UUID, ROM and serials on the config.plist to newly generated ones using GenSMBIOS and SSDTPRgen because those belong to lev12345’s system.
 

lev12354

Member
Joined
Jun 14, 2021
Messages
54
@lev12354 Can you share the EFI that you booted Big Sur using the patches I uploaded without cpus=1 for @OG Nerd to test please. There must be a different settings somewhere between the configs that allowed yours to boot.
@Middleman I understand correctly that the graphics cannot be started, and therefore at this moment we are finishing setting up my laptop?
 

Attachments

  • EFI.zip
    23.3 MB · Views: 2
Top Bottom