Hi, I have a small problem with my Open core Hackintosh build.
I actually got EFI from someone on the internet and tweaked it a bit so I could get up and running.
Here is my EFI.
My laptop boots fine but while booting, it shows the apple logo for the first 5 seconds, then goes blank for 2-3minutes and then I see apple login screen.
This happens every time. I tried a few config edits but didn't work.
Can someone look into my EFI and suggest any necessary changes that can improve boot times?
I am really at my wits end here. I am hoping someone on here with more experience with UEFI and boot loaders might be able to provide insight into an otherwise inexplicable problem I am having with a brand-new system built around the ASUS TUF Gaming X570-PLUS. My gut tells me the problem is somehow related to UEFI settings, Secure boot, or some combination, but I really have no idea if that is the case.
The problem is two-fold. First, my system will only boot to a device (e.g., USB stick) under two conditions: 1) no SATA drive is plugged in or 2) when a specific SSD is plugged in (I'll refer to this as SSD1). I have three other hard drives that otherwise work (I have tested them in another system). None of them have Windows installed, though some do have existing data partitions. One of the three is a brand-new, never-been-used 1TB SSD. If I plug in any of these three other hard drives, the system will reboot immediately after POST. However, if SSD1 is plugged in it will boot to a USB stick - UEFI or Legacy, doesn't matter.
Secondly, if I attempt to create a partition, run a surface test, or install an OS to SSD1, the system immediately reboots. I can format SSD1, change volume sizes, run a surface scan, but only in a live linux environment - if I plug SSD1 into another machine as a secondary data drive (i.e., I boot to my primary boot volume), the other machine will blue screen when loading into Windows. If it is attached to this new machine, it will boot to a USB stick just fine.
I have also enabled Hot Plug, which allows me to access SATA drives that I plug in after boot. If I hot plug the brand-new 1TB SSD during a live linux distro, the drive shows up and I can see its properties. However, if I try to do something like create a partition or run a surface test, the machine will also immediately reboot.
Does anyone have any idea as to what might cause this? The only thing that I can think of that explains both problems is some kind of secure boot-like security feature, but I haven't been able to figure out how to confirm whether that is the case. In 20 years of building computers I have never even heard of anything like this. I am new to EFI systems, however, so I'm quite out of my element - this is the first EFI-based system I've set up.
I converted boot from Clover to OC 0.5.8. Everything is fine. I even solved few sleep/wake problems I have.
I use Catalina disk as a primary boot. OC kicks in regardless whether I use windows or OSX. Every time boot occurs I get this file in the EFI partition. It is supposed to show boot errors, missing drivers, etc.
In my case I cannot figure out why it shows every time.
Please, take a look. maybe you can at least decipher it and send me in the right direction. Oh, yeah: SIP is at 0x67
Thanks in advance
I updated the sources of the decompkernelcache tool.
Now it can do the following things with the prelinked kernel and its data:
- Uncompress prelinked kernel (package with drivers inside)
- Extract kernel (repackage possible with kextcache, kernel only)
- Extract kexts (including original folder source directory)
- List kexts
- Extract combined Info.plist resource
It can do this with prelinked kernel caches compressed with LZSS and LZVN.
It can also extract already decompressed prelinked kernel cache binaries.
It is also possible to specify an architecture to extract (in case of a multi architecture prelinked kernel cache).
It works with any version of the OS X kernel cache (It works for 32 and 64 bit, extracting all).
I tested it on a prelinked kernel of iOS also, it was able to do this to an iPhone 4S prelinked kernel too. (32-bit ARM)
It works on Mac OS X prelinked kernel data with any version or architecture (32/64-bit works, can extract Big Endian data so if you manage to have a PowerPC prelinked kernel it can handle them too).
It should be able to handle any architecture and any Darwin deployment target.
So if you have a decrypted prelinked kernel of iOS, Mac OS X, Apple TV (both Intel and ARM), Watch OS and any other like the HomePod OS you can use this tool on them too.
Added WIN32 and WIN64 version (compiled with MingW-w64 for i386 and x86_64).
I used Apple's WebKitSupport library (for the CoreFoundation library) and a win32 port of libdispatch.
The binaries for CoreFoundation support came from iTunes's Apple Application Support installer (both 32 bit and 64 bit).
They are included.
It's adapted to work with Visual Studio too but needs a VC project edit as I only have a MacBook Air (without Windows on it).
I tested it on someone's computer and it works fine.
Minor bug fixes.
Will do WIN32 and WIN64 version a bit later.
Update (V2.2 Windows):
Added WIN32 and WIN64 version.
Update (V2.2 Linux):
Added Linux version (post below, x86_64 and i386).
Other architectures are also supported and require libraries and bison below:
To build it you need a recent ICU4C (http://site.icu-project.org/download).
My own build of lib dispatch (https://github.com/vampirecat35/libdispatch).
My own corrected build of CoreFoundation lite for Linux (https://github.com/vampirecat35/CoreFoundation-Lite-Linux).
bison-2.4.1 which is specific because of IOCFUnserialize.yacc (https://ftp.gnu.org/gnu/bison/bison-2.4.1.tar.bz2).
Update (V2.2 iOS/WatchOS/AppleTVOS):
Added 32-bit and 64-bit versions for iOS, WatchOS and AppleTVOS (post below).
Update (V2.2 Android):
Added ARMV7 Android version (post below).
Added AARCH64 (ARM64) Android version (post below).
Added I686 Android version (post below).
Added X86_64 Android version (post below).
Update (V2.2 Visual Studio 2019):
Added X86 VS2019 Windows version (post below).
Added X64 VS2019 Windows version (post below).
I also optimised the code a little (No more warnings, not even for 32-bit builds).
Added GitHub repo on my secondary account: