Jump to content

Leoyzen

Members
  • Posts

    173
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Leoyzen

  1. On 12/21/2019 at 12:13 AM, Skitals said:

    https://wiki.unraid.net/Building_a_custom_kernel

     

    As the warning notes this is very outdated, but the basic steps are the same. If you can't adapt this (substituting the proper packages, kernel source, headers, download the correct unraid package and applying the unraid .patches, etc) you are probably in over your head. 

     

    https://gist.github.com/gfjardim/c18d782c3e9aa30837ff

     

    This script is slightly newer, which you can also analyze to see the basic steps. If you need guidance beyond that I would say building a custom kernel is ill advised.

     

    On 1/13/2020 at 4:53 AM, bubbl3 said:

    I really appreciate this kind of work, would be wonderful if you could explain how you compiled it and/or how to compile kernel modules. I am trying to add support for RTL8156 USB3 2.5G chipset and finding many hurdles.

    The compiling procedure updated in the main thread.

    • Like 1
  2. 5 hours ago, meep said:

    So I'm having a torrid time attempting to get  HEVC enabled on my RX570 in Mojave VM. Hopefully someone here can offer some insights.

     

    I have a long-standing Mojave VM booting from a physical SSD.  EFI partition is on the SSD as well, so only one disk configured in VM XML.

     

    Clover v. 4xxx is installed in EFI. RX570 is passed through and is working with Metal support and H.265 reported in VidProc. HEVC remains resolutely disabled in VidProc despite my best attempts.

     

    I've configured my SMBIOS to  be a wide variety of systems from MacPro 1,1 through 7,1 and iMacPro 1,1, all to no avail.

     

    There are a few points of note;

    • I cannot get Clover to load Lilu/WEG from the /other folder. I must install to /library/extensions using HackInTool for it to show as loaded in ioRegistry. (I have checked that load kexts is set to 'yes' in clover configurator)
    • Despite WEG being loaded, my GPU remains stubbornly attached to parent S28@5 in ioRegistry. I understand this should be GFX0 - but I cannot make this happen
    • I've tried updating to Clover 5xxxx but this just hangs at 'scanning devices'. (I understand that newer versions are more trouble than they are worth - I just thought an update might load kexts from 'other'.

     

    The VM is running very smoothly and is very stable. i'd just like to have it as close to bare metal as possible and HEVC is that elusive functionality I'm chasing.

     

    I want to make one last attempt at this before I go through a full fresh install.

     

    Any tips appreciated.

     

     

     

    If you trying to get HEVC/H265 HW work, you must set SMBios to iMacPro1,1 or MacPro7,1 (also latest WEG and Lilu), others won't work without iGPU.

    Does you Lilu and WEG are latest version? I add a patch adding QEMU support for Lilu after 1.3.9, so you must be sure Lilu and WEG is latest.

    Those extension works well for me when located in others folder, so something must be wrong.

     

    I'm using clover 5099 which works fine for me now.

  3. On 11/22/2019 at 6:08 AM, Balooforever said:

    For Lilu, my RX480 work with metal, I don t understand why I need 1.39 (I use 1.38)

     

    On 11/22/2019 at 6:12 AM, ghost82 said:

    I don't know why your gpu works, but not for lilu 1.3.8 for sure

    Metal support works without Lilu when using RX480.

    Lilu/WEG fixes lots of things like DP black screen when using DP, add h264/hevc hardware accerlation and etc.

     

    16 hours ago, ghost82 said:

    I'm afraid that topology is not working in mac os, unless you use Penryn as emulated cpu, check system profiler.

     

    No, the topology still works, but the packages is wrong, maybe just cosmic.You can see the hyperthreading recognization is correct in some app monitoring and gain a little performance improved.(The MacOS use the real core as many as possible instead treat the hyperthreading core as a real core).

    • Like 1
  4. 4 hours ago, ghost82 said:

    Finally, by applying the patch in opencore mac os boots successfully and I can apply topology in the xml of the vm.

    However, mac os system profiler shows 16 cores/16 processors..

     

    sp.png.a5d1b04c6f7114c720270f546ef93378.png

     

    Without the patch there's a kernel panic related to x86_validate_topology, so the patch works, but for some reasons this does not make any difference in mac os.

     

    PS: shouldn't be not needed this patch in opencore after @Leoyzen commit to github? Latest compiled developer opencore is not able to boot without this kernel patch for me.

    The kernel patch is still needed in hackintosh VM.

    The wrong process number is about the thing I mentioned before, we should use some other patches to make it work by digging the xnu source code but I don't have much time recently.

     

    6 hours ago, ghost82 said:

    Latest UsbKbDxe.efi (latest developer version compiled by me at the time of writing) doesn't work: opencore hangs at tiano core logo.

    The same for me. I can't use my keyboard during Opencore booting procedure.

    • Like 1
  5. On 11/17/2019 at 6:05 PM, ghost82 said:

    Is the disable x86 cpu topology patch specific to AMD/Ryzen?

    Cannot make it to work with intel cpu..

    Not only AMD/Ryzen, but also Intels in a VM.

    You can find the latest patch from AMD_Vanilla.

     

    The behaviors in a VM is quite similar with AMD Vanilla, some patches is useful for us too(like we have wrong CPU package number when passthrough with topology).

    I'm trying to get understand of those patches to find out which works for a VM.

    1. <algrey - cpu_topology_sort -disable _x86_validate_topology>: remove the topology check to get our QEMU/Libvirt topology work.
    2. <algrey - cpuid_set_cache_info - don't set cpuid_cores_per_package>: This seems needed by us too, we get wrong "packages count" if we set topology/passthrough of the cpu.But it may need some other patches.
    3. <algrey - cpuid_set_generic_info - disable check to allow leaf7>: use this patch you can get enhancement features(avx2, fmi and etc) works too for using Penryn
    On 11/17/2019 at 10:48 PM, phyzical said:

    ive got a catalina vm running  but having trouble passing through a usb controller, i understand i need to rename EHC1->EH01 and EHC2->EH02, which i have done via clover configuration ACHI patches and i have copied injectallusb.kext and applied the patches following this guide

    I don't recommand to use InjectAllUSB.kext, using XHC USB Kext Creation Guideline instead like I did.

    You can get a USBPorts.kext anywhere without InjectAllUSB.kext.

    image.thumb.png.ce1a41a64a48211c782d503e58a7ba91.png

    image.thumb.png.ff142cbf57aa16204b22a87c0d8e6ec2.png

    On 11/17/2019 at 11:28 PM, ghost82 said:

    I have a awus036nh usb wifi: at the time of writing, alfa network does not have any working driver for Catalina (10.15 and 10.15.1).

    I found that this package works well and it's stable:

    Is the handoff working with USB Wifi? I switched the onboard M.2 Wifi to get my handoff work. I don't want to use my only one pcie-1x to be a wifi card because I want to insert a USB controller card too. So if usb wifi works well with handoff, I'll give it a try.

  6. On 11/15/2019 at 1:22 AM, ghost82 said:

    But from ioreg it seems that EC and USBX are loaded and AppleBusPowerController is loaded too, so I should be ok..Am I right?

    Yeah, if it loaded with some kUSBPower attributes then you don't need the kext.

    The USBPower.kext only works in catalina for those have problem with usb power such as phone/iphone charging(you can find some usb power errors in your log), you don't need UIAC SSDT or USBX.kext(but it seems that your controller works OOB) . 

     

    And the USBPorts.kext is the mapping for my X570 onboard USB, you have to make it for your own.May be cosmic maybe not, I'm not quite sure now.

  7. 7 hours ago, ghost82 said:

    do you refer to fl1100 chipset/Inateck card or other chipsets/cards

    I don't know, I don't have third party cards. But it is safe to put the kext in your folder in case something wrong.

     

    7 hours ago, ghost82 said:

    From what I'm reading the new modification to "fix handling agdpmod" is causing problems.

    Yeah, I'm not upgrading since 10.15.0 because everything is stable for me now.

     

    Here is the USBPower kext and the Ports mapping kext (for my MSI X570 Ace).

    USBPower.kextUSBPorts.kext

    • Like 1
  8. 9 hours ago, ghost82 said:

    I just installed in my box the Inateck kt4006 card: it has 2 usb 3.0 ports (external) and one 19 pins connector for additional 2 ports (to connect for example 2 ports on the front panel of the case).

    As supposed, it works out of the box in mac os, I tried with catalina 10.15.1 (19B88): it automatically loads the AppleUSBXHCIFL1100 driver, so no need to install any third party kext.

    I have no problems and it has the RESET option.

    Just modify the Syslinux Configuration (to append vfio-pci.ids) of Unraid OS and passthrough the pci device to the vm.

    There definately something should be done for proper functionality, otherwise you will get power issues(AppleBusPowerController).

    I use USBPower.kext in Catalina to fix the usb power and error log issues.

     

    https://www.tonymacx86.com/threads/guide-usb-power-property-injection-for-sierra-and-later.222266/

     

    • Like 1
  9. 27 minutes ago, Young_Max said:

    I add  AppleIntelMCEReporter.kext , it's useless.

    It's not useless, add it back.You don't have much knowledge whether the specific kext is work, so do it.

     

    Add this patch in your clover and add '-v keepsyms=1 debug=0x100' in your boot args and report the output back.Then screenshot you post is useless for debuging.

    Comment    String  <-> Disable panic kext logging on 10.14.x,10.15.x Release kernel
    Disabled   Boolean <->No
    Find       Data<-> 8A0284C0 7447
    MatchOS    String <-> 10.14.x,10.15.x
    Replace    Data<-> 8A0284C0 EB47

     

  10. 12 hours ago, Young_Max said:

    @Leoyzen I  add the lasted Lilu/WEG to my clover/kexts/others ,it's fine. And I add AppleIntelMCEReporter.kext ,no problem. Then I use IMacPro1,1 as product model, boot failed and restart all the time

    We can not give much help if you give nothing but only "it restarts all the time". You have to learn how to asking for help by giving meaningful feedback first.

    1. Which version of Catalina do you use?10.15 or 10.15.1?
    2. Do you add "-v" and "debug=0x100" in your boot args?What is the output?
    3. Which version of Lilu/WEG do you use?
    4. What error is it?Screenshot is also fine.
    5. What is your xml like?
    6. What is your clover.qcow2 structuration?
    20 hours ago, Young_Max said:

    And the launch logo is in the upper left

    You may try to do some research or reading by comments of the older installer guide, then you will find it is not a big problem by changing the resolution of clover and OVMF.Please search the keyword in Google to see how to do such thing.

×
×
  • Create New...