Jump to content

MaLd0n

Moderators
  • Content Count

    21,029
  • Joined

  • Last visited

  • Days Won

    224

Reputation Activity

  1. Like
    MaLd0n reacted to headkaze in USBInjectAll Quirk   
    I don't currently have OpenCore working so I'm providing this information for whomever wants to take up the task of writing this quirk. This is based on information from USBInjectAll by Rehabman.
     
    Please take a look at the following file: https://github.com/Sniki/OS-X-USB-Inject-All/blob/master/USBInjectAll/USBInjectAll-Info.plist
     
    Essentially the USBInjectAll Quirk should inject the following ports if the appropriate PCI controller is present.
     
    EDIT: @vit9696 has stated that OpenCore will not inject ACPI data and therefore a quirk like this is likely never to exist.
     
    PR11 = 0x1D100000 (HUB1)
    PR21 = 0x1A100000 (HUB2)
    PR11 = 0x1D1x0000 (HPxx)
    PR21 = 0x1A1x0000 (HPxx)
    XHCx - 0x14xx0000 (HSxx, SSxx)
    EHx1 - 0x1Dxx0000 (PRxx)
    EHx2 - 0x1Axx0000 (PRxx)
     
    1. Enumerate PCI device's
        - Read device-id, vendor-id
     
    2. Intel only
        - vendor-id != 0x8086 continue
     
    3. device-id == 0x1c26
        * Inject EHx1 ports:
        - name: PR11, PR12, PR13, PR14, PR15, PR16, PR17, PR18
        - port (Data): 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8
        - UsbConnector: 255 (PR11), 0 (PR12 - PR18)
        - locationID: 0x1Dxx0000
        - IOProviderClass: AppleUSBEHCIPCI
        - port-count (Data): 0x8
        
        * Inject HUB1 ports:
        - name: HP11, HP12, HP13, HP14, HP15, HP16, HP17, HP18
        - port (Data): 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8
        - portType: 0
        - locationID: 0x1D1x0000
        - IOProviderClass: AppleUSB20InternalHub
        - port-count (Data): 0x8
     
    4. device-id == 0x1c2d
        * Inject EHx2 ports:
        - name: PR21, PR22, PR23, PR24, PR25, PR26
        - port (Data): 0x1, 0x2, 0x3, 0x4, 0x5, 0x6
        - UsbConnector: 255 (PR21), 0 (PR22 - PR26)
        - locationID: 0x1Axx0000
        - IOProviderClass: AppleUSBEHCIPCI
        - port-count (Data): 0x6
     
        * Inject HUB2 ports:
        - name: HP21, HP22, HP23, HP24, HP25, HP26, HP27, HP28
        - port (Data): 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8
        - portType: 0
        - locationID: 0x1A1x0000
        - IOProviderClass: AppleUSB20InternalHub
        - port-count (Data): 0x8
     
    5. device-id == 0x1e31, 0x8xxx, 0x9cb1, 0x9dxx, 0x9xxx, 0xa12f, 0xa2af, 0xa36d
        * Inject XHCx ports:
        - 8086_1e31: HS01, HS02, HS03, HS04, SS01, SS02, SS03, SS04
        - 8086_8xxx: HS01, HS02, HS03, HS04, HS05, HS06, HS07, HS08, HS09, HS10, HS11, HS12, HS13, HS14, SS01, SS02, SS03, SS04, SS05, SS06
        - 8086_9cb1: HS01, HS02, HS03, HS04, HS05, HS06, HS07, HS08, HS09, HS10, HS11, SS01, SS02, SS03, SS04
        - 8086_9dxx: HS01, HS02, HS03, HS04, HS05, HS06, HS07, HS08, HS09, HS10, SS01, SS02, SS03, SS04, SS05, SS06, USR1, USR2
        - 8086_9xxx: HS01, HS02, HS03, HS04, HS05, HS06, HS07, HS08, HS09, SS01, SS02, SS03, SS04
        - 8086_a12f: HS01, HS02, HS03, HS04, HS05, HS06, HS07, HS08, HS09, HS10, HS11, HS12, HS13, HS14, SS01, SS02, SS03, SS04, SS05, SS06, SS07, SS08, SS09, SS10, USR1, USR2
        - 8086_a2af: HS01, HS02, HS03, HS04, HS05, HS06, HS07, HS08, HS09, HS10, HS11, HS12, HS13, HS14, SS01, SS02, SS03, SS04, SS05, SS06, SS07, SS08, SS09, SS10, USR1, USR2
        - 8086_a36d: HS01, HS02, HS03, HS04, HS05, HS06, HS07, HS08, HS09, HS10, HS11, HS12, HS13, HS14, SS01, SS02, SS03, SS04, SS05, SS06, SS07, SS08, SS09, SS10, USR1, USR2
        - port (Data): 0x1, 0x2, ... n
        - UsbConnector: 3
        - locationID: 0x14xx0000
        - IOProviderClass: AppleUSBXHCIPCI
        - port-count (Data): n
     
  2. Like
    MaLd0n reacted to Sherlocks in [Pre-Release] macOS Catalina 10.15.4   
    @everybody
     
    please report.!
    here is fix file. 
    EFI-FIX.zip
  3. Like
    MaLd0n got a reaction from Rocky12 in (Partial) success: MSI Z390 + i5 9600K   
    -replace full clover folder
    CLOVER.zip
    -Install clover again
    Clover_v2.4k_r4919.pkg.zip
    -reboot and run app
    RunMe.app
     
    up files here
  4. Like
    MaLd0n got a reaction from Rocky12 in Hackintosh doesnt boot after DSDT patch   
    looks good
    test audio, brightness key, audio, etc, let me know
  5. Like
    MaLd0n got a reaction from Rocky12 in Hackintosh doesnt boot after DSDT patch   
    use it
    EFI.zip
    reboot and extract one full dump
    https://www.olarila.com/files/Utils/RunMe.app.zip
    https://www.youtube.com/watch?v=k9wmIfGLe3A
  6. Like
    MaLd0n reacted to vector sigma in Clover.app testing   
    Not yet fully functional.... but the "core" of our Property List Editor (in art called plist editor) is here:

     
    after five days that almost every activities already stop and closed, today it is my first day of full stop of every things. Looks like We're now living in the world of void due to the Corona Virus and I wrote thousands of lines of code in no time... just to pass the time . 
  7. Like
    MaLd0n got a reaction from xapoiii in P7P55D-E LX - "SATA Warning: Enable Drive PHY PM failed."   
    http://www.insanelymac.com/forum/files/file/436-ahciportinjectorkext/
  8. Like
    MaLd0n got a reaction from Neek in AudioGod's Aorus Z390 Pro Patched DSDT Mini Guide and Discussion   
    SSDT is a non-sense way for incomplete solution
    check apple tables, dsdt from iMac19,1 serie 300 have 8k lines, our dsdt serie 300 have 50k+(many trash), is impossible a perfect way with ssdt
  9. Haha
    MaLd0n reacted to AudioGod in AudioGod's Aorus Z390 Pro Patched DSDT Mini Guide and Discussion   
    Hi, what’s with the big writing? Hahahaha
    my bios profile is made for the non WiFi version of the board and won’t work on yours. You will need to unlock your MSR yourself I’m afraid but if that’s a bit much for you then just leave it locked. My EFIs. Will work both ways just check the notes is you want to use OC
  10. Thanks
  11. Thanks
    MaLd0n got a reaction from Onay Rodriguez in [Guide] Sierra / High Sierra / Mojave / Catalina on mobos Serie 100 / 200 / 300 / SkyLake / KabyLake / CoffeeLake DSDT   
    DSDT.aml.zip
    iMacPro1,1 is a good solution with IGPU enable
  12. Like
    MaLd0n got a reaction from williamdc in [Success] Lenovo Ideapad 320 15lkb 81BT   
    CLOVER.zip
  13. Like
    MaLd0n reacted to n.d.k in Customized OpenCore with additional features   
    Here's the final default look, and new commits already on both versions Fork and Driver.
    There are 4 new png files background.png, background4k.png, selector.png and selector4k.png.
    Icons size can be 128px/256px
    Selector size can be 144/288px
     
    I don't have 256px for the default theme, so they are still 128px scaling up 200% for 4k screen.
     

  14. Like
    MaLd0n reacted to eSaF in AudioGod's Aorus Z390 Pro Patched DSDT Mini Guide and Discussion   
    Nah Bro you just stating facts, MaLd0n is one of the few who's work I follow closely
  15. Like
    MaLd0n reacted to AudioGod in AudioGod's Aorus Z390 Pro Patched DSDT Mini Guide and Discussion   
    @MaLd0n Is the Jedi Master of this world, Without him all my work would be for nothing. I bow to he's mighty powers and always will and am dedicated decibel of he's and what he says goes simple as. Thats enough brown nosing from me now... 
     
  16. Like
    MaLd0n got a reaction from AudioGod in AudioGod's Aorus Z390 Pro Patched DSDT Mini Guide and Discussion   
    gpu and audio hdmi fix
    DSDT.aml.zip
  17. Like
    MaLd0n got a reaction from AudioGod in AudioGod's Aorus Z390 Pro Patched DSDT Mini Guide and Discussion   
    DSDT.aml.zip
  18. Like
    MaLd0n got a reaction from Rocky12 in Random kernel panic on shutdown/reboot and nvram problem   
    DSDT.aml.zip
  19. Like
    MaLd0n reacted to ludufre in [Guide] Gigabyte GA-Z370N-WIFI + i7 8700K + UHD 630 + Mojave 10.14.6   
    New guide available for macOS Catalina 10.15!
     
     
    Installing macOS Mojave 10.14.6 on Gigabyte Z370N WIFI + i7 8700K + UHD 630



    Changelog:
     
    09/01/2019 15:57h GMT-0
    - Updated to 10.14.6.
     
    06/10/2019 00:44h GMT-0
    - Completely rewritten.
     
    10/17/2018 08:12h GMT-0
    - Fix Kexts permissions commands adjusted.
    - Removed FrameBuffer patch that is not needed.
    - Added audio solution and HDMI.
    - Unfortunately DisplayPort does not work.
    - Replaced Wifi/BT with DW1560 (BCM94352Z)
     
    10/11/2018 04:15h GMT-0
    - Added USB 3.0 patch.
    - Adjusted some steps.
    - Changed text formatting.
     
    10/11/2018 03:42h GMT-0
    - Added missing UEFI configuration.
     
    10/07/2018 00:36h GMT-0
    - First version.
     
    What works and what does not
     
    - Processor: Intel Core i7-8700K ->  Work. All SpeedStep stages.
    - Video Card: Intel UHD 630 ->  Work. QE/CI and Metal.
    - Chipset: Intel Z370 ->  Work.
    - HDMI 2.0 (1st) ->  Work.
    - HDMI (2nd) ->  Work.
    - DP ->  Not tested yet.
    - Audio: ALC1220 ->  Work.
    - HDMI Audio ->  Work.
    - WiFi/Bluetooth ->  Not work. Replaced with BCM94360CS2.
    - Ethernet (1st) ->  Work.
    - Ethernet (2nd) ->  Work.
    - USB3.0 ->  Work.
    - Sleep ->  Work.
    - Airdrop, Handoff, Instant Hotspot and Continuity ->  Work after replaced wireless.
     
     
    Todo
     
    - Make audio work.
    - Make HDMI audio work.
    - Test DisplayPort.
    - Make second ethernet work.
    - Replace Wifi/Bluetooth.
    - Test DP.
     
    What you need to install

    - Running install of macOS
    - One USB flash drive of 8GB or bigger
    - macOS Mojave install app
    - Clover Configurator
    - Clover EFI
    - Clover Configurator
    - Some KEXTs and SSDT patches


    How create create the install flash drive
     
    Prepare install flash drive

    Format the flash drive with GUID partition mapping and name it "Install".

    - Open Disk Utility.
    - Click in View, then "Show All Devices".
    - Select the destination flash drive, then Erase.
    - Name: Install, Format: Mac OS Extended (Journaled) and Scheme: GUID Partition Map
     
    Create install flash drive

    Open terminal and run this command:
    sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/Install --nointeraction This will take about 30 minutes. / 8 minutes with USB 3.0
     
     

    Install bootloader

    Download the CloverEFI (used 5058, from Automated Clover Builds) and install with this options on "Install macOS Mojave":
     
    - Install for UEFI booting only
    - Install Clover in the ESP
    - UEFI Drivers - Recommended drivers (check all)
    - UEFI Drivers - Human Interface Devices (check all)
    - UEFI Drivers - FileVault 2 UEFI Drivers (check all, If you are going to use FileVault)
    - UEFI Drivers - Additional drivers - NvmExpressDxe (if you are going to use NVMe)


     
     
    Make things works
     
    We'll make a full working flash drive, so follow these instructions:
     
    Will be mounted the EFI partition of the flash drive.
     
    Open the the /Volumes/EFI/CLOVER/config.plist inside this new partition with Clover Configurator (used 5.5.0.0)
     
    Important modifications
     
    config.plist
     
    ACPI Page
     
    - Check: SSDT - PluginType
     
    BOOT Page
     
    - Add: Arguments - darkwake=2
    - Check: Legacy - XMPDetection=Yes
     
    KERNEL AND KEXT PATCHES Page
     
    - Check: KernelPm
     
    RT VARIABLES Page
     
    - Change: CsrActiveConfig - 0x3E7
     
    SMBIOS Page
     
    - Change: Macmini8,1 - Mac mini (Late 2018) | Intel Core i7-8700B @ 3.20 GHz

     
    - Click: Generate New (few times in the two buttons)

     
     
    Need some Kexts in the folder /EFI/CLOVER/kexts/Other/
     
    - Download the HWSensors 3 from here. I used the FakeSMC.kext, ACPIMonitor.kext, ITEIT87x.kext and IntelCPUMonitor.kext inside of DMG version r240.
    - Download the Lilu.kext from here. I used the version 1.3.8.

     
    Intel UHD 630
     
    ACPI Page
    - Uncheck: Fixes - AddHDMI
    - Uncheck: Fixes - FixDisplay
    - Uncheck: Fixes - FixHDA
     
    GUI Page
    - Change: Screen Resolution - 3840x2160 (My monitor is 4K)

    Need a Kext in the folder /EFI/CLOVER/kexts/Other/
     
    - Download the WhateverGreen.kext from here. I used the version 1.3.1.

     
    Audio ALC 1220 and HDMI audio

    BOOT Page
    - Add: Arguments - alcid=11

    DEVICES Page
    - Change: Audio - Inject - 11
    - Uncheck: Audio - AFGLowPowerState
    - Uncheck: Audio - ResetHDA

    Need a Kext in the folder /EFI/CLOVER/kexts/Other/
     
    - Download the AppleALC.kext from here. I used the version 1.4.0.

     
    All USBs (2.0, 3.0, Type-C, internal)
     
    KERNEL AND KEXT PATCHES Page - KextsToPatch
     
    - Name*: com.apple.iokit.IOUSBHostFamily
    - Find* [HEX]: 83FB0F0F
    - Replace* [HEX]: 83FB3F0F
    - Comment: USB Port Limit Patch 1 PMHeart/DalianSky
    - MatchOS: 10.14.x
     
    - Name*: com.apple.iokit.IOUSBHostFamily
    - Find* [HEX]: 83FB0F0F
    - Replace* [HEX]: 83FB3F0F
    - Comment: USB Port Limit Patch 2 PMHeart/DalianSky
    - MatchOS: 10.14.x
     
    - Name*: com.apple.driver.usb.AppleUSBXHCI
    - Find* [HEX]: 83FB0F0F
    - Replace* [HEX]: 83FB3F0F
    - Comment: USB Port Limit Patch 3 PMHeart/DalianSky
    - MatchOS: 10.14.x
     
    - Name*: com.apple.driver.usb.AppleUSBXHCI
    - Find* [HEX]: 83FF0F0F
    - Replace* [HEX]: 83FF3F0F
    - Comment: USB Port Limit Patch 4 PMHeart/DalianSky
    - MatchOS: 10.14.x
     
    Need a Kext in the folder /EFI/CLOVER/kexts/Other/
     
    - Download the USBInjectAll.kext from here. I used the version 2018-1108.
     
    Need SSDT patch in the folder /EFI/CLOVER/ACPI/patched/
     
    - Download the SSDT-EC.aml, SSDT-UIAC.aml and SSDT-USBX attached bellow.
     
    Wifi and Bluetooth (BCM94360CS)
     
    Works out of box (plug 'n' play).
     
     
    LAN Cards
     
    Need a Kext for feach card in the folder /EFI/CLOVER/kexts/Other/
     
    - Download the IntelMausiEthrenet.kext from here. I used the version 2018-1031.
    - Download the SmallTreeIntel82576.kext attached bellow. I do not remember where I found it.

     
    Now you can start the instalation without problem (I guess).
     
     
    How install
     
    UEFI Setup Configuration and Installation

    UEFI configuration
     
    - Shutdown and insert the flash.
    - Power on with DEL pressed to enter BIOS setup.
    - Change value: Periphelrals - Initial Display to IGP
    - Change value: Periphelrals - USB Configuration - XHCI Hand-off to ENABLE
    - Change value: Chipset - VT-d to DISABLE
    - Change value: Chipset - Internal Graphics to ENABLE
    - Change value: Chipset - DVMT Pre-Allocated to 128M
    - Save & Exit Setup
     
    - Now, hold the F12
    - In the list, select your flash drive.
    - It will show twice. One with UEFI prefix and another without.
    - Select with UEFI prefix. Ie.: "UEFI: Sandisk Cruzer"
     
    The installer will start. 
    
    Format destination disk

    Format the disk with GUID partition mapping and name it "HD".

    - Select Disk Utility in the list, then press Continue.
    - Click in View, then "Show All Devices".
    - Select the destination Disk, then Erase.
    - Name: HD, Format: APFS and Scheme: GUID Partition Map

    Close Disk Utility.
    
    Select "Install macOS", then Continue.
    Follow instructions in screen.

    After install

    After first part install the system will reboot.
    
    The second part of the installation will begin. This will take 16 minutes.
     

    Post installation

    Install bootloader
     
    When the second part of install finish, the system will reboot again.

    After performing the user initial setup and go to the desktop, you need to install Clover on internal disk.

    Open the Clover installer inside flash drive that you copied before.

    Use same options above but choose the system partition this time.

    Now you need to replace the EFI folder inside your destination disk EFI parittion, with EFI folder inside flash card EFI partition.

    If the flash drive EFI partition of your destination disk or flash drive is unmounted:
    Mount with terminal "sudo diskutil mount /dev/rdiskXs1". To know what X is, use "diskutil list", most likely is 0 for destination disk and 1 for flash drive.
     
    Then, eject the flash drive.
     
    Last step
     
    Move all Kexts from EFI partition to /Library/Extensions, with those commands in Terminal:
    sudo cp -R /Volumes/EFI/EFI/CLOVER/kexts/10.14/* /Library/Extensions/ sudo chmod -R 755 /Library/Extensions sudo chown -R root:wheel /Library/Extensions sudo kextcache -i / Restart the system.
     
     
    It's done!
     
     
    Updates
     
    System update 10.14.6
     
    - Download and open latest CloverConfigurator
    - Open Mount EFI and click in Mount Partition in EFI Partitions list
    - Click in Open Partition that appears
    - Go to EFI -> CLOVER
    - Backup config.plist and ACPI folder to desktop
    - Go back and delete CLOVER folder
    (If you restart now you can't boot in macOS - DON'T RESTART)
    - Download latest Clover and install (link and config above)
    - Replace config.plist and ACPI folder from your desktop
     
    - Update Lilu.kext, AppleALC.kext, WhateverGreen.kext, HWSensors kexts (FakeSMC, ACPIMonitor, IntelCPUMonitor, ITEIT87x) in /Library/Extensions/
    - Run:
     
    sudo chmod -R 755 /Library/Extensions sudo chown -R root:wheel /Library/Extensions sudo kextcache -i /  
     
    - Install macOS Update 10.14.6 and restart
     

     
    And last but not least
     
    I would like to thank the following community members, by making these dream possible:
    @crushers, @snatch, @apianti, @blackosx, @blusseau, @dmazar, @slice2009, @autumnrain, @phpdev32, @EMlyDinEsH, @RehabMan, @Scellow, @mitch_de, @Shailua, @Andy Vandijck, @maxfierke, @ArturXXX, @LexHimself, @brumas and all others members involved directly or indirectly.
     
     
     
    Z370N-WIFI v2.zip
  20. Like
    MaLd0n reacted to Jief_Machak in C++ proposition   
    I've created a branch called c++_noglobals to show that a C++ compiler is a C compiler with object added. Contrary of what a lot of people think, the object mechanism does NOT need a runtime or library. Because calls to method internally become calls to function with an added parameter : "this" (this is a pointer to a struct containing all members variables). C++ was first implemented with the C preprocessor.
     
    Now C++ added 2 things that can't be compiled as normal code : rtti and exceptions. Well, I just deactivated them, problem solved.
     
    Please have a look at what I committed : there is no trick, no library, the compilation process is untouched, the link command is untouched. It compiles with XCODE5 and GCC53.
    The only catch is that the global variables of object type are not initialised. Var of simple type are initialised like in C. I'll explain in an other post and commit a version that will initialise globals variables of an object type.
     
    @Slice and Clover developer : switching to a C++ compiler and start introducing few simple objects (string, buffer, array, date) is just a PLUS. It'll make the code more reliable and easy to read. The only problem C++ compiler can cause is for some developer to want to use very advanced C++ features that makes the code unreadable at the end. You've already understood that we must not do that! But using a string as we use an int without worrying about allocation, reallocation and destruction is just very nice.
    PS : the names "cpp_utils, XStringW" can change, I just forgot to rename them.
  21. Like
    MaLd0n reacted to Slice in Clover Change Explanations   
    Rev 5104
    Clover switched to C++ programming language. Thanks to Jief_Machak.
    C++ proposition
    Programming tips will follow.
  22. Like
    MaLd0n got a reaction from nmano in Customized OpenCore with additional features   
    Take it easy, guys. Let's focus on the good work that is being done here.
    If all collaborators claimed copyright, the hackintosh would not exist. ALL inside bootloaders, patches, etc is a hard work from many many people for long years.
     
    Just Enjoy!
  23. Like
    MaLd0n got a reaction from nmano in Customized OpenCore with additional features   
    Take it easy, guys. Let's focus on the good work that is being done here.
    If all collaborators claimed copyright, the hackintosh would not exist. ALL inside bootloaders, patches, etc is a hard work from many many people for long years.
     
    Just Enjoy!
  24. Like
    MaLd0n got a reaction from nmano in Customized OpenCore with additional features   
    Take it easy, guys. Let's focus on the good work that is being done here.
    If all collaborators claimed copyright, the hackintosh would not exist. ALL inside bootloaders, patches, etc is a hard work from many many people for long years.
     
    Just Enjoy!
  25. Like
    MaLd0n got a reaction from nmano in Customized OpenCore with additional features   
    Take it easy, guys. Let's focus on the good work that is being done here.
    If all collaborators claimed copyright, the hackintosh would not exist. ALL inside bootloaders, patches, etc is a hard work from many many people for long years.
     
    Just Enjoy!
×