USB installer won't boot (Ryzen 7 laptop)

YonathanZ

New member
AMD OS X Member
Joined
Aug 4, 2024
Messages
13
Hi,

I've followed two guides to create my USB: Dortania and ChefKiss.

My laptop has an AMD 5800H (Ryzen 7) and RTX 3050 Ti (which won't be used). It also has an Intel AX210 WiFi + BT module (I've replaced the original).

I'm using SMBIOS MacBookPro16,3 which I know is the recommended one for my system.

To get the iGPU to work, I use the NootedRed kext.

Here are all the kexts that I use:
  • AirportItlwm
  • AppleALC
  • AppleALCU
  • AppleMCEReporterDisabler
  • BrightnessKeys
  • ECEnabler
  • ForgedInvariant
  • Lilu
  • NootedRed
  • NVMeFix
  • RealtekRTL8111
  • RestrictEvents
  • SMCBatteryManager
  • SMCLightSensor
  • SMCProcessorAMD
  • SMCRadeonSensors
  • SMCSuperIO
  • USBMap
  • VirtualSMC
  • VoodooI2C
  • VoodooI2CHID
  • VoodooPS2Controller

I use these two drivers:

  • HfsPlus.efi
  • OpenRuntime.efi

And these are the SSDTs that were created using SSDTTime (except for dGPU-off that was manually edited and then compiled):

  • SSDT-dGPU-Off
  • SSDT-EC
  • SSDT-EC-USBX-DESKTOP
  • SSDT-HPET
  • SSDT-PLUG-ALT
  • SSDT-PNLF
  • SSDT-USBX
  • SSDT-XOSI

I have also used the PatchMerge file of SSDTTime.

For USB ports, I use USBToolBox.

Here's the Config.plist file:

https://pastebin.com/q5A2dp8h

And here's the opencore log file of the installation boot attempt:

https://pastebin.com/RbLafDjv

The boot process of the installation gets stuck. I don't quite understand the meaning of the errors in the last few lines of the opencore log file:

108:663 00:051 AAPL: #[EB.LD.OFS|OPEN!] Err(0xE) <"usr\\standalone\\OS.dmg.root_hash">

108:708 00:044 AAPL: #[EB.RH.LRH|P!] Err(0xE) <- EB.LD.LF

108:753 00:044 AAPL: #[EB.BST.FBS|!] Err(0xE) <- EB.RH.LRH

108:796 00:043 OCSMC: SmcReadValue Key 4D535463 Size 1

108:833 00:036 OCSMC: SmcReadValue Key 4D534163 Size 2

108:869 00:035 AAPL: #[EB|LOG:DT] 2024-08-05T14:03:07

108:906 00:037 AAPL: #[EB|LOG:EXITBS:START] 2024-08-05T14:03:07

I'd appreciate your help. Thanks.
 

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
2,276
Your config is broken... The kernel patches aren't nested within Kernel.
 

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,607
What that statement means is you have the AMD Kernel patches outside of the 'KERNEL' section.

I have fixed that issue in the attached config.plist. Compare the two config's and you will see what it means in real terms.
 

Attachments

  • config.zip
    7.2 KB · Views: 1

YonathanZ

New member
AMD OS X Member
Joined
Aug 4, 2024
Messages
13
Oh yes, my bad. Thank you. So the installer still wouldn't boot as it got stuck after saying "AppleNVME assert failed". I read about NVME compatibility and found that my laptop's SKHynix PC711 is not supported, so I added another nvme, a Crucial P2, which does not appear in the unsupported list. I have created and a file called SSDT-NVME-DISABLE.dsl which I then edited to include the bios name of the PC711 nvme, and finally compiled the file to get a .aml file, which I placed in the ACPI folder of the USB drive.
I then added it to the config.plist file and tried to boot the installer once again.

I still see the AppleNVME assert failed line, but it actually gets stuck a bit later.
Here's the boot log:

And here's the log file that's found in the USB drive:

The last line is this:
  1. 150:187 00:034 AAPL: #[EB|LOG:EXITBS:START] 2024-08-06T11:22:03
So I check the debugging section for this:

I've enabled SetupVirtualMap and EnableWriteUnprotector. Kernel patches are already placed in the correct place in the file, thanks to you. ProvideConsoleGop is already enabled (set to True) by default (in the Sample.plist file). The only thing left to try, according to the guide, is to modify DevirtualiseMmio, but the guide doesn't specify anything relating to AMD.

I'd appreciate your help.
 
Last edited:

YonathanZ

