tihmstar / futurerestore

A hacked up idevicerestore wrapper, which allows specifying SEP and Baseband for restoring
GNU Lesser General Public License v3.0
867 stars 272 forks source link

futurerestore stuck at unknown data request "DeviceTree" received #188

Open dhpdevendra opened 6 years ago

dhpdevendra commented 6 years ago

Devendras-Mac-mini:futurerestore devendrapalve$ ./futurerestore_macos -t 2543059263433766_iPhone8,2_n66map_11.0-15A372.shsh2 -b Mav13-4.30.02.Release.bbfw -p BuildManifest.plist -s sep-firmware.n66m.RELEASE.im4p -m BuildManifest.plist iPhone_5.5_11.0_15A372_Restore.ipsw Version: b99eb8140d8e6c23f34e950102bb79e61c72384d - 152 Libipatcher Version: f32e41d850f51448bd6c588ead9c7d6455733f3c - 44 Odysseus Support: yes INFO: device serial number is xxxxxxxxxx [INFO] 64bit device detected futurerestore init done reading ticket 2543059263433766_iPhone8,2_n66map_11.0-15A372.shsh2 done [TSSC] opening BuildManifest.plist WARNING: Unable to find BbSkeyId node [TSSR] User specified not to request a Baseband ticket. Request URL set to https://gs.apple.com/TSS/controller?action=2 Sending TSS request attempt 1... response successfully received Did set sep+baseband path and firmware [WARNING] failed to read BasebandGoldCertID from device! Is it already in recovery? [WARNING] using tsschecker's fallback to get BasebandGoldCertID. This might result in invalid baseband signing status information [TSSC] opening BuildManifest.plist WARNING: Unable to find BbSkeyId node [TSSR] User specified to request only a Baseband ticket. ERROR: Unable to get BasebandFirmware node ERROR: Unable to find required BbGoldCertId in parameters Request URL set to https://gs.apple.com/TSS/controller?action=2 Sending TSS request attempt 1... response successfully received Found device in Recovery mode Device already in Recovery mode Found device in Recovery mode Identified device as n66map, iPhone8,2 Extracting BuildManifest from IPSW Product Version: 11.0 Product Build: 15A372 Major: 15 Device supports Image4: true Got APNonce from device: b6 85 c3 3b 10 9e 2c 65 d5 a5 84 b9 35 11 6a 7e 0a 0c 98 1f checking APTicket to be valid for this restore... Verified ECID in APTicket matches device ECID checking APTicket to be valid for this restore... Verified ECID in APTicket matches device ECID Verified APTicket to be valid for this restore Variant: Customer Erase Install (IPSW) This restore will erase your device data. Extracting filesystem from IPSW [==================================================] 100.0% Extracting iBEC.n66m.RELEASE.im4p... Personalizing IMG4 component iBEC... Sending iBEC (354518 bytes)... ERROR: Unable to send iBEC component: Unable to find device ERROR: Unable to send iBEC to device. [Error] ERROR: Unable to send iBEC Done: restoring failed. Failed with errorcode=-8 Devendras-Mac-mini:futurerestore devendrapalve$ ./futurerestore_macos -t 2543059263433766_iPhone8,2_n66map_11.0-15A372.shsh2 -b Mav13-4.30.02.Release.bbfw -p BuildManifest.plist -s sep-firmware.n66m.RELEASE.im4p -m BuildManifest.plist iPhone_5.5_11.0_15A372_Restore.ipsw Version: b99eb8140d8e6c23f34e950102bb79e61c72384d - 152 Libipatcher Version: f32e41d850f51448bd6c588ead9c7d6455733f3c - 44 Odysseus Support: yes INFO: device serial number is xxxxxxxxxxxx [INFO] 64bit device detected futurerestore init done reading ticket 2543059263433766_iPhone8,2_n66map_11.0-15A372.shsh2 done [TSSC] opening BuildManifest.plist WARNING: Unable to find BbSkeyId node [TSSR] User specified not to request a Baseband ticket. Request URL set to https://gs.apple.com/TSS/controller?action=2 Sending TSS request attempt 1... response successfully received Did set sep+baseband path and firmware [WARNING] failed to read BasebandGoldCertID from device! Is it already in recovery? [WARNING] using tsschecker's fallback to get BasebandGoldCertID. This might result in invalid baseband signing status information [TSSC] opening BuildManifest.plist WARNING: Unable to find BbSkeyId node [TSSR] User specified to request only a Baseband ticket. ERROR: Unable to get BasebandFirmware node ERROR: Unable to find required BbGoldCertId in parameters Request URL set to https://gs.apple.com/TSS/controller?action=2 Sending TSS request attempt 1... response successfully received Found device in Recovery mode Device already in Recovery mode Found device in Recovery mode Identified device as n66map, iPhone8,2 Extracting BuildManifest from IPSW Product Version: 11.0 Product Build: 15A372 Major: 15 Device supports Image4: true Got APNonce from device: b6 85 c3 3b 10 9e 2c 65 d5 a5 84 b9 35 11 6a 7e 0a 0c 98 1f checking APTicket to be valid for this restore... Verified ECID in APTicket matches device ECID checking APTicket to be valid for this restore... Verified ECID in APTicket matches device ECID Verified APTicket to be valid for this restore Variant: Customer Erase Install (IPSW) This restore will erase your device data. Using cached filesystem from 'iPhone_5.5_11.0_15A372_Restore/058-45584-478.dmg' Extracting iBEC.n66m.RELEASE.im4p... Personalizing IMG4 component iBEC... Sending iBEC (354518 bytes)... waiting for device to reconnect... Getting SepNonce in recovery mode... 78 ff 2b 7a b3 9b 4e 19 10 a6 59 bb 14 d0 f4 a5 2b 30 4e 85 Getting ApNonce in recovery mode... b6 85 c3 3b 10 9e 2c 65 d5 a5 84 b9 35 11 6a 7e 0a 0c 98 1f [WARNING] Setting bgcolor to green! If you don't see a green screen, then your device didn't boot iBEC correctly Recovery Mode Environment: iBoot build-version=iBoot-4076.1.44 iBoot build-style=RELEASE Sending RestoreLogo... Extracting applelogo@3x~iphone.im4p... Personalizing IMG4 component RestoreLogo... Sending RestoreLogo (18932 bytes)... ramdisk-size=0x20000000 Extracting 058-59982-349.dmg... Personalizing IMG4 component RestoreRamDisk... Sending RestoreRamDisk (59098709 bytes)... Extracting DeviceTree.n66map.im4p... Personalizing IMG4 component RestoreDeviceTree... Sending RestoreDeviceTree (134202 bytes)... Extracting kernelcache.release.n66... Personalizing IMG4 component RestoreKernelCache... Sending RestoreKernelCache (14002786 bytes)... Trying to fetch new SHSH blob WARNING: Unable to find BbSkeyId node Request URL set to https://gs.apple.com/TSS/controller?action=2 Sending TSS request attempt 1... response successfully received Received SHSH blobs About to restore device... Waiting for device... Device ffffffffffffffffffffffffffffffff00000004 is now connected in restore mode... Connecting now... Connected to com.apple.mobile.restored, version 15 Device ffffffffffffffffffffffffffffffff00000004 has successfully entered restore mode Hardware Information: BoardID: 6 ChipID: 32771 UniqueChipID: 2543059263433766 ProductionMode: true Starting FDR listener thread About to send NORData... Found firmware path Firmware/all_flash ERROR: zip_name_locate: Firmware/all_flash/manifest Getting firmware manifest from build identity Extracting LLB.n66m.RELEASE.im4p... Personalizing IMG4 component LLB... Extracting applelogo@3x~iphone.im4p... Personalizing IMG4 component AppleLogo... Extracting batterycharging0@3x~iphone.im4p... Personalizing IMG4 component BatteryCharging0... Extracting batterycharging1@3x~iphone.im4p... Personalizing IMG4 component BatteryCharging1... Extracting batteryfull@3x~iphone.im4p... Personalizing IMG4 component BatteryFull... Extracting batterylow0@3x~iphone.im4p... Personalizing IMG4 component BatteryLow0... Extracting batterylow1@3x~iphone.im4p... Personalizing IMG4 component BatteryLow1... Extracting glyphplugin@1920~iphone-lightning.im4p... Personalizing IMG4 component BatteryPlugin... Extracting DeviceTree.n66map.im4p... Personalizing IMG4 component DeviceTree... Extracting recoverymode@1920~iphone-lightning.im4p... Personalizing IMG4 component RecoveryMode... Extracting iBoot.n66m.RELEASE.im4p... Personalizing IMG4 component iBoot... Personalizing IMG4 component RestoreSEP... Personalizing IMG4 component SEP... Sending NORData now... Done sending NORData About to send RootTicket... Sending RootTicket now... Done sending RootTicket Waiting for NAND (28) Updating S3E Firmware (58) Checking filesystems (15) Checking filesystems (15) Checking filesystems (15) Checking filesystems (15) About to send FDR Trust data... Sending FDR Trust data now... Done sending FDR Trust Data Unmounting filesystems (29) Unmounting filesystems (29) Unmounting filesystems (29) Creating partition map (11) Creating filesystem (12) About to send filesystem... Connected to ASR Validating the filesystem Filesystem validated Sending filesystem now... [==================================================] 100.0% Done sending filesystem Verifying restore (14) [==================================================] 100.0% Checking filesystems (15) Checking filesystems (15) Checking filesystems (15) Mounting filesystems (16) Mounting filesystems (16) Mounting filesystems (16) About to send KernelCache... Extracting kernelcache.release.n66... Personalizing IMG4 component KernelCache... Sending KernelCache now... Done sending KernelCache Installing kernelcache (27) Unknown data request 'DeviceTree' received

dhpdevendra commented 6 years ago

My iPhone 6s Plus remained stuck in "Unknown data request 'DeviceTree' received" status for 5 hours. Didn't reboot on its own. So I had to get it into recovery, but could not get it out of recovery even Reiboot which prompted me restore it to latest iOS i.e. iOS 11.2.1. So I am on iOS 11.2.1 now without jailbreak.

tomlube commented 6 years ago

Have this same issue. RIP to our iDevices.