daliansky / XiaoMi-Pro-Hackintosh

XiaoMi NoteBook Pro Hackintosh
BSD Zero Clause License
2.62k stars 473 forks source link

OC Bootpicker doesn't show up #675

Closed p33k closed 2 years ago

p33k commented 2 years ago

I only have MacOS on my Xiaomi Pro. I use the latest efi from the repository here. when I boot, after de Mi logo there's immediately the apple logo booting. I want to reset my NVRAM, but can't do it that way. I tried spacebar, F8 and other stuff, but it always goes from MI -> Apple Logo

What is the problem here?

stevezhengshiqi commented 2 years ago

I have no clue about your issue. In this repository's config, we set ShowPicker to true, PickerMode to external and Timeout to 5, which means OpenCore will show the bootpicker from the Resource folder and hold it for 5 seconds. Make sure you change nothing from the latest EFI release. Any missing file in Resource folder or wrong configuration could result in no show up.

p33k commented 2 years ago

I tried it again, downloaded latest EFI from Github, only changed the serial number stuff. when I boot after MI logo there is a short time blackscreen, then apple logo. when I press ESC after MI, the screen stays black without booting.

is it possible that somehow the backlight is set extremely low so that I can't see opencore bootpicker?

However pushing F4 F5 or FN + F4/F5 while the screen is black after MI logo doesn't change anything.

p33k commented 2 years ago

