Guest Posted January 5, 2020 Share Posted January 5, 2020 (edited) I am trying to do a serial kernel debug with an USB serial port adapter connected via cable to a Windows 64 bit pc and using on it terminal app (https://sites.google.com/site/terminalbpp/) and CoolTerm (https://freeware.the-meiers.org/) My goal is to have some useful data to share to devs/coder with some interst on AMD trx40 new platform using opencore debug 0.53 and boot arg flag debug=0x11448 I can't see any printed value or useful info in log Any advice about it? Edited January 5, 2020 by Guest Link to comment Share on other sites More sharing options...
Andrey1970 Posted January 6, 2020 Share Posted January 6, 2020 10 hours ago, fabiosun said: I am trying to do a serial kernel debug with an USB serial port adapter connected via cable to a Windows 64 bit pc and using on it terminal app (https://sites.google.com/site/terminalbpp/) and CoolTerm (https://freeware.the-meiers.org/) My goal is to have some useful data to share to devs/coder with some interst on AMD trx40 new platform using opencore debug 0.53 and boot arg flag debug=0x11448 I can't see any printed value or useful info in log Any advice about it? But for USB serial port adapter need driver. Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2020 Share Posted January 6, 2020 3 hours ago, Andrey1970 said: But for USB serial port adapter need driver. You mean a driver for opencore bootloader? in windows i have it for opencore no Link to comment Share on other sites More sharing options...
bondpham Posted January 6, 2020 Share Posted January 6, 2020 (edited) I followed this tutorial https://github.com/khronokernel/Opencore-Vanilla-Desktop-Guide/blob/master/AMD/NullCPU-patch.md, after I deleted nullcpupowermanagement.kext, my Ryzen got panic: "Setting P-Limit is unsupported on this system" EFI.zip Edited January 6, 2020 by bondpham Link to comment Share on other sites More sharing options...
Mike Ranger Posted January 6, 2020 Share Posted January 6, 2020 I have another question regarding Quirks that are built into OpenCore Currently for my system to boot, I need at least: Comment String <-> 5960XPatch 10.14 by PMHeart Disabled Boolean <-> No Find Data<-> 483D0000 0040 InfoPlistPatch Boolean <-> No MatchOS String <-> 10.14.x,10.15.x Name String<-> IOPCIFamily Replace Data<-> 483D0000 0080 and Comment String <-> _xcpm_pkg_scope_msrs by JamesK Disabled Boolean <-> No Find Data<-> 31D2E879 FDFFFF MatchOS String <-> 10.15.x Replace Data<-> 31D29090 909090 In Clover, both are not needed if the XCPMKernel Flag is selected. Without, the system will not boot. Is this functionality covered in OpenCore as well through a quirk? Thanks, Mike Link to comment Share on other sites More sharing options...
Paksman Posted January 6, 2020 Share Posted January 6, 2020 Is it possible to disable XCPM in opencore for Skylake cpu ? I’m asking this because in clover i had FakeCpuId 0x0306a0 and NullCpuPowerManagement.kext so that HWP could work without XCPM. In opencore, I tried to set emulate CpuIdData A0060300 and CpuIdMask FFFFFFFF but boot fails with that settings. Link to comment Share on other sites More sharing options...
Andrey1970 Posted January 6, 2020 Share Posted January 6, 2020 7 hours ago, fabiosun said: You mean a driver for opencore bootloader? in windows i have it for opencore no On the side OpenCore you have the real serial port? Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2020 Share Posted January 6, 2020 (edited) 1 hour ago, Andrey1970 said: On the side OpenCore you have the real serial port? no logilink usb to serial adapter my trx40 motherboard and many Others do not have real serial port Edited January 6, 2020 by Guest Link to comment Share on other sites More sharing options...
mhaeuser Posted January 6, 2020 Share Posted January 6, 2020 How is that supposed to work then without a driver? Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2020 Share Posted January 6, 2020 (edited) I am asking because i do not know A pci express serial card could be seen by default? Otherwise no serial debug is possible for normal user on many TRX40 motherboard Edited January 6, 2020 by Guest Link to comment Share on other sites More sharing options...
mhaeuser Posted January 6, 2020 Share Posted January 6, 2020 PCI could work better, yes. Any basic initialisation needed could be performed from UEFI, assuming such is needed. However you'd need to make sure macOS supports logging to such a device Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2020 Share Posted January 6, 2020 thank you Have you others advices for this task? i am asking because in opencore pdf configuration there is a section where serial port debugging is discussed Link to comment Share on other sites More sharing options...
mhaeuser Posted January 6, 2020 Share Posted January 6, 2020 I haven't debugged XNU so far and OpenCore is not really related at all (we plan to provide initialisation code at some point thought, that might help you with the first part). Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2020 Share Posted January 6, 2020 My goal was to understand if it is a problem of kernel Patches available at this moment or a bootloader problem, in a previous message you were talking about a serial debug so i started from there with limited knowdlege thank you agai for your advice Link to comment Share on other sites More sharing options...
mhaeuser Posted January 6, 2020 Share Posted January 6, 2020 (edited) yeah, you serial debug XNU to retrieve the KP log, but that is not related to OC EDIT: You could also try to mod the kernel to dump thr KP to NVRAM, but yet again I cannot help you with that and it is offtopic Edited January 6, 2020 by Download-Fritz Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2020 Share Posted January 6, 2020 i know you are not interested on AMD development have you an idea about this problem? (mem map allocation error in early stage i mean) Link to comment Share on other sites More sharing options...
mhaeuser Posted January 6, 2020 Share Posted January 6, 2020 the solution to that is DevirtualiseMmio=true, which causes an early kernel crash... I heard whitelisting did not work, but it's not a report I trust. I expected you did all that already Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2020 Share Posted January 6, 2020 (edited) i miss latest part (whitelisting) because i have understood you say it was not useful DevirtualizeMmio produces an early kernel crash as you said (not info from this on screen) Edit sorry seen now offtopic message Edited January 6, 2020 by Guest typo Link to comment Share on other sites More sharing options...
Rocky12 Posted January 6, 2020 Share Posted January 6, 2020 How to Set Up Kernel Debugging in Windows Link to comment Share on other sites More sharing options...
tmbt Posted January 7, 2020 Share Posted January 7, 2020 On 1/4/2020 at 9:29 PM, Andrey1970 said: Try Thank you !! I've compiled it and it solved my power management problem. Before i got 1.8PKG on intel power gadget while now i'm back on 0.8PKG (as was before when i was using a normal SSD)! Thanks to all the devs !! Mattia Link to comment Share on other sites More sharing options...
ganthore Posted January 7, 2020 Share Posted January 7, 2020 I'm surprised to see OpenCore almost working 100% on my first try... I have one issue that I'm not sure how to debug... I use a separate encrypted APFS NVME that contains all of my /Users data. This disk normally auto mounts at boot, but I've noticed that it no longer works when I boot with OpenCore (Note it works fine booting though Clover). When I open the disk utility, I can see the disk, but it's greyed out and I don't seem to have an option to decrypt/mount the disk. It feels like File Vault is simply non-functional. When I read through the OpenCore related data, it mentions how AppleImageLoader is not needed so I never bother loading it into my configuration. Link to comment Share on other sites More sharing options...
audiohackintosh Posted January 7, 2020 Share Posted January 7, 2020 Hello been trying to switch from clover to OpenCore but nothing seems to be working. I get the dreaded black screen and stuck at 19:465 00:031 Prelinked status - Success Here's my log and EFI. Thanks for any help you can give. Tried 18,1 and 19,2 SMBIO | [CPU][Intel Core i7-8700K 3.7 GHz 6-Core Processor] | [CPU Cooler][Corsair H100i v2 70.69 CFM Liquid CPU Cooler] | [Motherboard][MSI Z370M GAMING PRO AC Micro ATX LGA1151 Motherboard] | [Memory][G.Skill Trident Z 16 GB (2 x 8 GB) DDR4-3200 Memory] | [Storage][Samsung 850 EVO-Series 500 GB 2.5" Solid State Drive] | [Video Card][Asus Radeon RX 580 8 GB ROG STRIX Video Card] EFI.zip opencore-2020-01-07-022337.txt Link to comment Share on other sites More sharing options...
ken394 Posted January 8, 2020 Share Posted January 8, 2020 1 hour ago, audiohackintosh said: Hello been trying to switch from clover to OpenCore but nothing seems to be working. I get the dreaded black screen and stuck at 19:465 00:031 Prelinked status - Success Here's my log and EFI. Thanks for any help you can give. Tried 18,1 and 19,2 SMBIO | [CPU][Intel Core i7-8700K 3.7 GHz 6-Core Processor] | [CPU Cooler][Corsair H100i v2 70.69 CFM Liquid CPU Cooler] | [Motherboard][MSI Z370M GAMING PRO AC Micro ATX LGA1151 Motherboard] | [Memory][G.Skill Trident Z 16 GB (2 x 8 GB) DDR4-3200 Memory] | [Storage][Samsung 850 EVO-Series 500 GB 2.5" Solid State Drive] | [Video Card][Asus Radeon RX 580 8 GB ROG STRIX Video Card] EFI.zip opencore-2020-01-07-022337.txt Not an expert by any means but: Get rid of all clover stuff clean out kexts to only necessary ones compile latest OC and create new config.plist using sample in doc's folder I run a z390 board with a 580 and need no boot arg. i would think that is true on a 370 board It is necessary to read the Reference Manual to get a viable system Link to comment Share on other sites More sharing options...
audiohackintosh Posted January 8, 2020 Share Posted January 8, 2020 1 minute ago, ken394 said: Not an expert by any means but: Get rid of all clover stuff clean out kexts to only necessary ones compile latest OC and create new config.plist using sample in doc's folder I run a z390 board with a 580 and need no boot arg. i would think that is true on a 370 board It is necessary to read the Reference Manual to get a viable system Hmm I followed the vanilla guide pretty exactly at first but that didn't work so I started porting over what worked on my clover config and still no luck. I'll try one more time but I'm not really expecting any different result. Link to comment Share on other sites More sharing options...
junologue Posted January 9, 2020 Share Posted January 9, 2020 Anyone knows how to get proper temp sensor info on my Radeon RX 5700? In HWMonitorSMC2 i see VRAM and Utilization. Link to comment Share on other sites More sharing options...
Recommended Posts