libimobiledevice / idevicerestore

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

I can't restore my MacBook Air M1 Late 2020 #645

Open eilhanzy opened 3 months ago

eilhanzy commented 3 months ago

Hello there, thanks in advance for helping me. I got a issue from idevicerestore and I can't restore my device from Raspberry Pi 5. There is a log for this issue:

idevicerestore 1.0.0-191-g4ed598b irecv_event_cb: device 0005681c34d3001e (udid: N/A) connected in DFU mode Found device in DFU mode ECID: 1521845238169630 Identified device as j313ap, MacBookAir10,1 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 Checking IPSW for required components... All required components found in IPSW Getting ApNonce in dfu mode... 7f 6f 6c f9 f0 a2 14 72 50 ec 8f 6a 70 4f 98 10 82 f3 8b 5a be 29 09 bc fc 74 15 da 36 d4 73 92 Trying to fetch new SHSH blob Getting SepNonce in dfu mode... 18 05 44 95 7f 27 46 46 24 f6 cf f5 d0 9e d2 43 93 e8 b0 95 Received SHSH blobs Getting SepNonce in dfu mode... 18 05 44 95 7f 27 46 46 24 f6 cf f5 d0 9e d2 43 93 e8 b0 95 Received SHSH blobs Getting SepNonce in dfu mode... 18 05 44 95 7f 27 46 46 24 f6 cf f5 d0 9e d2 43 93 e8 b0 95 Received SHSH blobs NOTE: No path for component iBSS in TSS, will fetch from build_identity Extracting iBSS.j313.RELEASE.im4p (Firmware/dfu/iBSS.j313.RELEASE.im4p)... Personalizing IMG4 component iBSS... Tag found Sending iBSS (730801 bytes)... [==================================================] 100.0% Waiting for device to disconnect... irecv_event_cb: device 0005681c34d3001e (udid: N/A) disconnected Waiting for device to reconnect... irecv_event_cb: device 0005681c34d3001e (udid: N/A) connected in Recovery mode Nonce: 7f 6f 6c f9 f0 a2 14 72 50 ec 8f 6a 70 4f 98 10 82 f3 8b 5a be 29 09 bc fc 74 15 da 36 d4 73 92 Personalizing IMG4 component Ap,LocalPolicy... Tag found Sending Ap,LocalPolicy (3041 bytes)... [==================================================] 100.0% INFO: executing command: lpolrestore iBoot boot-stage=1 DEBUG: Ap,RestoreCIO is loaded by iBoot Stage 1 and iBoot. NOTE: No path for component Ap,RestoreCIO in TSS, will fetch from build_identity Extracting t8103ciofw.im4p (Firmware/t8103ciofw.im4p)... Personalizing IMG4 component Ap,RestoreCIO... Tag found Sending Ap,RestoreCIO (172825 bytes)... [==================================================] 100.0% INFO: executing command: firmware DEBUG: Ap,RestoreTMU is loaded by iBoot Stage 1 and iBoot. NOTE: No path for component Ap,RestoreTMU in TSS, will fetch from build_identity Extracting t8103tmufw.im4p (Firmware/t8103tmufw.im4p)... Personalizing IMG4 component Ap,RestoreTMU... Tag found Sending Ap,RestoreTMU (21358 bytes)... [==================================================] 100.0% INFO: executing command: firmware DEBUG: RestoreANS is loaded by iBoot Stage 1 and iBoot. NOTE: No path for component RestoreANS in TSS, will fetch from build_identity Extracting rans.t8103.release.im4p (Firmware/rans.t8103.release.im4p)... Personalizing IMG4 component RestoreANS... Tag found Sending RestoreANS (1000676 bytes)... [==================================================] 100.0% INFO: executing command: firmware DEBUG: RestoreDCP is loaded by iBoot Stage 1 and iBoot. NOTE: No path for component RestoreDCP in TSS, will fetch from build_identity Extracting ipad13dcp_restore.im4p (Firmware/dcp/ipad13dcp_restore.im4p)... Personalizing IMG4 component RestoreDCP... Tag found Sending RestoreDCP (9574385 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 NOTE: No path for component RestoreLogo in TSS, will fetch from build_identity Extracting applelogo@2x~mac-USBc.im4p (Firmware/all_flash/applelogo@2x~mac-USBc.im4p)... Personalizing IMG4 component RestoreLogo... Tag found Sending RestoreLogo (18677 bytes)... [==================================================] 100.0% INFO: executing command: setpicture 4 INFO: executing command: bgcolor 0 0 0 NOTE: No path for component iBEC in TSS, will fetch from build_identity Extracting iBEC.j313.RELEASE.im4p (Firmware/dfu/iBEC.j313.RELEASE.im4p)... Personalizing IMG4 component iBEC... Tag found Sending iBEC (544794 bytes)... [==================================================] 100.0% Waiting for device to disconnect... irecv_event_cb: device 0005681c34d3001e (udid: N/A) disconnected Waiting for device to reconnect in recovery mode... irecv_event_cb: device 0005681c34d3001e (udid: N/A) connected in Recovery mode INFO: device serial number is C02HG32ZQ6L4 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... NOTE: No path for component RestoreLogo in TSS, will fetch from build_identity Extracting applelogo@2x~mac-USBc.im4p (Firmware/all_flash/applelogo@2x~mac-USBc.im4p)... Personalizing IMG4 component RestoreLogo... Tag found Sending RestoreLogo (18677 bytes)... DEBUG: ANE is loaded by iBoot. NOTE: No path for component ANE in TSS, will fetch from build_identity Extracting h13_ane_fw_styx_j5x.im4p (Firmware/ane/h13_ane_fw_styx_j5x.im4p)... Personalizing IMG4 component ANE... Tag found Sending ANE (4925425 bytes)... DEBUG: AOP is loaded by iBoot. NOTE: No path for component AOP in TSS, will fetch from build_identity Extracting aopfw-mac13gaop.RELEASE.im4p (Firmware/AOP/aopfw-mac13gaop.RELEASE.im4p)... Personalizing IMG4 component AOP... Tag found Sending AOP (1329137 bytes)... DEBUG: AVE is loaded by iBoot. NOTE: No path for component AVE in TSS, will fetch from build_identity Extracting AppleAVE2FW_H13G.im4p (Firmware/ave/AppleAVE2FW_H13G.im4p)... Personalizing IMG4 component AVE... Tag found Sending AVE (1373353 bytes)... DEBUG: Ap,DCP2 is loaded by iBoot. NOTE: No path for component Ap,DCP2 in TSS, will fetch from build_identity Extracting ipad13dcp.im4p (Firmware/dcp/ipad13dcp.im4p)... Personalizing IMG4 component Ap,DCP2... Tag found Sending Ap,DCP2 (9574385 bytes)... DEBUG: GFX is loaded by iBoot. NOTE: No path for component GFX in TSS, will fetch from build_identity Extracting armfw_g13g.im4p (Firmware/agx/armfw_g13g.im4p)... Personalizing IMG4 component GFX... Tag found Sending GFX (2932489 bytes)... DEBUG: ISP is loaded by iBoot. NOTE: No path for component ISP in TSS, will fetch from build_identity Extracting adc-pallas-j129.im4p (Firmware/isp_bni/adc-pallas-j129.im4p)... Personalizing IMG4 component ISP... Tag found Sending ISP (13805553 bytes)... DEBUG: PMP is loaded by iBoot. NOTE: No path for component PMP in TSS, will fetch from build_identity Extracting t8103pmp.im4p (Firmware/pmp/t8103pmp.im4p)... Personalizing IMG4 component PMP... Tag found Sending PMP (415729 bytes)... DEBUG: RestoreTrustCache is loaded by iBoot. NOTE: No path for component RestoreTrustCache in TSS, will fetch from build_identity Extracting 090-25576-099.dmg.trustcache (Firmware/090-25576-099.dmg.trustcache)... Personalizing IMG4 component RestoreTrustCache... Tag found Sending RestoreTrustCache (19992 bytes)... DEBUG: SIO is loaded by iBoot. NOTE: No path for component SIO in TSS, will fetch from build_identity Extracting SmartIOFirmware_ASCv4.im4p (Firmware/SmartIOFirmware_ASCv4.im4p)... Personalizing IMG4 component SIO... Tag found Sending SIO (1163717 bytes)... DEBUG: iBootData is loaded by iBoot. NOTE: No path for component iBootData in TSS, will fetch from build_identity Extracting iBootData.j313.RELEASE.im4p (Firmware/all_flash/iBootData.j313.RELEASE.im4p)... Personalizing IMG4 component iBootData... Tag found Sending iBootData (20094 bytes)... ramdisk-size=0x20000000 NOTE: No path for component RestoreRamDisk in TSS, will fetch from build_identity Extracting 090-25576-099.dmg (090-25576-099.dmg)... Personalizing IMG4 component RestoreRamDisk... Tag found Sending RestoreRamDisk (161490932 bytes)... NOTE: No path for component RestoreDeviceTree in TSS, will fetch from build_identity Extracting DeviceTree.j313ap.im4p (Firmware/all_flash/DeviceTree.j313ap.im4p)... Personalizing IMG4 component RestoreDeviceTree... Tag found Sending RestoreDeviceTree (52245 bytes)... NOTE: No path for component RestoreSEP in TSS, will fetch from build_identity Extracting sep-firmware.j313.RELEASE.im4p (Firmware/all_flash/sep-firmware.j313.RELEASE.im4p)... Personalizing IMG4 component RestoreSEP... Tag found Sending RestoreSEP (6336710 bytes)... NOTE: No path for component RestoreKernelCache in TSS, will fetch from build_identity Extracting kernelcache.release.mac13g (kernelcache.release.mac13g)... Personalizing IMG4 component RestoreKernelCache... Tag found Sending RestoreKernelCache (27536070 bytes)... DEBUG: Waiting for device to disconnect... irecv_event_cb: device 0005681c34d3001e (udid: N/A) disconnected Waiting for device to enter restore mode... idevice_event_cb: device 0005681c34d3001e (udid: 00008103-0005681C34D3001E) connected in restore mode About to restore device... restore_is_current_device: Connected to com.apple.mobile.restored, version 15 Connecting now... Connected to com.apple.mobile.restored, version 15 Device 00008103-0005681C34D3001E has successfully entered restore mode Hardware Information: BoardID: 38 ChipID: 33027 UniqueChipID: 1521845238169630 ProductionMode: true Previous restore exit status: 0x100 Starting Reverse Proxy idevicerestore: symbol lookup error: idevicerestore: undefined symbol: reverse_proxy_client_create_with_port

Duckmilk commented 2 months ago

@eilhanzy hey buddy, i currently having the same issues with my m1 pro mbp, were u able to figure out what the issue was?

itspluxstahre commented 1 month ago

@eilhanzy hey buddy, i currently having the same issues with my m1 pro mbp, were u able to figure out what the issue was?

I found a solution... The package in Fedora 40 (dnf install idevicerestore) that is based on this commit https://github.com/libimobiledevice/idevicerestore/tree/609f7f058487596597e8e742088119fdd46729df was able to restore my mbp m1 pro fully with latest macos