dortania / bugtracker

Dortania Bugtracker
110 stars 7 forks source link

Mobile Icelake issues #17

Open MVDB0110 opened 4 years ago

MVDB0110 commented 4 years ago

After some Troubleshooting I got rid of most of the ACPI errors by adding compiled SSDTs. And came further in the boot process. Now I hang at Still Waiting for Root Device. Now I think the problem has to do with USB, because this laptop uses only USB-C/Thunderbolt, which are initialized but still I get the error Waiting for Root Device. Also I get the error of appleusbxhci unsupported speed mantissa. I get ACPI error: _SB.PCI0.XHC.RHUB.HS09 is in DSDT but cannot be loaded on boot (I'm still in install phase). For current EFI and photos of the error https://www.tonymacx86.com/threads/will-macos-run-on-the-xps-13-7390.285414/page-2#post-2123507

khronokernel commented 4 years ago

Yeah somewhat known issue with Icelake, had a user hit that roadblock a while back but disappeared before we could get a fix. So my guess are either:

Also issues tab is for guide issues and not personal hack issues, I'm throwing in this issue as "fix Icelake guide" as the Icelake platform has issues that need to be resolved but for future reference these kinds of issues should be in forums only

MVDB0110 commented 4 years ago

Okay first ill try the InjectAll way and then I will make an USB Map and share with other XPS owners.

MVDB0110 commented 4 years ago

The older SMBIOS MacBookAir8,1 isn't changing anything. My XHCI Controller dortania/vanilla-laptop-guide#1 is "\VEN_8086&DEV_34ED&SUBSYS_08B01028&REV_30\3&11583659&0&A0" dortania/vanilla-laptop-guide#2 is "\VEN_8086&DEV_8A13&SUBSYS_00000000&REV_03\3&11583659&0&68". You are my hero if you can make that kext for me.

khronokernel commented 4 years ago

Try this guy:

Edit: It's a plist-only kext, so no executable is needed when adding to your config.plist

MVDB0110 commented 4 years ago

I have tried the kext. It did not boot up and got the same Still waiting for root device error. When I imported the kext in to config.plist it got no ExecutablePath is that the way it should be?

khronokernel commented 4 years ago

Hmm, only other thing that could affect USB off the top of my head is IRQ conflicts. Try running SSDTime's HEPT/IRQ patcher

MVDB0110 commented 4 years ago

It still won't pass the Still waiting for root device. The SSDTime patcher output is here: http://www.mediafire.com/file/836jgn0bg5hr2kh/patches_OC.zip/file

MVDB0110 commented 4 years ago

Maybe the OpenCore log helps: 00:000 00:000 AAPL: [EB|#LOG:INIT] 2020-05-17T21:33:31 00:117 00:117 AAPL: [EB|#VERSION] bootbase.efi 422.100.16~14 (Official), built 2020-02-29T16:54:28-0800 00:226 00:108 AAPL: [EB|#BUILD] BUILD-INFO[310]:{"DisplayName":"bootbase.efi","DisplayVersion":"422.100.16~14","RecordUuid":"0D6170BC-EA81-4EE7-B3B5-1D6A5DDB253B","BuildTime":"2020-02-29T16:54:28-0800","ProjectName":"efiboot","ProductName":"bootbase.efi","SourceVersion":"422.100.16","BuildVersion":"14","BuildConfiguration":"Release","BuildType":"Official"} 00:340 00:113 AAPL: [EB|H:IS] Err(0xE) @ GV boot-signature 00:446 00:106 AAPL: [EB|H:IS] Err(0xE) @ GV boot-image-key 00:554 00:107 AAPL: [EB|#H:IS] 0 00:670 00:116 AAPL: [EB|#WL:MODE] 0 00:782 00:111 AAPL: [EB|#CONFIG:SRC] <default> 00:890 00:108 AAPL: [EB|#CONFIG| 0] boot-save-log : 0x0000000000000002 (0x0000000000000002 < 0xFFFFFFFFFFFFFFFF) <default> 00:998 00:108 AAPL: [EB|#CONFIG| 1] wake-save-log : 0x0000000000000002 (0x0000000000000002 < 0x0000000000000002) <default> 01:109 00:111 AAPL: [EB|#CONFIG| 2] console : 0x0000000000000001 (0x0000000000000001 < 0x0000000000000001) <default> 01:215 00:105 AAPL: [EB|#CONFIG| 3] serial : 0x0000000000000000 (0x0000000000000000 < 0x0000000000000000) <default> 02:287 01:072 AAPL: [EB|#CONFIG| 4] embed-log-dt : 0x0000000000000000 (0x0000000000000000 < 0x0000000000000000) <default> 02:398 00:111 AAPL: [EB|#CONFIG| 5] timestamps : 0x0000000000000000 (0x0000000000000000 < 0xFFFFFFFFFFFFFFFF) <default> 02:506 00:107 AAPL: [EB|#CONFIG| 6] log-level : 0x0000000000000001 (0x0000000000000001 & 0x0000000000000001) <default> 02:614 00:108 AAPL: [EB|#CONFIG| 7] breakpoint : 0x0000000000000000 (0x0000000000000000 & 0x0000000000000000) <default> 02:723 00:108 AAPL: [EB|#CONFIG| 8] kc-read-size : 0x0000000000100000 (0x0000000000100000 < 0xFFFFFFFFFFFFFFFF) <default> 02:835 00:111 AAPL: [EB|#WL|0] 0x01 0x01 0 0x00 02:941 00:106 AAPL: [EB|#BRD:NV] Mac-827FAC58A8FDFA22 03:051 00:110 AAPL: [EB|#WL|1] 0x01 0x01 2 0x00 03:161 00:109 AAPL: [EB|BST:IDT] { 03:267 00:106 AAPL: [EB|BST:IDT] } 03:375 00:108 AAPL: [EB|#WL|2] 0x01 0x01 3 0x00 03:484 00:108 AAPL: [EB|#WL|3] 0x01 0x01 4 0x00 03:595 00:111 AAPL: [EB|#BRD:NV] Mac-827FAC58A8FDFA22 04:675 01:079 AAPL: [EB|#WL|4] 0x01 0x01 5 0x00 04:782 00:107 AAPL: [EB|H:CHK] BM: 0x0000000000000000 04:894 00:111 AAPL: [EB|H:CHK] Err(0xE) @ GV boot-signature 05:000 00:105 AAPL: [EB|#WL|5] 0x01 0x01 23 0x0E 05:109 00:108 AAPL: [EB|H:CPM] Err(0xE), (24, 24) @ GV Persistent-memory-note 05:219 00:110 AAPL: [EB|SB:EN] Err(0xE) @ LocP 24B73556-2197-4702-82A8-3E1337DAFBF2 05:333 00:113 AAPL: [EB|#LIMG:DP] Acpi(PNP0A03,0)/Pci(14|0)/Usb(8, 0)/HD(Part2,Sig11259E18) 05:448 00:115 AAPL: [EB|#LIMG:FP] \System\Library\CoreServices\boot.efi 05:554 00:105 AAPL: [EB|#LIMG:OPT] () 05:673 00:119 AAPL: [EB|#RPS] R?0 P?0 S?0 05:790 00:116 AAPL: [EB|OPT:LXF] 'LF (\System\Library\CoreServices\com.apple.Boot.plist) 05:898 00:108 AAPL: [EB|LD:LF] FIO: 0, DIR: 1, P: \\System\\Library\\CoreServices\\com.apple.Boot.plist, DP: 0 06:982 01:083 AAPL: [EB|LD:OFS] Err(0xE) @ OPEN (\System\Library\CoreServices\com.apple.Boot.plist) 07:087 00:104 AAPL: [EB|OPT:LXF] Err(0xE) @ 'LF 07:195 00:108 AAPL: [EB|OPT:LXF] 'LF (Library\Preferences\SystemConfiguration\com.apple.Boot.plist) 07:307 00:111 AAPL: [EB|LD:LF] FIO: 0, DIR: 1, P: Library\\Preferences\\SystemConfiguration\\com.apple.Boot.plist, DP: 0 07:435 00:128 AAPL: [EB:#KF] () 07:540 00:105 AAPL: [EB|#MBA:CL] () 07:654 00:113 AAPL: [EB|#MBA:NV] (-v keepsyms=1 debug=0x100 alcid=1) 07:763 00:109 AAPL: [EB|#MBA:KF] () 07:868 00:105 AAPL: [EB|#MBA:OUT] (-v keepsyms=1 debug=0x100 alcid=1) 07:977 00:108 AAPL: [EB|#LOG:VERBOSE] 2020-05-17T21:33:39 08:102 00:125 AAPL: [EB|#RBFU] F: 15 U: 0x0000000000008000 08:211 00:108 AAPL: [EB|#OPT:BM] 0x24083 08:318 00:106 AAPL: [EB|OPT:LXF] 'LF (\System\Library\CoreServices\PlatformSupport.plist) 09:403 01:085 AAPL: [EB|LD:LF] FIO: 0, DIR: 1, P: \\System\\Library\\CoreServices\\PlatformSupport.plist, DP: 0 09:545 00:142 AAPL: [EB|#B:VAw] 09:652 00:107 AAPL: [EB|CS:CSKSD] { 09:760 00:108 AAPL: [EB|CS:CSKSD] Err(0xE) @ GV 8D63D4FE-BD3C-4AAD-881D-86FD974BC1DF:boot-info-payload 09:866 00:105 AAPL: [EB|G:CS] } Ok(0) 09:971 00:105 AAPL: [EB|LD:LF] FIO: 0, DIR: 1, P: <null string>, DP: 1 10:136 00:164 AAPL: [EB|B:SBS] SZ: 617016 10:247 00:111 AAPL: [EB|#B:SHA] fe9e48a334db5bca8b8d8f3d0aa3f18b7dc5ad24 10:351 00:103 AAPL: [EB|WL:PWLFNV] Err(0x5) @ GV wake-failure 10:455 00:104 AAPL: [EB|WL:DT] Err(0x5) @ WL:PWLFNV 10:560 00:105 AAPL: [EB|LD:LKC] BM:R -> (System\Library\PrelinkedKernels\prelinkedkernel) 15:100 04:539 AAPL: [EB|LD:LKFS] } Ok(0) 16:212 01:112 AAPL: [EB|LD:LKC] } Ok(0) 17:305 01:092 AAPL: [EB|#FWFM] 0xFF9FFF3F 17:409 00:104 AAPL: [EB|#FWFT] 0xFD8FF42E 17:514 00:104 AAPL: [EB|#CSR:IN] 0x00000067 17:622 00:108 AAPL: [EB|#CSR:OUT] 0x00000067 17:742 00:119 AAPL: [EB|BST:FBS] { 17:854 00:112 AAPL: [EB|BST:FBS] BA.ADSZ: 0 17:958 00:104 AAPL: [EB|BST:FBS] BA.KSDSZ: 0 18:070 00:111 AAPL: [EB|B:WFDW] Err(0xE), 0 @ LocHB 71B4903C-14EC-42C4-BDC6-CE1449930E49 18:175 00:105 AAPL: [EB|#LOG:DT] 2020-05-17T21:33:49 18:284 00:108 AAPL: [EB|#LOG:EXITBS:START] 2020-05-17T21:33:49

MVDB0110 commented 4 years ago

I also see some unsupported speed mantissa errors for several XHCI ports. With USBInjectAll or with your kext.

danielehrhardt commented 4 years ago

Same Problems with the Razer Blade Stealth 13 Late 2019 with the same CPU

khronokernel commented 4 years ago

@MVDB0110 Came across an AppleLife post regarding Z490 and the issue of _UPC and _PLD being a bit screwed up. Curious if it's the same situation here, can you provide a full ACPI dump?(not just DSDT, would like the SSDTs and such as well)

MVDB0110 commented 4 years ago

Here is my whole usb + DSDT dump: https://drive.google.com/file/d/1d2eGrsXcwI2YihPgQFbPlClSM0xxkGah/view?usp=sharing I hope this is what you need.

khronokernel commented 4 years ago

@MVDB0110 I need all the ACPI tables, not just the DSDT

MVDB0110 commented 4 years ago

Here is my ACPI Dump on Windows: https://drive.google.com/file/d/1t3u0XSFGX7kg0gsgohFtdKYNzrtWSGyB/view?usp=sharing

khronokernel commented 4 years ago

Can you provide the individual tables instead of one large txt file?

MVDB0110 commented 4 years ago

Here is the acpidump in separated .dat files. https://drive.google.com/file/d/19Wg9xaGyd3naukEYn49fpeBLwRa7GLTx/view?usp=sharing

khronokernel commented 4 years ago

Awesome thank you, so here's a few things to try:

Dropping xh_Dell_: ACPI -> Delete

All | Boolean | YES Comment | String | Delete xhDell Enabled | Boolean | True OemTableId | Data | 78685f44656c6c5f TableLength | Number | 0 TableSignature | Data | 53534454

USBInjectAll: See here: https://github.com/Sniki/OS-X-USB-Inject-All/releases

You cannot use the MacBookAir SMBIOS as Sniki hasn't added them yet, I recommend MacBookAir8,1 until USB has been mapped though they should build by themselves without USBInjectAll's help

SSDT-RHUB-STA:

Use this guy:

SSDT-RHUB-OFF.aml.zip

dhinakg commented 4 years ago

Do you have a Windows installation or are you able to install Windows by any chance?

MVDB0110 commented 4 years ago

@khronokernel My USB problem is solved! But now my problem lies with AppleIntelFramebuffer/AppleIntelClocks.cpp "Wrong CD clock frequency 0x249f0000 set by EFI".

MVDB0110 commented 4 years ago

Photo of the kernel panic. https://drive.google.com/file/d/1f7Z6MzVGzz5XheeRXD3ZcpCFl7QQoPAy/view?usp=sharing

khronokernel commented 4 years ago

My USB problem is solved!

Yay! What fixed it specifically?

And regarding clockID, shit. See here: https://github.com/acidanthera/bugtracker/issues/942

We can do a bit more troubleshooting, try -igfxvesa in boot-args to see if it'll go any further

Btw: Your SMBIOS is somehow DELL8215,1, I wanna give a cookie for even being able to boot macOS with that ;p

Have a feeling it's a corrupt SMBIOS table, try these:

MVDB0110 commented 4 years ago

Okay you are a hero. It is booting in the installer (My touchpad isn't recognized tho), so for the installation I will have to use my Dell WD19 (Keyboard/Mouse and Ethernet).

khronokernel commented 4 years ago

Awesome! Though please do report back on what actually fixed the USB issue. Pretty sure USBInjectAll did jack shit but thinking my SSDT was the answer

MVDB0110 commented 4 years ago

Well without USBInjectAll, My XHC ports aren't recognized and I don't proceed in the boot process. But with the SSDT and the blocking of xh_dell all error seem to dissappear except unsupported speed mantissa but I don't believe that is a real error, because the boot process succeeds. I'm installing in russian haha, any idea how to fix that?

khronokernel commented 4 years ago

I'm installing in russian haha, any idea how to fix that?

Troubleshooting page says ;p:

https://dortania.github.io/OpenCore-Desktop-Guide/troubleshooting/troubleshooting.html#macos-installer-in-russian

MVDB0110 commented 4 years ago

Do u want my EFI as-is for your icelake vanilla guide?

khronokernel commented 4 years ago

Nah I'm alright, though will likely do a write up in the ACPI guide on the STA and Table dropping. I'm likely gonna close this issue as the USB's been fixed though would like to figure out the Clock ID mess on the iGPU

MVDB0110 commented 4 years ago

Do you need anything from me for the Clock ID mess?

MVDB0110 commented 4 years ago

Okay I have installed MacOS on the laptop but now I have another problem with the iGPU. It says Could not register with IOFB. GPU SKU: 0. Unsupported ICL sku.

MVDB0110 commented 4 years ago

Now I got into MacOS, but my graphics card doesn't get a kext in system summary it says 35mb and in Ubuntu it says "00:02.0 0300: 8086:8a52 (rev 07)", which means I got the right device id and aapl platformid. Any ideas on how to fix it?

cakehonolulu commented 4 years ago

EDIT: Fixed, boots to installer, installed perfectly fine, no QE/CI 1035G1 UHD G1

MVDB0110 commented 4 years ago

@khronokernel I have fixed the keyboard and trackpad by using VoodooPS2Controller.kext. But I haven't got the iGPU working. I tried device-id 8a520000. With framebuffers 000025a8, 000125a8, 00025a8. I also tried the device-id of the new MacbookPro16,2 (8A53) but it also won't work. Maybe it has something to do with the stolen memory? I did fix the Intel Bluetooth with the kext IntelBluetoothFirmware.kext

x0sy commented 4 years ago

Blade Stealth with the same i7-1065G7 here. Looks like the Iris Plus G7 is cursed for the time being, especially seeing as how the acidanthera team considers 'porting' newer hardware low priority.

Just wanted to add that trying to fake any CFL device IDs and framebuffers hangs with tx_flushes after gIOScreenLockState.

And as the OP mentioned, booting with ICL framebuffers and the boot arg -igfxvesa returns a same-but-different kernel panic indicating "ERROR: Unsupported ICL Sku! instead of the CD clock frequency bit.

@MVDB0110, the device ID for our iGPU is natively supported according to the WEG Intel manual. There shouldn't be a need to have it injected in your config.

k-sym commented 4 years ago

@schwxr how far have you got? Do you get to the installer?

x0sy commented 4 years ago

@schwxr how far have you got? Do you get to the installer?

On my laptop, I have nearly everything working save QE/CI (see above) and sleep (should be working once G7 framebuffers are addressed), but I don't think this is the place to discuss support or my particular build.

The guide has been mostly updated for ICL machines, and the USB and graphics issues (for the G7) have been gone over in this thread.

k-sym commented 4 years ago

On my laptop, I have nearly everything working save QE/CI (see above) and sleep (should be working once G7 framebuffers are addressed)

@schwxr Care to share your EFI (taking out serials, etc, obvs). I have the Blade Stealth (1065G7) and need to work out where the heck I'm going wrong :/

MVDB0110 commented 4 years ago

@ksymmonds maybe you can share your errors and what you have done to solve them? I could also try and help you out.

k-sym commented 4 years ago

@MVDB0110 Successful boot to installer (except for battery and other minor errors), install fine. Boot to OSX from OC menu and Kernel Panics on "Fault CR2:" - "AppleIntelILCGraphics". Why, when it works for the installer, does it not for main boot? It's gonna be something stupid I've missed, hence the EFI request. :)

MVDB0110 commented 4 years ago

@ksymmonds The kernel panics related to IGPU, where mitigated when I injected my own device-id (8a52). Now it recognizes the Iris Plus G7, but it doesn't connect a framebuffer. This is just a bypass so you can boot MacOS.

k-sym commented 4 years ago

@MVDB0110 thanks. I did have that in my config '<0000528A>' - I'll try with a fake one to see if that get me any further.

RickTaylor79 commented 4 years ago

This CD clock frequency error seems to show up for anyone attempting to patch ICL GPUs. From what I can gather this tells us the frequency of the display itself is not what the OS is expecting.

Interestingly, in the list of framebuffer flags available in Hackintool there is:

FBEnableDynamicClock

"Discovered in AppleIntellFramebufferController:: GetFeatureControl

This takes its effect only if SupportDynamicCDCLK in the plist FeatureControl Section is set to 1, otherwise off. Also requires dc6config to be set to 3 (default)"

Looking at the info.plist in AppleIntelICLLPFrameBuffer.kext I see that the SupportDynamicCDCLK is set to 1, however I can't find any reference to dc6config.

Booting with using this patch gives the usual CD clock error so possibly this is a red herring, but maybe not..

matthewdunngeon commented 4 years ago

Hi @khronokernel, my problem is core with i7-1065g7. I couldn't manage to pass very beginning of macOS installation just after boot picker. I've prepared my efi (aml and config file) as per dortania laptop guide. I think problem is about G7. what should I do? Thanks in advance

Following error comes up to the screen: screenshot

Laptop configuration Dell 3593:

OC log file here: opencore-2020-06-16-065843.txt

my EFI folder: EFI.zip

MVDB0110 commented 4 years ago

@matthewdunngeon I have had this issue also. You must set Booter -> Quirks -> RebuildAppleMemoryMap to True and Booter -> Quirks -> SetupVirtualMap to False. Then it will go past this screen.

matthewdunngeon commented 4 years ago

@matthewdunngeon I have had this issue also. You must set Booter -> Quirks -> RebuildAppleMemoryMap to True and Booter -> Quirks -> SetupVirtualMap to False. Then it will go past this screen.

let me try, then write the result thx update: one baby step ahead. passed that mile stone. Bu another problem arised 😢 newshot it seems ps2 keyboard issue

MVDB0110 commented 4 years ago

@matthewdunngeon that there is no ps2 mouse shouldn't be an issue in this stage of the booting process. I do see in your EFI that you do not have an USBInjectAll. https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads/RehabMan-USBInjectAll-2018-1108.zip

k-sym commented 4 years ago

@matthewdunngeon if that doesn't work, keep going as @MVDB0110 says, but try this: https://github.com/Sniki/OS-X-USB-Inject-All/releases As the RehabMan one failed for me.

KhoraLee commented 4 years ago

I tried to install on my lenovo ideapad 3 14iil05 laptop

But i got this kernel panic... Does somebody can help me?

IMG_0272

EFI.zip

k-sym commented 4 years ago

@KhoraLee not sure if this will help, but add a "device-id" to your PciRoot(0x0)/Pci(0x2,0x0) and try the value of <8A520000>. I found the platform-id alone wasn't sufficient in my case.

Screenshot 2020-06-17 at 17 15 32

k-sym commented 4 years ago

@MVDB0110 - your suggestion worked, BTW, hence I was able to answer the above. All credit for that goes to you :)

k-sym commented 4 years ago

@schwxr what did you do to get the Trackpad working? GPIO pinning? (Still fishing for your EFI lol)