idevicerestore icon indicating copy to clipboard operation
idevicerestore copied to clipboard

M4 Mac Mini

Open ZachBacon opened this issue 7 months ago • 15 comments

I'm running into an issue where I'm trying to restore an m4 mac mini in DFU mode, but I'm getting ERROR: Unable to discover device type

when I use my git head compiles of the software/libraries and then running this command

idevicerestore -P -d -ey ~/Downloads/UniversalMac_15.5_24F74_Restore.ipsw

I'm currently at a loss of what I need to do since I don't have another mac computer to do an dfu restore.

ZachBacon avatar May 16 '25 01:05 ZachBacon

The only way is to set up a macOS virtual machine. Ugh.

Edit: Revive errored in the virtual machine. But plugging in a USB C monitor made my mac mini work again 🤷‍♂️

ledlamp avatar Jun 14 '25 00:06 ledlamp

I ran into this issue recently due to a failed 3rd party SSD. Managed to get my m4 mini restored by using this compilation workflow BarbossHack/libimobiledevice-fedora on Fedora 42.

Tried Sonoma on VMWare (Win & Linux), Windows iTunes, and an old Intel Mac on Catalina, which all failed to restore the M4 mini. This is the only method that worked for me without using an additional Apple Silicon mac.

rascalldev avatar Jun 17 '25 21:06 rascalldev

In the end I had to convince a friend to lend me his MacBook to do the restore

ZachBacon avatar Jun 17 '25 21:06 ZachBacon

idevicerestore is currently broken for 15.4+ restores. if you want to DFU restore you'd need to do it to 15.3.2 and then OTA update to latest. https://github.com/libimobiledevice/idevicerestore/issues/729

falchion10 avatar Jun 17 '25 21:06 falchion10

idevicerestore is currently broken for 15.4+ restores. if you want to DFU restore you'd need to do it to 15.3.2 and then OTA update to latest. https://github.com/libimobiledevice/idevicerestore/issues/729

I even tried that with no luck

ZachBacon avatar Jun 17 '25 21:06 ZachBacon

I'm writing this comment on an m4 mini I restored using:

  • idevicerestore 1.0.0-git-e1f5865 (libirecovery 1.2.1-13-g638056a, libtatsu 1.0.5)
  • UniversalMac_15.5_24F74_Restore.ipsw

rascalldev avatar Jun 17 '25 21:06 rascalldev

I'm writing this comment on an m4 mini I restored using:

* idevicerestore 1.0.0-git-e1f5865 (libirecovery 1.2.1-13-g638056a, libtatsu 1.0.5)

* UniversalMac_15.5_24F74_Restore.ipsw

How exactly did you do that, could you write the steps out for me?

jonasisozen avatar Jun 18 '25 11:06 jonasisozen

I'm writing this comment on an m4 mini I restored using:

* idevicerestore 1.0.0-git-e1f5865 (libirecovery 1.2.1-13-g638056a, libtatsu 1.0.5)

* UniversalMac_15.5_24F74_Restore.ipsw

How exactly did you do that, could you write the steps out for me?

Nothing special. Just compile the whole setup (libimobiledevice idevicerestore usbmuxd… etc)from source code and done. I can even flash macOS 26 ipsw. Maybe the key is not to use any component from distros .

a13547 avatar Jun 23 '25 00:06 a13547

I was also able to do a restore using 15.5 for an M4; however, the restore screen is missing. When I test on an M1, it fails.

zer010gic avatar Jul 22 '25 17:07 zer010gic

Please re-test with latest code, I pushed a commit that hopefully fixes this.

nikias avatar Sep 06 '25 08:09 nikias

Please re-test with latest code, I pushed a commit that hopefully fixes this.

Hi Nik, can confirm (Macbook Air M4,UniversalMac_15.6_24G84_Restore) is working

had the same error " ERROR: Unable to discover device type" till i fixed usbmuxd.

Also i compiled the sourcecode, couldnt revive my macbook tho, had to use the -erase option.

Dont know how i got here in the first place, i tried to uninstall a audio interface driver using onyx, after freezing up all my apps where gone and after turning in off and on again i got stuck in a bootloop

eh thank you so much for developing this tool, i just opted for a macbook for music production reasons, never thought it would be such a pain in the ass. hopefully the eu is gonna force apple to let one restore its own macbook with a usb stick or a windows pc

adftrew345 avatar Sep 10 '25 00:09 adftrew345

How you fix usbmuxd???

# idevicerestore -e -d -l
idevicerestore 1.0.0-254-g8d1e798 (libirecovery 1.2.1, libtatsu 1.0.3)
Found device in Port DFU mode
Unable to discover device type

Pls help, need fix mac asap

ledlamp avatar Sep 14 '25 09:09 ledlamp

I'm writing this comment on an m4 mini I restored using:

* idevicerestore 1.0.0-git-e1f5865 (libirecovery 1.2.1-13-g638056a, libtatsu 1.0.5)

* UniversalMac_15.5_24F74_Restore.ipsw

How exactly did you do that, could you write the steps out for me?

Nothing special. Just compile the whole setup (libimobiledevice idevicerestore usbmuxd… etc)from source code and done. I can even flash macOS 26 ipsw. Maybe the key is not to use any component from distros .

I did all this but how come it still using old versions??

idevicerestore 1.0.0-254-g8d1e798 (libirecovery 1.2.1, libtatsu 1.0.3)

ledlamp avatar Sep 14 '25 09:09 ledlamp

So I installed fedora and used this https://github.com/BarbossHack/libimobiledevice-fedora

But after "Waiting for device to enter restore mode..." for a while, it says "Device failed to enter restore mode. Device reconnected in Recovery mode, most likely image personalization failed."

And now the mac is totally bricked :/

ledlamp avatar Sep 14 '25 11:09 ledlamp

How you fix usbmuxd???

# idevicerestore -e -d -l
idevicerestore 1.0.0-254-g8d1e798 (libirecovery 1.2.1, libtatsu 1.0.3)
Found device in Port DFU mode
Unable to discover device type

Pls help, need fix mac asap

U need to compile usbmuxd yourself and test if the service is running correctly, so usbxmud should be up running,check if your apple device is recognized in dfu mode. then if u execute idevicerestore, the device musnt disconnect after couple seconds. (that was my problem, till i sucessfully managed to get the usbmuxd service running, just use chatgpt)

adftrew345 avatar Sep 14 '25 12:09 adftrew345