Contribute
Register

Gigabyte Z490 Vision D (Thunderbolt 3) + i5-10400 + AMD RX 580

Thanks for your reply. My Samsung 960 EVO boot drive was also in the closest NVMe slot on the mainboard. As soon as the computer loads O.C. 0.6.6 it hangs completely.

But are you saying that your 970 EVO Plus does boot on 0.6.6?

Yes, I am running a Samsung 970 EVO plus with firmware version 2B2QEXM7, and it boots just fine. No issues and it's never failed to boot, even on 0.6.6.

I read the recent notes from vit9696 about OC 0.6.6 and his comments about APFS and Samsung NVMe drives that was posted by another user yesterday.

My thoughts are that I would just urge others to view his remarks with a reasonable amount of skepticism. It sounded very much like cya covering to me (just my opinion, mind you). It is also my opinion that they (meaning the developers) of OC 0.6.6 released a version that's just not so great and not so compatible as we would all like.
 
Last edited:
@CaseySJ did you notice the renaming of Thunderbolt in System Report to USB4/Thunderbolt in 11.2? Means nothing but regardless its cool to me.
 
Should not we enable the "SSDT-UIAC-VISION-D-V1.aml" custom ssdt to provide USB port definition for Gigabyte Z490 Vision-D as mentioned. Why it is disabled?

An off topic question:
is using macos with opencore or clover harmfull to hardware of pc?
Why do i ask?
i was using an asus laptop and i installed macos with clover and after a while i had soundcard and bios hardware problems. Bios has been replaced by asus service.
Are these hardware problems relevant with installing macos or are they normal hardware problems that occurs with age and usage?
 

Attachments

  • Screen Shot 2021-02-04 at 17.57.43.png
    Screen Shot 2021-02-04 at 17.57.43.png
    96.2 KB · Views: 33
I was already looking for a 1TB NVMe drive to replace my 960 EVO 500GB drive. This must be the moment.

What drive is the best for Hackintosh? I’m thinking about the Sabrent Rocket 4.0 1TB. What do you guys think?
Can you please clarify:
  • Which Samsung SSDs were in the system when you reported the OpenCore 0.6.6 boot problem?
  • And what is the remaining disk space on each one?
    • 970 Evo Plus --> X MB or GB free
    • 960 Evo --> X MB or GB free
    • other?
The amount of free space on a SSD might be a factor.
 
@CaseySJ did you notice the renaming of Thunderbolt in System Report to USB4/Thunderbolt in 11.2? Means nothing but regardless its cool to me.
Actually it's Thunderbolt/USB4 and yes we noticed it couple of weeks ago. It's awesome to see USB4 support and I hope this means we won't need to worry about Thunderbolt Bus ever again. But maybe I'm being too sanguine...
 
Should not we enable the "SSDT-UIAC-VISION-D-V1.aml" custom ssdt to provide USB port definition for Gigabyte Z490 Vision-D as mentioned. Why it is disabled?
Why do you say it's disabled? Because you are using Intel Bluetooth, the special USB port map is enabled, highlighted in red box:

Screen Shot 2021-02-04 at 17.57.43.png


An off topic question:
is using macos with opencore or clover harmfull to hardware of pc?
Why do i ask?
i was using an asus laptop and i installed macos with clover and after a while i had soundcard and bios hardware problems. Bios has been replaced by asus service.
Are these hardware problems relevant with installing macos or are they normal hardware problems that occurs with age and usage?
Most likely these are normal problems, but if BIOS was replaced, it means there was no hardware problem. Resetting the BIOS is something we do somewhat frequently on Hackintosh systems, particularly when other operating systems are installed or we add/remove peripherals.

Even on a laptop there is way for users to reset BIOS or upgrade BIOS. Google search can often reveal the procedure for doing so.
 
Seems that the issue with Samsung drives on macOS is due to an inherent issue with the APFS implementation and the trim operation.

From the OpenCore 0.6.6 release notes:

“Sometimes the changes are not dictated by the necessity to improve things on our end or even our bugs, but rather flaws in the design & code of the other parties. This release includes three changes that happened due to exactly this kind of issues. One of them is the result of Apple’s APFS design, which does not track trimmed areas, resulting in essentially broken trim support for a vast amount of third-party SSDs. The discovery and an ugly workaround are described in the SetApfsTrimTimeout section thanks to @lvs1974’s efforts.”