this is really strange, I tried other opencore efis with usb stick, same problem with the blackscreen and bootpicker not showing. I then tried the debug version of opencore it showed this 1:555 00:004 OCB: Short-form DP could not be expanded 81:557 00:001 OCB: Building entry from Boot0000 81:559 00:002 OCB: Assuming DP is short-form (prefix) 81:561 00:001 OCB: Short-form DP could not be expanded 81:563 00:001 OCB: Processing blessed list 81:566 00:002 OCB: Adding bless entry on disk - PciRoot(0x0)/Pci(0x1C,0x4)/Pci(0x0,0x0)/NVMe(0x1,E8-A7-55-2C-01-75-A0-00)/HD(1,GPT,2D37C98B-7ABD-4200-BFD6-915B27EB9EBF,0x28,0x64000) 81:568 00:002 OCBP: Blessed file is missing 81:570 00:001 OCBP: Blessed folder is missing 81:571 00:001 OCBP: Predefined <nil> \System\Library\CoreServices\boot.efi is missing - Not Found 81:573 00:001 OCBP: Predefined <nil> \EFI\Microsoft\Boot\bootmgfw.efi is missing - Not Found 81:575 00:002 OCBP: Predefined <nil> \EFI\BOOT\BOOTX64.EFI is missing - Not Found 81:578 00:002 OCB: Adding bless entry on disk - PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,37-06-82-E2-20-75-A0-00)/HD(1,GPT,CB6B67D8-27FB-49D4-AE28-4607C4AE7047,0x28,0x64000) 81:580 00:002 OCBP: Blessed file is missing 81:582 00:002 OCBP: Blessed folder is missing 81:584 00:002 OCBP: Predefined <nil> \System\Library\CoreServices\boot.efi is missing - Not Found 81:587 00:002 OCBP: Predefined <nil> \EFI\Microsoft\Boot\bootmgfw.efi is missing - Not Found 81:589 00:002 OCBP: Predefined <nil> \EFI\BOOT\BOOTX64.EFI was found 81:591 00:002 OCB: Adding entry type (T:1|F:0|G:1) - PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,37-06-82-E2-20-75-A0-00)/HD(1,GPT,CB6B67D8-27FB-49D4-AE28-4607C4AE7047,0x28,0x64000)/\EFI\BOOT\BOOTX64.EFI 81:594 00:002 OCB: Discarding discovered OpenCore bootloader 81:596 00:002 OCB: Adding bless entry on disk - PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,37-06-82-E2-20-75-A0-00)/HD(2,GPT,580FD424-5A9C-4971-B2D1-6F081087A723,0x64028,0x746A2D60)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,2B133A7D028DB730AB58B1B983E3E0E5) 81:598 00:002 OCBP: APFS Volume Info - 7A0A3B98 (131072, 7D3A132B-8D02-30B7-AB58-B1B983E3E0E5, 64) 81:600 00:001 OCBP: APFS Container Info - 7A0A2918 (1, 7E0C53FE-8B5C-4155-B0DD-65AF09A466FD) 81:602 00:002 OCB: Adding bless entry on disk - PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,37-06-82-E2-20-75-A0-00)/HD(2,GPT,580FD424-5A9C-4971-B2D1-6F081087A723,0x64028,0x746A2D60)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,BF11E25A256F2E45A4C4CDE50C1FBD0B) 81:604 00:002 OCBP: APFS Volume Info - 7A0A2BD8 (131072, 5AE211BF-6F25-452E-A4C4-CDE50C1FBD0B, 4) 81:606 00:001 OCBP: APFS Container Info - 7A0A2918 (1, 7E0C53FE-8B5C-4155-B0DD-65AF09A466FD) 81:608 00:002 OCB: Adding bless entry on disk - PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,37-06-82-E2-20-75-A0-00)/HD(2,GPT,580FD424-5A9C-4971-B2D1-6F081087A723,0x64028,0x746A2D60)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,4D790DF40249AC4EAD26705CDF2F9503) 81:610 00:002 OCBP: APFS Volume Info - 7A0A1158 (131072, F40D794D-4902-4EAC-AD26-705CDF2F9503, 8) 81:612 00:001 OCBP: APFS Container Info - 7A0A2918 (1, 7E0C53FE-8B5C-4155-B0DD-65AF09A466FD) 81:615 00:002 OCB: Adding bless entry on disk - PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,37-06-82-E2-20-75-A0-00)/HD(2,GPT,580FD424-5A9C-4971-B2D1-6F081087A723,0x64028,0x746A2D60)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,BBD0EF6ED0DCF04A891C9BE9BF46999F) 81:617 00:002 OCBP: APFS Volume Info - 7A0A2158 (131072, 6EEFD0BB-DCD0-4AF0-891C-9BE9BF46999F, 1) 81:619 00:001 OCBP: APFS Container Info - 7A0A2918 (1, 7E0C53FE-8B5C-4155-B0DD-65AF09A466FD) 81:621 00:002 OCB: Adding bless entry on disk - PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,37-06-82-E2-20-75-A0-00)/HD(2,GPT,580FD424-5A9C-4971-B2D1-6F081087A723,0x64028,0x746A2D60)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,C6E8137F428E0B488D740DED0599E405) 81:623 00:002 OCBP: APFS Volume Info - 7A0A2958 (131072, 7F13E8C6-8E42-480B-8D74-0DED0599E405, 192) 81:625 00:001 OCBP: APFS Container Info - 7A0A2918 (1, 7E0C53FE-8B5C-4155-B0DD-65AF09A466FD) 81:627 00:002 BEP: Reset NVRAM entry, preserve boot 0, apple 0 81:629 00:001 OCB: Not adding hidden auxiliary entry Reset NVRAM (os|B:1) -> <null string> 81:631 00:001 OCB: Not adding hidden auxiliary entry Toggle SIP (Enabled) (os|B:1) -> <null string> 81:633 00:002 OCB: Showing menu... (polling hotkeys) 81:635 00:002 OCHK: InitHotKeys 81:637 00:001 OCKM: Allocated key repeat context 7A0A24D8 7A0A2918 7A0A2B58 81:892 00:254 OCAE: Set screen resolution to 1920x1080 - Success 81:894 00:002 OCTY: Registered handler 91:896 10:002 OCHK: FreeHotKeys 91:898 00:002 OCTY: Unregistered handler 91:904 00:005 OCKM: Freeing key repeat context 7A0A24D8 7A0A2918 7A0A2B58 91:906 00:001 OCB: Should boot from 1. MacOS (T:2|F:0|G:0|E:0|DEF:0) 91:908 00:002 OCB: Perform boot MacOS to dp PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,37-06-82-E2-20-75-A0-00)/HD(2,GPT,580FD424-5A9C-4971-B2D1-6F081087A723,0x64028,0x746A2D60)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,598B0B04701F9D4A97B4FB4D2CA459E8)/\7D3A132B-8D02-30B7-AB58-B1B983E3E0E5\System\Library\CoreServices\boot.efi (0/0) 91:911 00:002 OCABC: EfiBootRt candidate - PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,37-06-82-E2-20-75-A0-00)/HD(2,GPT,580FD424-5A9C-4971-B2D1-6F081087A723,0x64028,0x746A2D60)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,598B0B04701F9D4A97B4FB4D2CA459E8)/\7D3A132B-8D02-30B7-AB58-B1B983E3E0E5\System\Library\CoreServices\boot.efi 91:913 00:002 OCABC: IsEfiBootRt 0 (BP 1, Apple 0)

I don't know where the windows stuff was coming from, cause I don't use Windows on that laptop since a long time.

However what fixed the problem was using the Clover EFI from this repository on the 2. SSD. Clover Bootpicker was showing and I was able to Reset NVRAM there. after that Opencore Bootpicker worked again.