libimobiledevice / idevicerestore

Restore/upgrade firmware of iOS devices
https://libimobiledevice.org
GNU Lesser General Public License v3.0
1.32k stars 391 forks source link

M2 macbook air failed to enter restore mode #652

Closed papatortass closed 3 months ago

papatortass commented 3 months ago

Hi and thanks in advance for any help. I got this error when trying to restore my m2 macbook air using idevicerestore on ubuntu. I was running sudo usbmuxd -f -v on another terminal

`**** _log_init **** idevicerestore 1.0.0-200-g63094e7 Found device in DFU mode ECID: Identified device as j413ap, Mac14,2 Device Product Version: N/A Device Product Build: N/A Extracting BuildManifest from IPSW IPSW Product Version: 14.5 IPSW Product Build: 23F79 Major: 23 Device supports Image4: true Variant: Customer Erase Install (IPSW) This restore will erase all device data. Performing macOS restore ################################ [ WARNING ] #################################

You are about to perform an ERASE restore. ALL DATA on the target device

will be IRREVERSIBLY DESTROYED. If you want to update your device without

erasing the user data, hit CTRL+C now and restart without -e or --erase

command line switch.

If you want to continue with the ERASE, please type YES and press ENTER.

##############################################################################

YES Checking IPSW for required components... All required components found in IPSW Getting ApNonce in dfu mode... 59 42 12 b4 c9 db b4 c0 13 b7 ff 01 7c 5c 47 38 2d 61 9b 95 15 4b 18 11 08 19 02 37 9f 37 f8 6d Trying to fetch new SHSH blob Getting SepNonce in dfu mode... db b5 e3 7f 33 d5 9a 81 15 18 62 da f9 7d 20 f6 8a 8d ab dc Received SHSH blobs Getting SepNonce in dfu mode... db b5 e3 7f 33 d5 9a 81 15 18 62 da f9 7d 20 f6 8a 8d ab dc Received SHSH blobs Getting SepNonce in dfu mode... db b5 e3 7f 33 d5 9a 81 15 18 62 da f9 7d 20 f6 8a 8d ab dc Received SHSH blobs Extracting iBSS.j413.RELEASE.im4p (Firmware/dfu/iBSS.j413.RELEASE.im4p)... Personalizing IMG4 component iBSS... Sending iBSS (1017434 bytes)... [==================================================] 100.0% Nonce: 59 42 12 b4 c9 db b4 c0 13 b7 ff 01 7c 5c 47 38 2d 61 9b 95 15 4b 18 11 08 19 02 37 9f 37 f8 6d Personalizing IMG4 component Ap,LocalPolicy... Sending Ap,LocalPolicy (3041 bytes)... [==================================================] 100.0% INFO: executing command: lpolrestore iBoot boot-stage=1 Extracting t8112ciofw.im4p (Firmware/t8112ciofw.im4p)... Personalizing IMG4 component Ap,RestoreCIO... Sending Ap,RestoreCIO (184854 bytes)... [==================================================] 100.0% INFO: executing command: firmware Extracting t8112tmufw.im4p (Firmware/t8112tmufw.im4p)... Personalizing IMG4 component Ap,RestoreTMU... Sending Ap,RestoreTMU (24599 bytes)... [==================================================] 100.0% INFO: executing command: firmware Extracting rans.t8112.release.im4p (Firmware/rans.t8112.release.im4p)... Personalizing IMG4 component RestoreANS... Sending RestoreANS (1082032 bytes)... [==================================================] 100.0% INFO: executing command: firmware Extracting ipad14dcp_restore.im4p (Firmware/dcp/ipad14dcp_restore.im4p)... Personalizing IMG4 component RestoreDCP... Sending RestoreDCP (9247130 bytes)... [==================================================] 100.0% INFO: executing command: firmware INFO: executing command: setenv auto-boot false INFO: executing command: saveenv INFO: executing command: setenvnp boot-args rd=md0 nand-enable-reformat=1 -progress -restore Extracting applelogo@2x~mac-USBc.im4p (Firmware/all_flash/applelogo@2x~mac-USBc.im4p)... Personalizing IMG4 component RestoreLogo... Sending RestoreLogo (19102 bytes)... [==================================================] 100.0% INFO: executing command: setpicture 4 INFO: executing command: bgcolor 0 0 0 Extracting iBEC.j413.RELEASE.im4p (Firmware/dfu/iBEC.j413.RELEASE.im4p)... Personalizing IMG4 component iBEC... Sending iBEC (843768 bytes)... [==================================================] 100.0% INFO: device serial number is Recovery Mode Environment: iBoot build-version=iBoot-10151.121.1 iBoot build-style=RELEASE iBoot boot-stage=2 radio-error=2 radio-error-string=2 Sending RestoreLogo... Extracting applelogo@2x~mac-USBc.im4p (Firmware/all_flash/applelogo@2x~mac-USBc.im4p)... Personalizing IMG4 component RestoreLogo... Sending RestoreLogo (19102 bytes)... Extracting h14_ane_fw_bia_j4xx.im4p (Firmware/ane/h14_ane_fw_bia_j4xx.im4p)... Personalizing IMG4 component ANE... Sending ANE (4893082 bytes)... Extracting aopfw-mac14gaop.RELEASE.im4p (Firmware/AOP/aopfw-mac14gaop.RELEASE.im4p)... Personalizing IMG4 component AOP... Sending AOP (1538458 bytes)... Extracting AppleAVE2FW_H14G.im4p (Firmware/ave/AppleAVE2FW_H14G.im4p)... Personalizing IMG4 component AVE... Sending AVE (1393314 bytes)... Extracting ipad14dcp.im4p (Firmware/dcp/ipad14dcp.im4p)... Personalizing IMG4 component Ap,DCP2... Sending Ap,DCP2 (9247130 bytes)... Extracting armfw_g14g.im4p (Firmware/agx/armfw_g14g.im4p)... Personalizing IMG4 component GFX... Sending GFX (2090170 bytes)... Extracting adc-triton-j129.im4p (Firmware/isp_bni/adc-triton-j129.im4p)... Personalizing IMG4 component ISP... Sending ISP (14100890 bytes)... Extracting J413_MtpFirmware.im4p (Firmware/J413_MtpFirmware.im4p)... Personalizing IMG4 component MtpFirmware... Sending MtpFirmware (1732139 bytes)... Extracting t8112pmp.im4p (Firmware/pmp/t8112pmp.im4p)... Personalizing IMG4 component PMP... Sending PMP (514458 bytes)... Extracting 090-25576-099.dmg.trustcache (Firmware/090-25576-099.dmg.trustcache)... Personalizing IMG4 component RestoreTrustCache... Sending RestoreTrustCache (20417 bytes)... Extracting SmartIOFirmware_ASCv5.im4p (Firmware/SmartIOFirmware_ASCv5.im4p)... Personalizing IMG4 component SIO... Sending SIO (1164198 bytes)... Extracting iBootData.j413.RELEASE.im4p (Firmware/all_flash/iBootData.j413.RELEASE.im4p)... Personalizing IMG4 component iBootData... Sending iBootData (10867 bytes)... ramdisk-size=0x20000000 Extracting 090-25576-099.dmg (090-25576-099.dmg)... Personalizing IMG4 component RestoreRamDisk... Sending RestoreRamDisk (161491357 bytes)... Extracting DeviceTree.j413ap.im4p (Firmware/all_flash/DeviceTree.j413ap.im4p)... Personalizing IMG4 component RestoreDeviceTree... Sending RestoreDeviceTree (54386 bytes)... Extracting sep-firmware.j413.RELEASE.im4p (Firmware/all_flash/sep-firmware.j413.RELEASE.im4p)... Personalizing IMG4 component RestoreSEP... Sending RestoreSEP (6353519 bytes)... Extracting kernelcache.release.mac14g (kernelcache.release.mac14g)... Personalizing IMG4 component RestoreKernelCache... Sending RestoreKernelCache (27983343 bytes)... Waiting for device to enter restore mode... ERROR: Device failed to enter restore mode. Please make sure that usbmuxd is running.`

papatortass commented 3 months ago

I figured some of my packages could be older than ideal, so i just recompiled everything from its the git repositories and now its working fine.