Cannot Load EFI/Drivers/TestSupport.efi

Hello, I tried to boot in diagnostic mode and have this error message (see question title)


I use an iMac with Mojave and it hang at boot time all the time.


I can not enter Recovery mode (CMD+R) or (OPT+CMD+R) (loading bar hang at 50%)

I also tried to boot from an external HDD (maintaining the key OPT at boot time) with Mojave OS on it, and the iMac do the same, it also hang at middle of the loading bar. (I also tried with another external HDD with High Sierra on it)


I also connected a MacBookPro with Thunderbolt câble and place the iMac in Target mode (T), I can see the files in the HDD of the iMac from my MacBook and there is still some free space on the HDD.


I did also the reset PRAM (OPT+CMD+P+R)

and for good measure did the SMC reset by unplugging 15sec the power cord.


Is there anything that I can do?

Posted on Sep 16, 2020 12:32 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 16, 2020 8:24 AM

Apple Hardware Test (AHT)


Description

Apple computers ship with a pre-installed suite of hardware diagnostic tools, known as Apple Hardware Test (AHT). In principle you can start them by holding the d key while booting. Newer models support holding option d to load AHT over the internet. Refer to the official Apple documentation for details: Using AHT on Intel-based MacsMountain LionMavericks and Yosemite. Apple redesigned the AHT, now called Apple Diagnostics, for Macs introduced after June 2013. Consult the reference codes to interpret the results.

If however, you reinstalled an older computer from scratch, the diagnostic tools might no longer be available. Unless you have the original disks that came with your computer, there seems to be no way to restore the AHT.

It happens that Apple provides disk images with AHT for most computers, but does not make the links publicly available. Various blogs and forums, mostly Riven by Five and MacForum.ro have gathered a list of download links. The rest were obtained by scraping http://download.info.apple.com/Apple_Hardware_Test/ for all the links of the form 0(18|22)-\d{4}-A.dmg.

Even though there's no guarantee that this list is correct or complete, some links can come in very handy to whoever is trying to debug hardware problems.

You can use the following terminal commands to determine the model and board ID of your computer:

sysctl hw.model | awk '{ print $2 }'

ioreg -l | awk -F\" '/board-id/ { print $4 }'

Download the AHT for your computer model and use the contents to restore the /System/Library/CoreServices/.diagnostics folder, then reboot while holding d to start the diagnostic tools. Alternatively you may try with a bootable USB stick, as described below. This is also the preferred way on OS X 10.11 or later, where the System Integrity Protection (SIP) no longer allows writing to system folders.

When trying to open an old dmg you may get the error 'legacy image should be converted'. To convert it to a newer format, open Disk Utility, in the menu Images click on Convert and select the dmg to convert and save it under a new name.

Note that there is no one-to-one correspondence between hardware model and AHT. For some models no hardware test could be found, while others seem to have multiple AHT. As the differences are not clear, feel free to try them out, to see which one works best for your hardware.

https://github.com/upekkha/AppleHardwareTest

Similar questions

2 replies
Question marked as Top-ranking reply

Sep 16, 2020 8:24 AM in response to Mr.Lmn

Apple Hardware Test (AHT)


Description

Apple computers ship with a pre-installed suite of hardware diagnostic tools, known as Apple Hardware Test (AHT). In principle you can start them by holding the d key while booting. Newer models support holding option d to load AHT over the internet. Refer to the official Apple documentation for details: Using AHT on Intel-based MacsMountain LionMavericks and Yosemite. Apple redesigned the AHT, now called Apple Diagnostics, for Macs introduced after June 2013. Consult the reference codes to interpret the results.

If however, you reinstalled an older computer from scratch, the diagnostic tools might no longer be available. Unless you have the original disks that came with your computer, there seems to be no way to restore the AHT.

It happens that Apple provides disk images with AHT for most computers, but does not make the links publicly available. Various blogs and forums, mostly Riven by Five and MacForum.ro have gathered a list of download links. The rest were obtained by scraping http://download.info.apple.com/Apple_Hardware_Test/ for all the links of the form 0(18|22)-\d{4}-A.dmg.

Even though there's no guarantee that this list is correct or complete, some links can come in very handy to whoever is trying to debug hardware problems.

You can use the following terminal commands to determine the model and board ID of your computer:

sysctl hw.model | awk '{ print $2 }'

ioreg -l | awk -F\" '/board-id/ { print $4 }'

Download the AHT for your computer model and use the contents to restore the /System/Library/CoreServices/.diagnostics folder, then reboot while holding d to start the diagnostic tools. Alternatively you may try with a bootable USB stick, as described below. This is also the preferred way on OS X 10.11 or later, where the System Integrity Protection (SIP) no longer allows writing to system folders.

When trying to open an old dmg you may get the error 'legacy image should be converted'. To convert it to a newer format, open Disk Utility, in the menu Images click on Convert and select the dmg to convert and save it under a new name.

Note that there is no one-to-one correspondence between hardware model and AHT. For some models no hardware test could be found, while others seem to have multiple AHT. As the differences are not clear, feel free to try them out, to see which one works best for your hardware.

https://github.com/upekkha/AppleHardwareTest

Sep 16, 2020 9:11 PM in response to Mr.Lmn

Apple broke the functionality for some users/systems with a system firmware update a few years ago. While a newer system firmware update could possibly fix the issue (you would need to install Catalina to an external drive if you don't actually want Catalina on your main drive). There is no guarantee this will work since I've also seen reports that some iMacs don't always update their system firmware properly. Plus I think part of the issue may be with the Apple servers themselves.


I know that Internet Recovery Mode also doesn't always work reliably as some of our Macs will only boot the oldest online macOS installer instead of the more recent installers.


While this is a great feature when it works it is unfortunate Apple has left it broken for some many people.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cannot Load EFI/Drivers/TestSupport.efi

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.