PIut02 / ROG-Zephyrus-G14-GA401-Hackintosh

OpenCore Config for Asus ROG-Zephyrus-G14-GA401(2020-2021) with AMD Ryzen.
73 stars 3 forks source link

After Resetting NV ram, Bootloop Terribly #40

Closed BreezeConfirmingWms closed 3 months ago

BreezeConfirmingWms commented 3 months ago

Thanks a lot for your great work. I have succeeded in hacking ventura(13.5.1) two weeks ago . It works fine except internal display is grey screen and I ignore it because of external 2k display work . Yesterday,I decided to solve it and follow the Nootedred issue to update Nootedred.kext while it seems no change. I noticed your readme document mention that it might be work after resetting nvram and I just clicked on CleanNvram.efi then I stuck in Bootloop . When I select the opencore boot as usual ,the apple logo flashes and disappear in 4 seconds, and my laptop restart terribly.

feishulaptop

My laptop is ROG Zephyrus G15 GA502IV_GA502IV(2020): amd ryzen9 4900HS with Radeon Graphics SSD: Samsung 980 Pro 1TB where the hackintosh disk locates

I'm a noob of hackintosh and I search nothing to give it a recovery. Is it possible to secure boot without reinstalling?

The opencore debug information is below:

00:000 00:000 [ext4] Needs journal recovery, mounting read-only 00:002 00:002 [ext4] Needs journal recovery, mounting read-only 00:009 00:007 [ext4] Needs journal recovery, mounting read-only 26:349 26:340 AAPL: #[EB.H.IS|!] Err(0xE) <- RT.GV boot-signature 7C436110-AB2A-4BBB-A880-FE41995C9F82 26:350 00:000 AAPL: #[EB.H.IS|!] Err(0xE) <- RT.GV boot-image-key 7C436110-AB2A-4BBB-A880-FE41995C9F82 26:351 00:000 AAPL: #[EB|H:IS] 0 26:352 00:000 AAPL: #[EB|LOG:INIT] 2024-04-14T16:07:05 26:352 00:000 AAPL: #[EB|VERSION] <"boot.efi 577.140.2~15 (Official), built 2023-06-23T21:49:39-0700"> 26:353 00:000 AAPL: #[EB|BUILD] <"BUILD-INFO[402]:{"DisplayName":"boot.efi","DisplayVersion":"577.140.2~15","RecordUuid":"15CF17D7-4948-416B-9222-69F5AA379466","BuildTime":"2023-06-23T21:49:39-0700","ProjectName":"efiboot","ProductName":"boot.efi","SourceVersion":"577.140.2","BuildVersion":"15","BuildConfiguration":"Release","BuildType":"Official","Compiler":"clang-1403.0.22.11","SdkVersion":"13.5","SdkBuild":"22G62","TargetArchitectures":"x86_64"}"> 26:354 00:001 AAPL: #[EB.CFG.DEV|!] Err(0xE) <- RT.GV booter-strict-xmlparser 7C436110-AB2A-4BBB-A880-FE41995C9F82 26:356 00:001 AAPL: #[EB|CFG:DEV] r5 0x0 0x0 26:356 00:000 AAPL: #[EB|H:IS] 0 26:357 00:000 AAPL: #[EB|WL:MODE] 0 26:358 00:000 AAPL: #[EB|CFG:ARG] boot-save-log 0x0000000000000002 (0x0000000000000002 < 0xFFFFFFFFFFFFFFFF) default 26:359 00:000 AAPL: #[EB|CFG:ARG] wake-save-log 0x0000000000000002 (0x0000000000000002 < 0x0000000000000002) default 26:360 00:000 AAPL: #[EB|CFG:ARG] console 0x0000000000000001 (0x0000000000000001 < 0x0000000000000001) default 26:361 00:000 AAPL: #[EB|CFG:ARG] serial 0x0000000000000001 (0x0000000000000001 < 0x0000000000000000) default 26:362 00:000 AAPL: #[EB|CFG:ARG] preoslog 0x0000000000000001 (0x0000000000000001 < 0xFFFFFFFFFFFFFFFF) default 26:362 00:000 AAPL: #[EB|CFG:ARG] timestamps 0x0000000000000000 (0x0000000000000000 < 0xFFFFFFFFFFFFFFFF) default 26:363 00:000 AAPL: #[EB|CFG:ARG] log-level 0x0000000000000001 (0x0000000000000001 & 0x0000000000000021) default 26:364 00:000 AAPL: #[EB|CFG:ARG] breakpoint 0x0000000000000000 (0x0000000000000000 & 0x0000000000000000) default 26:365 00:000 AAPL: #[EB|CFG:ARG] kc-read-size 0x0000000000100000 (0x0000000000100000 < 0xFFFFFFFFFFFFFFFF) default 26:366 00:000 AAPL: #[EB|CFG:ARG] force-error 0x0000000000000000 (0x0000000000000000 & 0x0000000000000000) default 26:367 00:001 AAPL: #[EB|H:IS] 0 26:368 00:001 AAPL: #[EB|WL] 0 0 0x01 0x01 0 0x00 26:369 00:000 AAPL: #[EB|BRD:NV] Mac-E7203C0F68AA0004 26:370 00:000 AAPL: #[EB|B:VAw] 26:371 00:000 AAPL: #[EB|B:IAw] 26:372 00:000 AAPL: #[EB|WL] 0 0 0x01 0x01 2 0x00 26:373 00:000 AAPL: #[EB.BST.IDT|+] 26:374 00:001 AAPL: #[EB.BST.IDT|-] 26:375 00:000 AAPL: #[EB|WL] 0 0 0x01 0x01 3 0x00 26:376 00:000 AAPL: #[EB|WL] 0 0 0x01 0x01 4 0x00 26:377 00:000 AAPL: #[EB|BRD:NV] Mac-E7203C0F68AA0004 26:378 00:000 AAPL: #[EB|WL] 0 0 0x01 0x01 5 0x00 26:379 00:000 AAPL: #[EB.H.CHK|BM] 0x0000000000000000 26:379 00:000 AAPL: #[EB.H.LV|!] Err(0xE) <- RT.GV boot-signature 7C436110-AB2A-4BBB-A880-FE41995C9F82 26:381 00:001 AAPL: #[EB|WL] 0 0 0x01 0x01 23 0x0E 26:382 00:001 AAPL: #[EB.H.LV|!] Err(0xE) <- RT.GV boot-image-key 7C436110-AB2A-4BBB-A880-FE41995C9F82 26:383 00:000 AAPL: #[EB|WL] 0 0 0x01 0x01 24 0x0E 26:384 00:000 AAPL: #[EB.H.LV|!] Err(0xE) <- RT.GV boot-image 7C436110-AB2A-4BBB-A880-FE41995C9F82 26:385 00:001 AAPL: #[EB.H.LV|!] Err(0xE) <- RT.SV- boot-signature 7C436110-AB2A-4BBB-A880-FE41995C9F82 26:386 00:000 AAPL: #[EB.H.LV|!] Err(0xE) <- RT.SV- boot-image-key 7C436110-AB2A-4BBB-A880-FE41995C9F82 26:387 00:000 AAPL: #[EB.H.LV|!] Err(0xE) <- RT.SV- boot-image 7C436110-AB2A-4BBB-A880-FE41995C9F82 26:388 00:000 AAPL: #[EB|H:NOT] 26:389 00:000 AAPL: #[EB|SB:P] 0x0 26:399 00:010 AAPL: #[EB|LIMG:DP] Acpi(PNP0A03,0)/Pci(2|4)/Pci(0|0)/?[ 0x83 0x17 0x10 0x0 0x1 0x0 0x0 0x0 0x0 0x25 0x38 0xB5 0x31 0xB3 0x6B 0x44 ]/HD(Part2,Sig5D337A13-B4F7-4BB5-A22E-2325552C7973)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842) 26:400 00:000 AAPL: #[EB|LIMG:FP] \9CB0EB7E-AF68-4348-BCE7-B4AACC47EBA0\System\Library\CoreServices\boot.efi 26:401 00:000 AAPL: #[EB|LIMG:OPT] 26:402 00:000 AAPL: #[EB.OPT.LXF|F] <"\9CB0EB7E-AF68-4348-BCE7-B4AACC47EBA0\System\Library\CoreServices\com.apple.Boot.plist"> 26:403 00:000 AAPL: #[EB.LD.LF|IN] 0 1 <"\9CB0EB7E-AF68-4348-BCE7-B4AACC47EBA0\System\Library\CoreServices\com.apple.Boot.plist"> <"0"> 26:404 00:001 AAPL: #[EB.LD.OFS|OPEN!] Err(0xE) <"\9CB0EB7E-AF68-4348-BCE7-B4AACC47EBA0\System\Library\CoreServices\com.apple.Boot.plist"> 26:405 00:001 AAPL: #[EB.OPT.LXF|LF!] Err(0xE) 26:406 00:000 AAPL: #[EB.OPT.LXF|F] <"Library\Preferences\SystemConfiguration\com.apple.Boot.plist"> 26:407 00:000 AAPL: #[EB.LD.LF|IN] 0 1 <"Library\Preferences\SystemConfiguration\com.apple.Boot.plist"> <"0"> 26:408 00:001 AAPL: #[EB|KF] <""> 26:409 00:000 AAPL: #[EB|MBA:CL] <""> 26:410 00:000 AAPL: #[EB|MBA:NV] <"-v debug=0x100 keepsyms=1 swd_panic=1 amfi_get_out_of_my_way=1 ipc_control_port_options=0 revpatch=auto,sbvmm slide=167"> 26:411 00:000 AAPL: #[EB|MBA:KF] <""> 26:411 00:000 AAPL: #[EB|MBA:OUT] <"-v debug=0x100 keepsyms=1 swd_panic=1 amfi_get_out_of_my_way=1 ipc_control_port_options=0 revpatch=auto,sbvmm slide=167"> 26:412 00:000 AAPL: #[EB|LOG:VERBOSE] 2024-04-14T16:07:05 26:413 00:000 AAPL: #[EB.CSR.S|VAR] 0x00000040 26:414 00:000 AAPL: #[EB|OPT:BM] 0x80182 26:415 00:000 AAPL: #[EB.OPT.LXF|F] <"\9CB0EB7E-AF68-4348-BCE7-B4AACC47EBA0\System\Library\CoreServices\PlatformSupport.plist"> 26:416 00:000 AAPL: #[EB.LD.LF|IN] 0 1 <"\9CB0EB7E-AF68-4348-BCE7-B4AACC47EBA0\System\Library\CoreServices\PlatformSupport.plist"> <"0"> 26:417 00:001 AAPL: #[EB|P:CPR] N 26:418 00:001 AAPL: #[EB|P:MPI] N 26:419 00:000 AAPL: #[EB|P:BPI] N 26:420 00:000 AAPL: #[EB.OPT.RKS|!] Err(0xE) <- BS.LocP EDB4A040-6D8A-11EC-8FAD-3E22FB93ADCF 26:421 00:000 AAPL: #[EB|KMR] 397737984 26:422 00:000 AAPL: #[EB.CS.CSKSD|+] 26:423 00:000 AAPL: #[EB.CS.CSKSD|!] Err(0xE) <- RT.GV boot-info-payload 8D63D4FE-BD3C-4AAD-881D-86FD974BC1DF 26:424 00:000 AAPL: #[EB|WL] 0 0 0x01 0x01 6 0x0E 26:424 00:000 AAPL: #[EB.CS.LFC|+] 26:425 00:000 AAPL: #[EB.LD.LF|IN] 0 1 <"System\Library\Caches\com.apple.corestorage\EncryptedRoot.plist.wipekey"> <"0"> 26:428 00:002 AAPL: #[EB.FS.AGSVH|PU] 9CB0EB7E-AF68-4348-BCE7-B4AACC47EBA0 26:429 00:000 AAPL: #[EB.FS.AGSVH|!] Err(0xE) <- BS.LocHB 59D76AE4-37E3-55A7-B460-EF13D46E6020 26:430 00:001 AAPL: #[EB.G.CS|-?] Ok(0) 26:437 00:007 AAPL: #[EB.LD.LF|IN] 0 1 <""> <"1"> 26:439 00:002 AAPL: #[EB.B.SBS|SZ] 723512 26:446 00:006 AAPL: #[EB|B:SHA] 26:447 00:001 AAPL: #[EB.WL.PWLFNV|!] Err(0xE) <- RT.GV wake-failure 7C436110-AB2A-4BBB-A880-FE41995C9F82 26:448 00:001 AAPL: #[EB.WL.DT|!] Err(0xE) <- EB.WL.PWLFNV 26:449 00:001 AAPL: #[EB|WL:DT] 0xfb1044e9 26:451 00:001 AAPL: #[EB.LD.LKC|D] <"boot\System\Library\KernelCollections\BootKernelExtensions.kc.development"> 26:453 00:001 AAPL: #[EB.LD.OFS|OPEN!] Err(0xE) <"boot\System\Library\KernelCollections\BootKernelExtensions.kc.development"> 26:454 00:001 AAPL: #[EB.LD.LKC|R.2] <"boot\System\Library\KernelCollections\BootKernelExtensions.kc"> 27:355 00:900 AAPL: #[EB.LD.LKFS|-?] Ok(0) 27:378 00:023 AAPL: #[EB.LD.LKC|-?] Ok(0) 27:382 00:004 AAPL: #[EB|BST:REV1] 27:384 00:001 AAPL: #[EB|CSR:OUT] 0x00000040 27:385 00:001 AAPL: #[EB.BST.FBS|+] 27:386 00:001 AAPL: #[EB.BST.FBS|ADSZ] 0 27:387 00:001 AAPL: #[EB.BST.FBS|KSSZ] 0 27:389 00:001 AAPL: #[EB|SB:SBGMFNS] x86legacyap.im4m 27:390 00:001 AAPL: #[EB|RH:PF] usr\standalone\OS.dmg.root_hash 27:392 00:001 AAPL: #[EB|RH:MF] <"usr\standalone\OS.dmg.root_hash.x86legacyap.im4m"> 27:393 00:001 AAPL: #[EB.LD.LF|IN] 0 1 <"usr\standalone\OS.dmg.root_hash"> <"0"> 27:395 00:002 AAPL: #[EB.LD.LF|IN] 0 1 <"usr\standalone\OS.dmg.root_hash.x86legacyap.im4m"> <"0"> 27:397 00:001 AAPL: #[EB.BST.FBS|RHPSZ] 229 27:398 00:001 AAPL: #[EB.BST.FBS|RHMSZ] 3657 27:399 00:001 AAPL: #[EB|LOG:DT] 2024-04-14T16:07:06 27:400 00:001 AAPL: #[EB|LOG:EXITBS:START] 2024-04-14T16:07:06

