Arch Linux - idevicerestore: Device failed to enter restore mode
0
votes
0
answers
95
views
I am trying to restore an dusty old iPhone. I forgot the passcode so it's deactivated now. I installed the idevicerestore AUR from https://aur.archlinux.org/packages/idevicerestore . I put the iPhone in recovery (the screen that shows computer and cable) and connected it to my Arch system.
bash
> sudo idevicerestore --erase --latest
Found device in Recovery mode
Identified device as d211ap, iPhone10,5
The following firmwares are currently being signed for iPhone10,5:
16.7.11 (build 20H360)
Select the firmware you want to restore: 1
Selected firmware 16.7.11 (build 20H360)
Verifying 'iPhone_5.5_P3_16.7.11_20H360_Restore.ipsw'...
Checksum matches.
Extracting BuildManifest from IPSW
Product Version: 16.7.11
Product Build: 20H360 Major: 20
INFO: device serial number is (Redacted)
Device supports Image4: true
Variant: Customer Erase Install (IPSW)
This restore will erase your device data.
################################ [ 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
Using cached filesystem from 'iPhone_5.5_P3_16.7.11_20H360_Restore/087-86694-034.dmg'
Found ECID (Redacted)
Getting ApNonce in recovery mode... 46 ff 9b 29 8a 49 07 17 ce 02 bd f3 53 a0 06 12 6b 4b d8 ab b4 01 22 4a 54 0e 4e 2b 8f ab e6 d7
Trying to fetch new SHSH blob
Getting SepNonce in recovery mode... 81 a4 c3 a2 f6 7f 55 d2 97 fe 3b 2b 27 14 cb c5 af 37 ee 7d
Request URL set to https://gs.apple.com/TSS/controller?action=2
Sending TSS request attempt 1... response successfully received
Received SHSH blobs
Extracting iBEC.d21.RELEASE.im4p...
Personalizing IMG4 component iBEC...
Sending iBEC (1100442 bytes)...
Recovery Mode Environment:
iBoot build-version=iBoot-8422.142.2.700.1
iBoot build-style=RELEASE
Sending RestoreLogo...
Extracting applelogo@3x~iphone.im4p...
Personalizing IMG4 component RestoreLogo...
Sending RestoreLogo (20538 bytes)...
Extracting AppleAVE2FW_H10.im4p...
Personalizing IMG4 component AVE...
Sending AVE (1083621 bytes)...
Extracting adc-nike-d21.im4p...
Personalizing IMG4 component ISP...
Sending ISP (8952981 bytes)...
Extracting 087-86719-037.dmg.trustcache...
Personalizing IMG4 component RestoreTrustCache...
Sending RestoreTrustCache (12860 bytes)...
ramdisk-size=0x20000000
Extracting 087-86719-037.dmg...
Personalizing IMG4 component RestoreRamDisk...
Sending RestoreRamDisk (106962072 bytes)...
Extracting DeviceTree.d211ap.im4p...
Personalizing IMG4 component RestoreDeviceTree...
Sending RestoreDeviceTree (41931 bytes)...
Extracting kernelcache.release.iphone10...
Personalizing IMG4 component RestoreKernelCache...
Sending RestoreKernelCache (18221277 bytes)...
Waiting for device to enter restore mode...
ERROR: Device failed to enter restore mode.
During "Sending iBEC...", the device goes blank then shows the usual Apple Logo shows.
The Apple Logo persists until "Sending RestoreKernelCache (18221277 bytes)..." finishes.
During "Waiting for device to enter restore mode..." the screen goes blank, then Apple logo, but iPhone is back to the computer-and-cable screen, at which point I get "ERROR: Device failed to enter restore mode."
Afterwards, the phone boots to the computer-and-cable screen, indicating that idevicerestore bricked the phone.
Is the tool out-of-date, or is the AUR out-of-date, or is there another problem? Any suggestions would be appreciated, thank you!
Asked by Hyunbin Yoo
(175 rep)
Apr 22, 2025, 01:52 AM