Then in the OpenCore 0.6.6 configuration PDF (https://github.com/acidanthera/OpenCorePkg/raw/master/Docs/Configuration.pdf)
At 17. SetApfsTrimTimeout Type (Kernel->Quirks):

“APFS filesystem is designed in a way that the space controlled via spaceman structure is either used or free. This may be different in other filesystems where the areas can be marked as used, free, and unmapped. All free space is trimmed (unmapped/deallocated) at macOS startup. The trimming procedure for NVMe drives happens in LBA ranges due to the nature of DSM command with up to 256 ranges per command. The more fragmented the memory on the drive is, the more commands are necessary to trim all the free space.

Depending on the SSD controller and the drive fragmentation trim procedure may take considerable amount of time, causing noticeable boot slowdown APFS driver explicitly ignores previously unmapped areas and trims them on boot again and again. To workaround boot slowdown macOS driver introduced a timeout (9.999999 seconds) that stops trim operation when it did not manage to complete in time. On many controllers, such as Samsung, where the deallocation is not very fast, the timeout is reached very quickly. Essentially it means that macOS will try to trim all the same lower blocks that have already been deallocated, but will never have enough time to deallocate higher blocks once the fragmentation increases. This means that trimming on these SSDs will be broken soon after the installation, causing extra wear to the flash.

One way to workaround the problem is to increase the timeout to a very high value, which at the cost of slow boot times (extra minutes) will ensure that all the blocks are trimmed. For this one can set this option to a high value, e.g. 4294967295.

Another way is to utilize over-provisioning if it is supported or create a dedicated unmapped partition where the reserve blocks can be found by the controller. In this case the trim operation can also be disabled by setting a very low timeout. e.g. 999.”
I am not sure about the pros and cons, but changing from -1 to 999 does reduce booting time.
 
Last edited:
Actually it's Thunderbolt/USB4 and yes we noticed it couple of weeks ago. It's awesome to see USB4 support and I hope this means we won't need to worry about Thunderbolt Bus ever again. But maybe I'm being too sanguine...
Ha, I'm quite behind then. Rats. Looking to join the 490 ranks soon.
 
Can you please clarify:
  • Which Samsung SSDs were in the system when you reported the OpenCore 0.6.6 boot problem?
  • And what is the remaining disk space on each one?
    • 970 Evo Plus --> X MB or GB free
    • 960 Evo --> X MB or GB free
    • other?
The amount of free space on a SSD might be a factor.
When I installed 0.6.6 and everything began to crash there were 3 Samsung NVMe drives in the computer.

1 Samsung 960 EVO 500GB boot drive on the mainboard upper NVMe slot. This drive was split in half. 50% for MacOS with about 120GB of free space for Mac. The other 50% was reserved for Windows 10. That partition had about 80GB of free space.

There were also 2 Samsung 970 EVO Plus 1TB drives on my Asrock Ultra Quad M.2 card in the second PCIe 16x slot. They were in a MacOS software Raid 0. Giving me a 2TB of high speed drive. On the Raid 0 there was only about 200GB used by files.

The other 2 NVMe slots were empty.

After the problem occurred I removed all my PCIe cards from the system. So I also removed the Asrock Ultra Quad M.2 card from the system and in the Bios I loaded the default settings and loaded the profile which I made with your guide. On that moment there was only 1 NVMe (960 EVO boot drive) in my system, my 10850K CPU 32GB memory and my AMD VEGA 64 GPU. But the problem was still there.

After that I cloned my working setup from my 960 EVO to a Intel NVMe drive and placed it in the upper NVMe slot. removed the 960 EVO and installed 0.6.6 on the Intel NVMe. So on this moment there was no Samsung NVMe in the system. And it booted just fine without any problems.

Then I placed my Asrock Ultra Quad M.2 (containing my 970 EVO plus drives) back in the system. This time the crash is back and 0.6.6 won’t show and the computer hangs again.

After that I installed 0.6.5 on the Intel again and it worked fine again.

Any more question? Just let me know. Hope we can figure it out.
 
Back
Top