I would be sincerely grateful that you could give me a hand

PIut02 commented 3 months ago

Try resetting bios and then setting it again

BreezeConfirmingWms commented 3 months ago

Try resetting bios and then setting it again

Thank you very much,I reset bios and check kext again and it works normally as usual.

While the internal display issue is still look like:

when I connect to my external 2k display, the internal display is broken grey

grey2k

when I disconnect and use internal display alone

I ensure that I have update the latest Nootedred.kext so could you give me advice, thanks again! greyinternal

BreezeConfirmingWms commented 3 months ago

Oh I confirm that it's caused by Nootedred, after I forbid Nootedred.kext, the internal display works fine but the video mem is just 7MB and internal display is detected as unknown display.

PIut02 commented 3 months ago

Maybe you should add -NRedDPDelay to boot-args

BreezeConfirmingWms commented 3 months ago

Maybe you should add -NRedDPDelay to boot-args

Sadly, I tried add -NRedDPDelay to boot-args again but It has no effect. And I mention internal display is detect as:

2024-04-15 16:53:05.963 system_profiler[1673:36475] Device PreExisted [000000010000049d] AMD Radeon Graphics Graphics/Displays:

AMD Radeon Graphics:

  Chipset Model: AMD Radeon Graphics
  Type: GPU
  Bus: PCIe
  Slot: built-in
  PCIe Lane Width: x16
  VRAM (Total): 3 GB
  Vendor: AMD (0x1002)
  Device ID: 0x1636
  Revision ID: 0x00c5
  ROM Revision: 113-RENOIR-035
  Metal Support: Metal 3
  Displays:
    LQ156M1JW09:
      Resolution: 1920 x 1080 (1080p FHD - Full High Definition)
      UI Looks like: 1920 x 1080 @ 240.00Hz
      Framebuffer Depth: 30-Bit Color (ARGB2101010)
      Mirror: Off
      Online: Yes
      Automatically Adjust Brightness: Yes
      Connection Type: Internal
    H27T22S:
      Resolution: 2560 x 1440 (QHD/WQHD - Wide Quad High Definition)
      UI Looks like: 2560 x 1440 @ 75.00Hz
      Framebuffer Depth: 30-Bit Color (ARGB2101010)
      Main Display: Yes
      Mirror: Off
      Online: Yes
      Rotation: Supported

and when I change 60hz refresh rate to 240hz, the grey screen is more severely damaged...

I'm also a noob of using macos and I don't know how to debug internal display error log ,I just command System/Library/Extensions/AppleGraphicsControl.kext/Contents/MacOS/AGDCDiagnose -a,then get log

agdcdiganose.txt

maybe it's a error of physical conditions of the built-in display,the laptop ever return to factory to repair due to same issue on windows , while the internal display work correctly on my windows and ubuntu dual system.

Anyway thanks again for solving how to reset nvram and boot properly, I think the issue could be closed .I would create a issue to NootedRed.I have mention that similar issue on NootedRed.

If you rather give me some more advice,that's great.