New member
AMD OS X Member
Joined
Aug 4, 2024
Messages
13
OK, I was able to make some progress. I've disabled XHC0 in the BIOS and created a new UBTMap.kext with USBToolBox. It looked like the bootable usb was downloading something and eventually I got a black screen instead of the installer GUI. What could cause the black screen?
 

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,607
It looked like the bootable usb was downloading something and eventually I got a black screen instead of the installer GUI. What could cause the black screen?
No idea what caused the black screen. Are you using a 'Full' macOS installer, i.e. one that is 13GB in size?
If yes you shouldn't need to download anything during the installation.

Regarding your USB issues I would recommend disabling USBMap.kext.
In its place enable Kernel > Quirks > XhciPortLimit entry.

Which AMD Chipset does your laptop use? As your laptop contains a Ryzen 7 5800H CPU, I assume it is an AMD 500 series chip in use, but which one? Different chipsets require different settings in the Booter > Quirks section of your config.plist.
 

YonathanZ

New member
AMD OS X Member
Joined
Aug 4, 2024
Messages
13
No idea what caused the black screen. Are you using a 'Full' macOS installer, i.e. one that is 13GB in size?
If yes you shouldn't need to download anything during the installation.

Regarding your USB issues I would recommend disabling USBMap.kext.
In its place enable Kernel > Quirks > XhciPortLimit entry.

Which AMD Chipset does your laptop use? As your laptop contains a Ryzen 7 5800H CPU, I assume it is an AMD 500 series chip in use, but which one? Different chipsets require different settings in the Booter > Quirks section of your config.plist.
I am using the recovery image, which is 771MB. I am able to get to the horizontal loading bar with the Apple logo, but it either disappears after a second and is replaced by a black screen with a mouse cursor, or it gets stuck at the very beginning of the loading.

As for the laptop's chipset, I couldn't find any info about it.
 

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
2,276
Have you tried disabling NootedRed for the installer? You can enable it once installed.
 

YonathanZ

New member
AMD OS X Member
Joined
Aug 4, 2024
Messages
13
Have you tried disabling NootedRed for the installer? You can enable it once installed.
Yes, I've removed it and also tried WhateverGreen. In all 3 cases, there's a black screen with a cursor or a stuck loading bar.
I also tried removing USBToolBox.kext and UTBMap.kext and it made no difference. However, enabling Kernel -> Quirks -> XhciPortsLimit causes it to get stuck before reaching the loading bar.
 

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
2,276
Try again with Whatevergreen and use the boot arg -radvesa This will disable GPU acceleration. I'm not sure if that boot arg is valid on NootedRed.
 

YonathanZ

New member
AMD OS X Member
Joined
Aug 4, 2024
Messages
13
Some good news! I haven't used WhateverGreen, but I removed kexts that aren't the bare essentials and got into the installer. It's in Russian so I'm gonna find the setting in the config.plist and fix it and will update with the results. Here are the kexts that I removed, no idea which one made it work:
AirportItlwm.kext
AppleALC.kext
BlueToolFixup.kext
IntelBluetoothFirmware.kext
IntelBTPatcher.kext
 

YonathanZ

New member
AMD OS X Member
Joined
Aug 4, 2024
Messages
13
OK, I managed to change it to the English, used Disk Utility to erase the SSD and then waited for the loading to finish. Then it restarted, so I booted again into the USB drive and selected the new option called Mac Installer. After it finished loading, it rebooted but my laptop simply boots into Windows. When I use F12 to enter the boot menu, I see the Windows SSD (which is separate from the Mac one) and the USB drive. I don't see the Mac one. What do I need to do to boot into the installed macOS?
 

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
2,276
Use your USB. Enable NootedRed in the config. Boot into macOS using the USB and once setup mount the EFI partition of your macOS drive and copy your USB EFI folder there. If it's a shared drive don't overwrite the EFI folder. You need to merge it.
 

YonathanZ

New member
AMD OS X Member
Joined
Aug 4, 2024
Messages
13
Use your USB. Enable NootedRed in the config. Boot into macOS using the USB and once setup mount the EFI partition of your macOS drive and copy your USB EFI folder there. If it's a shared drive don't overwrite the EFI folder. You need to merge it.
When you say boot into macOS using the USB, do you mean I should choose the macOS Installer option in the OpenCore boot menu? I did that after adding the NootedRed.kext file and it gets stuck for a bit before rebooting. Here's what's shown before it executes a few more lines and reboots:

Here's the log file from the USB drive:
 
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.