Coder Social home page Coder Social logo

Comments (28)

wyatt8740 avatar wyatt8740 commented on September 13, 2024

I'd like to add that I can't restore my iPhone 4s from DFU mode or recovery mode either.

log:
$ sudo idevicerestore iPhone4,1_7.0.4_11B554a_Restore.ipsw
NOTE: using cached version data
Found device in DFU mode
Identified device as iPhone4,1
Extracting BuildManifest from IPSW
Product Version: 7.0.4
Product Build: 11B554a Major: 11
Variant: Customer Upgrade Install (IPSW)
This restore will update your device without losing data.
Found ECID 1209570555151
ERROR: Unable to connect to device in DFU mode
Getting nonce in dfu mode... failed
NOTE: Unable to get nonce from device
Trying to fetch new SHSH blob
Request URL set to https://gs.apple.com/TSS/controller?action=2
Sending TSS request attempt 1... response successfully received
Received SHSH blobs
Extracting filesystem from IPSW
[==================================================] 100.0%
Extracting iBSS.n94ap.RELEASE.dfu...
Personalizing component iBSS.n94ap.RELEASE.dfu...
reconstructed size: 76314
Sending iBSS (76314 bytes)...
[==================================================] 100.0%
Nonce: 6c d3 ec 40 80 0e a0 09 58 86 5d 75 b7 a0 8f 75 5a 65 8b ad
Trying to fetch new SHSH blob
Request URL set to https://gs.apple.com/TSS/controller?action=2
Sending TSS request attempt 1... response successfully received
Received SHSH blobs
ERROR: Unable to find iBEC entry in TSS response
Extracting iBEC.n94ap.RELEASE.dfu...
ERROR: Unable to find iBEC entry in TSS response
Not personalizing component iBEC.n94ap.RELEASE.dfu...
Sending iBEC (281740 bytes)...
[==================================================] 100.0%
ERROR: Unable to connect to recovery device
ERROR: Unable to place device into recovery mode from DFU mode

from idevicerestore.

FunkyM avatar FunkyM commented on September 13, 2024

Please use the latest idevicerestore from git HEAD. It is able to restore anything up to latest iOS 7.1. Make sure to also update libirecovery from here. Furthermore make sure libusb has enough permissions to access your usb device nodes. Usually running the tool with "sudo" should ensure this.

from idevicerestore.

ElSebita avatar ElSebita commented on September 13, 2024

Same error here as @wyatt8740 . Downloaded and compiled idevicerestore today. Fedora 20

Reading data from version.xml
NOTE: using cached version data
opening device 05ac:1227...
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='NONC'
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='SNON'
irecv_copy_nonce_with_tag: ERROR: couldn't find tag SNON in string  NONC:F456396AAD6A056C137722DAD46B4C301C43837B
Setting to configuration 1
Setting to interface 0:0
opening device 05ac:1227...
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='NONC'
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='SNON'
irecv_copy_nonce_with_tag: ERROR: couldn't find tag SNON in string  NONC:F456396AAD6A056C137722DAD46B4C301C43837B
Setting to configuration 1
Setting to interface 0:0
Found device in DFU mode
opening device 05ac:1227...
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='NONC'
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='SNON'
irecv_copy_nonce_with_tag: ERROR: couldn't find tag SNON in string  NONC:F456396AAD6A056C137722DAD46B4C301C43837B
Setting to configuration 1
Setting to interface 0:0
Identified device as iPad2,1
Extracting Restore.plist from IPSW
Product Version: 7.1
Product Build: 11D167 Major: 11
opening device 05ac:1227...
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='NONC'
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='SNON'
irecv_copy_nonce_with_tag: ERROR: couldn't find tag SNON in string  NONC:F456396AAD6A056C137722DAD46B4C301C43837B
Setting to configuration 1
Setting to interface 0:0
Device supports Image4: false
Custom firmware requested. Disabled TSS request.
Variant: Customer Upgrade Install (IPSW)
This restore will update your device without losing data.
Using cached filesystem from 'iPad2,1_7.1_11D167_Restore/058-4388-001.dmg'
opening device 05ac:1227...
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='NONC'
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='SNON'
irecv_copy_nonce_with_tag: ERROR: couldn't find tag SNON in string  NONC:F456396AAD6A056C137722DAD46B4C301C43837B
Setting to configuration 1
Setting to interface 0:0
Extracting iBSS.k93ap.RELEASE.dfu...
Not personalizing component iBSS...
Writing data to iBSS
Sending iBSS (74124 bytes)...
[==================================================] 100.0%
opening device 05ac:1227...
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='NONC'
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='SNON'
irecv_copy_nonce_with_tag: ERROR: couldn't find tag SNON in string  NONC:F456396AAD6A056C137722DAD46B4C301C43837B
Setting to configuration 1
Setting to interface 0:0
Nonce: f4 56 39 6a ad 6a 05 6c 13 77 22 da d4 6b 4c 30 1c 43 83 7b 
Setting to configuration 1
Extracting iBEC.k93ap.RELEASE.dfu...
Not personalizing component iBEC...
Writing data to iBEC
Sending iBEC (291212 bytes)...
[==================================================] 100.0%
opening device 05ac:1227...
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='NONC'
irecv_copy_nonce_with_tag: got length: 46
irecv_copy_nonce_with_tag: buf=' NONC:F456396AAD6A056C137722DAD46B4C301C43837B' tag='SNON'
irecv_copy_nonce_with_tag: ERROR: couldn't find tag SNON in string  NONC:F456396AAD6A056C137722DAD46B4C301C43837B
Setting to configuration 1
Setting to interface 0:0
ERROR: Unable to connect to recovery device
ERROR: Unable to place device into recovery mode from DFU mode

from idevicerestore.

FunkyM avatar FunkyM commented on September 13, 2024

@ElSebita You are doing it wrong. Reading "Custom firmware requested. Disabled TSS request." means that you try to install a custom firmware or got the CLI arguments wrong. There is no custom firmware support on iOS 7.x. Please also try to post the full command line instead of just the command output. Furthermore you are attempting an update install. You should try with "-e" erase first, especially as update install is only supported for minor version updates (e.g. 7.0.1 to 7.0.x).

from idevicerestore.

ElSebita avatar ElSebita commented on September 13, 2024

Thanks.
I tried -e option before but same situation. I'm using a downloaded ipsw file:

sudo idevicerestore -d -e iPad2,1_7.1_11D167_Restore.ipsw

from idevicerestore.

ElSebita avatar ElSebita commented on September 13, 2024

These messages appear in dmesg too:

[279393.653669] usb 1-1.6: usbfs: process 28424 (idevicerestore) did not claim interface 1 before use
[279462.696100] usb 1-1.6: usbfs: process 28464 (irecovery) did not claim interface 1 before use

from idevicerestore.

uncommonthinker avatar uncommonthinker commented on September 13, 2024

I got the same error : Trying for iPhone4 on iOS7.1 and restoring it back to 7.1 using ipsw on local machine. @FunkyM

About to send RootTicket...
Sending RootTicket now...
Done sending RootTicket
About to send filesystem...
usbmuxd_connect: Connect failed, Error code=3
Connected to ASR
Validating the filesystem
ERROR: Unable to receive data from ASR
ERROR: Unable to receive validation packet
ERROR: ASR was unable to validate the filesystem
ERROR: Unable to send filesystem
ERROR: Unable to successfully restore device
Got status message
Status: Fail

Log is available:
aler 0 enableDeviceClock(false,FULL_CLOCK_INDEX) = 0x0
void AppleRGBOUT::verify_swap_gated(IOMFBSwapIORequest _, bool *) failed fIsDPOut: 0 fDPDriver: 0 fTVOUTDelegate: 0
AppleRGBOUT verify_swap failed
void AppleRGBOUT::verify_swap_gated(IOMFBSwapIORequest *, bool *) failed fIsDPOut: 0 fDPDriver: 0 fTVOUTDelegate: 0
AppleRGBOUT verify_swap failed
AppleS5L8920XBasebandSPIController::loadConfiguration: NCLK Frequency 48857142, Prescaler 3
BasebandSPIDevice::exitLowPower: Invalid state inactive
AppleSerialMultiplexer: adap::start: Frame size is 2048, Rx Buffer count is 16
AppleSerialMultiplexer: mux::start: created new mux (17) for spi-baseband with adapter BasebandSPIDevice
AppleSerialMultiplexer: debugparams::init: Parsed flags "" ( 0 )
AppleSerialMultiplexer: !! mux::setPowerStateGated: Skipping power state change
AppleSamsungSerial: Identified Serial Port on ARM Device=uart1 at 0x82600000(0x8bf65000)
AppleSamsungSerial: Identified Serial Port on ARM Device=uart2 at 0x82700000(0x8bf6d000)
AppleSamsungSerial: Identified Serial Port on ARM Device=uart3 at 0x82800000(0x8bf76000)
AppleSamsungSerial: Identified Serial Port on ARM Device=uart6 at 0x82b00000(0x8bf8e000)
[HPark] AUD10::start: 0x80118000, highland-park mIISNub: 0x9128d080, sampleRate = 44100, ol=10, oi=12
AppleCS42L61Audio: could not allocate control 395
AppleARMBacklight::start: _minDACLevel=456 _maxDACLevel=1971
AppleMultitouchN1SPI: successfully started
AppleRGBOUT: TVOUT device is detected
ApplePinotLCD: _lcdPanelID: 0xa1c205c8 _lcdPanelClass: 2
IOReturn AppleMobileCLCD::set_ditherTable_state(bool), mIsCLCDDitherFor8Bits is true, no dynamic dither table.
AppleD1815PMUPowerSource: AppleUSBCableDetect 1
AppleD1815PMUPowerSource: AppleUSBCableType USBHost
AppleSynopsysOTGDevice::gated_handleUSBCableConnect cable connected, but don't have device configuration yet
AppleSynopsysOTGDevice::gated_handleUSBCableConnect cable connected, but don't have device configuration yet
[HPark] AUD10::start: 0x80118000, highland-park mIICNub: 0x909db540, mIISNub: 0x9128d080, mSerialNub: 0x91276400, sampleRate = 44100, ol=10, oi=12
[HPark] AUD10 ATSc values: [ mic1: 0x00000000, mic2: 0x000000fb, mic3: 0x00000000, recv: 0x00000000, spk: 0x00000000 ]
[HPark] AUD10::setPowerState() function called whereas Start() is not finished
AppleMultitouchN1SPI: detected HBPP. driver will be kept alive
IOSDIOController::enumerateSlot(): Searching for SDIO device in slot: 0
IOSDIOController::enumerateSlot(): Found SDIO I/O device. Function count(1), memory(0)
IOSDIOIoCardDevice::parseFn0CISTuple(): Device manufacturer ID 0x2d0, Product ID 0x4329
IOSDIOIoCardDevice::parseFn0CISTuple(): Manufacturer: ""
IOSDIOIoCardDevice::parseFn0CISTuple(): Product: ""
IOSDIOIoCardDevice::parseFn0CISTuple(): ProductInfo0: "s=B1"
IOSDIOIoCardDevice::parseFn0CISTuple(): ProductInfo1: "P=N90 m=3.1 V=m"
AppleBCMWLANBusInterfaceSdio::start(): Started by: IOSDIOIoCardDevice, AppleBCMWLANV2-258 Feb 28 2014 17:28:01
AppleBCMWLANCore::init(): IO80211-46 Feb 28 2014 17:24:28
000023.810240 wlan.N[0] AppleBCMWLANCore::start(): Starting with MAC Address: 90:27:e4:4c:60:a8
IO80211Peer::addPhyStatistics Phy stats started for addr 00:be:ef:ff:ff:ff
IO80211Peer::addPhyStatistics Tx Completion stats started for addr 00:be:ef:ff:ff:ff
IO80211PeerManager::initWithInterface cant add monitoring timer
Started logging for intf
IO80211PeerManager::initWithInterface: inited peer manager
IO80211Interface::init peerManager=0x91316000
start:156
start:156
000023.813904 wlan.N[1] AppleBCMWLANCore::setPowerStateGated(): powerState 1, fStateFlags 0x20, dev 0x8031e000 (this 1, provider 0)
000023.813945 wlan.N[2] AppleBCMWLANCore::setPowerStateGated(): Received power state change before driver has initialized, ignoring
AppleSynopsysOTGDevice::gated_handleUSBCableConnect cable connected, but don't have device configuration yet
read new style signature 0x43313131 (line:389)
[FTL:MSG] VSVFL Register [OK]
[WMR:MSG] Metadata whitening is set in NAND signature
[FTL:MSG] VFL Init [OK]
display-scale = 2
display-rotation = 0
found applelogo at /usr/share/progressui/[email protected]
found display: primary
display: 640 x 960
found PTP interface
AppleSynopsysOTGDevice - Configuration: PTP
AppleSynopsysOTGDevice Interface: PTP
AppleSynopsysOTGDevice - Configuration: iPod USB Interface
AppleSynopsysOTGDevice Interface: USBAudioControl
AppleSynopsysOTGDevice Interface: USBAudioStreaming
AppleSynopsysOTGDevice Interface: IapOverUsbHid
AppleSynopsysOTGDevice - Configuration: PTP + Apple Mobile Device
AppleSynopsysOTGDevice Interface: PTP
AppleSynopsysOTGDevice Interface: AppleUSBMux
AppleSynopsysOTGDevice - Configuration: PTP + Apple Mobile Device + Apple USB Ethernet
AppleSynopsysOTGDevice Interface: PTP
AppleSynopsysOTGDevice Interface: AppleUSBMux
AppleSynopsysOTGDevice Interface: AppleUSBEthernet
AppleSynopsysOTGDevice::gated_registerFunction Register function USBAudioControl
AppleSynopsysOTGDevice::gated_registerFunction Register function USBAudioStreaming
IOAccessoryPortUSB::start
AppleSynopsysOTGDevice::gated_registerFunction Register function IapOverUsbHid
virtual bool AppleUSBDeviceMux::start(IOService *) build: Feb 28 2014 17:26:28
init_waste
AppleSynopsysOTGDevice::gated_registerFunction Register function AppleUSBMux
AppleSynopsysOTGDevice::gated_registerFunction Register function AppleUSBEthernet
AppleSynopsysOTGDevice::gated_registerFunction Register function PTP
AppleSynopsysOTGDevice::startUSBStack Starting usb stack
[FTL:MSG] VFL_Open [OK]
[FTL:MSG] YAFTL Register [OK]
IOReturn AppleUSBDeviceMux::setPropertiesGated(OSObject *) setting debug level to 7
AppleSynopsysOTGDevice::stallBadSetupRequest request: 21 0a 0000 0002 0000
[FTL:MSG] FTL_Open [OK]
[NAND] publishServices:642 FTL capabilities: 0x00000000
AppleUSBDeviceMux::handleConnectResult new session 0x928d7528 established 62078<-lo0->49152 62078<-usb->1
[nand_part_core:INF@ 157] published partition 0
[nand_part_core:INF@ 157] published partition 1
[nand_part_core:INF@ 157] published partition 2
[nand_part_core:INF@ 157] published partition 3
[nand_part_core:INF@ 157] published partition 5
[nand_part_core:INF@ 157] published partition 6
void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x928d7528
recv(13, 4) failed: connection closed
unable to read message size: -1
could not receive message
[effaceable:INIT] found current generation, 287, in group 2
[effaceable:INIT] started
[effaceable:INIT] started
AppleARMBacklight::start: No AAP function
AppleUSBDeviceMux::handleConnectResult new session 0x928d7528 established 62078<-lo0->49153 62078<-usb->2
AppleUSBDeviceMux::handleConnectResult new session 0x928d74d0 established 62078<-lo0->49154 62078<-usb->3
AppleUSBDeviceMux::handleConnectResult new session 0x928d7478 established 62078<-lo0->49155 62078<-usb->4
unrecognized request 'GetValue'
AppleUSBDeviceMux::sessionUpcall socket is closed, session 0x928d7528 (62078<-lo0->49153 62078<-usb->2)
unrecognized request 'GetValue'
AppleUSBDeviceMux::handleConnectResult new session 0x928d7528 established 62078<-lo0->49156 62078<-usb->5
unrecognized request 'GetValue'
AppleUSBDeviceMux::handleConnectResult new session 0x928d7420 established 62078<-lo0->49157 62078<-usb->6
client protocol version 13
copy_restore_options: updating from a preflighted restore
*
* UUID D94E9D2A-1806-B282-5157-AA79DBDFB8AE ***
Restore options:
BBUpdaterState => <CFBasicHash 0x14535aa0 [0x397ae0]>{type = mutable dict, count = 5,
entries =>
1 : <CFString 0x14535cf0 [0x397ae0]>{contents = "Nonce"} = <CFData 0x14535e20 [0x397ae0]>{length = 20, capacity = 20, bytes = 0xede19ab0b1842b736a776b268969a5a5e2d3d514}
6 : <CFString 0x14534b90 [0x397ae0]>{contents = "CertID"} = <CFNumber 0x14532ad0 [0x397ae0]>{value = +257, type = kCFNumberSInt64Type}
7 : <CFString 0x14535b90 [0x397ae0]>{contents = "ChipSerialNo"} = <CFData 0x14535cd0 [0x397ae0]>{length = 12, capacity = 12, bytes = 0x69ea05e460180393495aef0d}
8 : <CFString 0x14535e40 [0x397ae0]>{contents = "VendorID"} = <CFNumber 0x145332a0 [0x397ae0]>{value = +2, type = kCFNumberSInt32Type}
10 : <CFString 0x14535b50 [0x397ae0]>{contents = "ChipID"} = <CFNumber 0x14535b80 [0x397ae0]>{value = +80, type = kCFNumberSInt64Type}
}

UUID                           => <CFString 0x145342a0 [0x397ae0]>{contents = "D94E9D2A-1806-B282-5157-AA79DBDFB8AE"}
MinimumSystemPartition         => <CFNumber 0x145341f0 [0x397ae0]>{value = +1530, type = kCFNumberSInt64Type}
SystemPartitionSize            => <CFNumber 0x14535a20 [0x397ae0]>{value = +1530, type = kCFNumberSInt64Type}
PersonalizedDuringPreflight    => <CFBoolean 0x397e90 [0x397ae0]>{value = true}
SystemPartitionPadding         => <CFBasicHash 0x145342d0 [0x397ae0]>{type = mutable dict, count = 5,

entries =>
2 : <CFString 0x14535720 [0x397ae0]>{contents = "128"} = <CFNumber 0x14534220 [0x397ae0]>{value = +1280, type = kCFNumberSInt64Type}
3 : <CFString 0x14533b10 [0x397ae0]>{contents = "16"} = <CFNumber 0x14534250 [0x397ae0]>{value = +160, type = kCFNumberSInt64Type}
4 : <CFString 0x145341c0 [0x397ae0]>{contents = "32"} = <CFNumber 0x145360d0 [0x397ae0]>{value = +320, type = kCFNumberSInt64Type}
5 : <CFString 0x145358d0 [0x397ae0]>{contents = "8"} = <CFNumber 0x14535a10 [0x397ae0]>{value = +80, type = kCFNumberSInt64Type}
8 : <CFString 0x145360e0 [0x397ae0]>{contents = "64"} = <CFNumber 0x14534000 [0x397ae0]>{value = +640, type = kCFNumberSInt64Type}
}

entering load_sep_os
device has no sep
entering partition_nand_device
device supports boot-from-NAND
nand device is already partitioned
entering wait_for_storage_device
Searching for NAND service
Found NAND service: IOFlashStoragePartition
NAND initialized. Waiting for devnode.
entering clear_remap_variable
executing /usr/sbin/nvram
entering format_effaceable_storage
effaceable storage is formatted, clearing it
effaceable storaged cleared
entering ramrod_probe_media
device partitioning scheme is GPT
find_filesystem_partitions: storage=/dev/disk0s1 system=/dev/disk0s1s1 data=/dev/disk0s1s2
executing /sbin/fsck_hfs
unrecognized request 'GetValue'
void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x928d74d0
recv(13, 4) failed: connection closed
unable to read message size: -1
could not receive message
void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x928d7528
recv(9, 4) failed: connection closed
unable to read message size: -1
could not receive message
void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x928d7478
recv(14, 4) failed: connection closed
unable to read message size: -1
could not receive message
AppleUSBDeviceMux::handleConnectResult new session 0x928d7478 established 62078<-lo0->49158 62078<-usb->7
unrecognized request 'GetValue'
** /dev/rdisk0s1s1
Executing fsck_hfs (version hfs-277.10.5).
** Checking Journaled HFS Plus volume.
** Detected a case-sensitive volume.
The volume name is Sochi11D169.N90OS
** Checking extents overflow file.
** Checking catalog file.
** Checking multi-linked files.
** Checking catalog hierarchy.
** Checking extended attributes file.
** Checking volume bitmap.
** Checking volume information.
** Trimming unused blocks.
** The volume Sochi11D169.N90OS appears to be OK.
executing /sbin/mount_hfs
mount_hfs: Could not create property for re-key environment check: No such file or directory
/dev/disk0s1s1 mounted on /mnt1
entering check_for_restore_log
restore log does not exist
entering unmount_filesystems
error unmounting '/mnt2': Invalid argument
entering clean_NAND
NAND format complete
entering ramrod_probe_media
find_filesystem_partitions: storage=/dev/disk0 system= data=
entering format_storage_for_LwVM
entering ramrod_probe_media
device partitioning scheme is GPT
unexpected partition 'LwVM' - skipping
find_filesystem_partitions: storage=/dev/disk0s1 system= data=
entering create_filesystem_partitions
User specified system partition size, skipping firmware extras size.
system partition padding size is: 335544320 bytes
unable to open : No such file or directory
creating 2 partitions
creating encrypted data partition
entering ramrod_probe_media
device partitioning scheme is GPT
find_filesystem_partitions: storage=/dev/disk0s1 system=/dev/disk0s1s1 data=/dev/disk0s1s2
wipe entire partition: 1 (old = 0 new = 1850)
block size for /dev/disk0s1s1: 8192
/sbin/newfs_hfs -s -v System -J -b 8192 -n a=8192,c=8192,e=8192 /dev/disk0s1s1
executing /sbin/newfs_hfs -s -v System -J -b 8192 -n a=8192,c=8192,e=8192 /dev/disk0s1s1
void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x928d7478
recv(9, 4) failed: connection closed
unable to read message size: -1
could not receive message
Initialized /dev/rdisk0s1s1 as a 2 GB case-sensitive HFS Plus volume with a 8192k journal
block size for /dev/disk0s1s2: 8192
/sbin/newfs_hfs -s -v Data -J -P -b 8192 -n a=8192,c=8192,e=8192 /dev/disk0s1s2
executing /sbin/newfs_hfs -s -v Data -J -P -b 8192 -n a=8192,c=8192,e=8192 /dev/disk0s1s2
Initialized /dev/rdisk0s1s2 as a 28 GB case-sensitive HFS Plus volume with a 8192k journal
entering ramrod_probe_media
device partitioning scheme is GPT
find_filesystem_partitions: storage=/dev/disk0s1 system=/dev/disk0s1s1 data=/dev/disk0s1s2
entering mount_filesystems
executing /sbin/fsck_hfs
** /dev/rdisk0s1s1
Executing fsck_hfs (version hfs-277.10.5).
** Checking Journaled HFS Plus volume.
** Detected a case-sensitive volume.
The volume name is System
** Checking extents overflow file.
** Checking catalog file.
** Checking multi-linked files.
** Checking catalog hierarchy.
** Checking extended attributes file.
** Checking volume bitmap.
** Checking volume information.
** Trimming unused blocks.
** The volume System appears to be OK.
executing /sbin/mount_hfs
mount_hfs: Could not create property for re-key environment check: No such file or directory
/dev/disk0s1s1 mounted on /mnt1
executing /sbin/fsck_hfs
** /dev/rdisk0s1s2
Executing fsck_hfs (version hfs-277.10.5).
** Checking Journaled HFS Plus volume.
** Detected a case-sensitive volume.
The volume name is Data
** Checking extents overflow file.
** Checking catalog file.
** Checking multi-linked files.
** Checking catalog hierarchy.
** Checking extended attributes file.
** Checking volume bitmap.
** Checking volume information.
** Trimming unused blocks.
** The volume Data appears to be OK.
executing /sbin/mount_hfs
mount_hfs: Could not create property for re-key environment check: No such file or directory
/dev/disk0s1s2 mounted on /mnt2
entering resize_system_partition_to_options
User specified system partition size, skipping firmware extras size.
Found SystemPartitionPadding value of 335544320 bytes
Erasing system partition prior to resize operation.
block size for /dev/disk0s1s1: 8192
/sbin/newfs_hfs -s -v System -J -b 8192 -n a=8192,c=8192,e=8192 /dev/disk0s1s1
executing /sbin/newfs_hfs -s -v System -J -b 8192 -n a=8192,c=8192,e=8192 /dev/disk0s1s1
Initialized /dev/rdisk0s1s1 as a 2 GB case-sensitive HFS Plus volume with a 8192k journal
executing /sbin/fsck_hfs
** /dev/rdisk0s1s1
Executing fsck_hfs (version hfs-277.10.5).
** Checking Journaled HFS Plus volume.
** Detected a case-sensitive volume.
The volume name is System
** Checking extents overflow file.
** Checking catalog file.
** Checking multi-linked files.
** Checking catalog hierarchy.
** Checking extended attributes file.
** Checking volume bitmap.
** Checking volume information.
** Trimming unused blocks.
** The volume System appears to be OK.
executing /sbin/mount_hfs
mount_hfs: Could not create property for re-key environment check: No such file or directory
/dev/disk0s1s1 mounted on /mnt1
Trying to resize system partition to 1939865600 bytes aka 1850 MB
entering adjust_partition_preflight
partition:0 requiredSize=236800
no change in size
Successfully resized the system partition
entering maximize_data_partition
entering adjust_partition_preflight
partition:1 requiredSize=2251799813685248
maximizing data partition to 30037508095 bytes
entering adjust_partition_preflight
partition:1 requiredSize=3666688
no change in size
Successfully resized data partition to consume free blocks
The system partition now has a total HFS+ capacity of 1850 MB
entering ramrod_probe_media
device partitioning scheme is GPT
find_filesystem_partitions: storage=/dev/disk0s1 system=/dev/disk0s1s1 data=/dev/disk0s1s2
entering unmount_filesystems
entering ramrod_ticket_update
looking up root ticket hash
device tree ticket-hash: <CFData 0x1453a4f0 [0x397ae0]>{length = 20, capacity = 20, bytes = 0x8953f47acad98473dd8455f05596d6084a722fd5}
ticket_hash: 8953F47ACAD98473DD8455F05596D6084A722FD5
received valid ticket (2741 bytes)
entering restore_images
Successfully marked device node /dev/rdisk0s1s1 as static data
executing /usr/sbin/asr -source asr://localhost:12345 -target /dev/disk0s1s1 -erase -noprompt --chunkchecksum --puppetstrings
void AppleUSBDeviceMux::handleConnectResult(struct BulkUSBMuxSession *, errno_t) new session to port 12345 failed: 61
ASR: asr: Unable to disable idle sleep - -536870199
ASR STATUS: start 241.1 multicast-client
ASR: Waiting for connection attempt from server
AppleUSBDeviceMux::handleConnectResult new session 0x928d70b0 established 12345<-lo0->49160 12345<-usb->9
ASR STATUS: setup
ASR: Validating target...done
ASR STATUS: metadata
ASR: Validating source...
ASR: Can't gather image metadata
ASR: Could not validate source - error 110
ASR STATUS: fail
AppleUSBDeviceMux::sessionUpcall socket is closed, session 0x928d70b0 (12345<-lo0->49160 12345<-usb->9)

ERROR: Unable to restore device

from idevicerestore.

FunkyM avatar FunkyM commented on September 13, 2024

There is a bug in libirecovery which I need to fix for this to work.

from idevicerestore.

markcoker avatar markcoker commented on September 13, 2024

Hi @FunkyM, is there any update to this issue? im not sure if it helps but winocms opensn0w works fine with iphone in recovery mode.

from idevicerestore.

mohamedhamada avatar mohamedhamada commented on September 13, 2024

Hi @FunkyM, Can you help me please?
When trying to restore a custom iOS 8.3.IPSW on my iPhone 5 I face that problem :-
Mohameds-MacBook-Pro:Library-iPhone mohamedhamada$ idevicerestore -u --6DB4AE27928942E0F045F5B33B7843EDCABBDEC7 -c iPhone5,2_8.3_12F70_Restore.ipsw
NOTE: using cached version data
Found device in Normal mode
Identified device as iPhone5,2
Extracting Restore.plist from IPSW
Product Version: 8.3
Product Build: 12F70 Major: 12
Device supports Image4: false
Custom firmware requested. Disabled TSS request.
Variant: Customer Upgrade Install (IPSW)
This restore will update your device without losing data.
Using cached filesystem from 'iPhone5,2_8.3_12F70_Restore/058-14626-073.dmg'
Entering recovery mode...
ERROR: Unable to connect to device in recovery mode
ERROR: Unable to enter recovery mode
ERROR: Unable to place device into recovery mode from Normal mode

from idevicerestore.

rodrigodiaz avatar rodrigodiaz commented on September 13, 2024

Hi @mohamedhamada, when I got that problem, it was solved using sudo. I hope it works. Best Regards!

from idevicerestore.

mohamedhamada avatar mohamedhamada commented on September 13, 2024

Hi @rodrigodiaz , Can you tell me, how to do that?please

from idevicerestore.

rodrigodiaz avatar rodrigodiaz commented on September 13, 2024

@mohamedhamada Sure.
In your console you typed:
Mohameds-MacBook-Pro:Library-iPhone mohamedhamada$ idevicerestore -u --6DB4AE27928942E0F045F5B33B7843EDCABBDEC7 -c iPhone5,2_8.3_12F70_Restore.ipsw

Try adding sudo, it should look like this:
Mohameds-MacBook-Pro:Library-iPhone mohamedhamada$ sudo idevicerestore -u --6DB4AE27928942E0F045F5B33B7843EDCABBDEC7 -c iPhone5,2_8.3_12F70_Restore.ipsw

Then, it will ask for user's password. You wrote it, and it should work.

from idevicerestore.

mohamedhamada avatar mohamedhamada commented on September 13, 2024

@rodrigodiaz not worked with me
Mohameds-MacBook-Pro:Library-iPhone mohamedhamada$ sudo idevicerestore -u --6DB4AE27928942E0F045F5B33B7843EDCABBDEC7 -c iPhone5,2_8.3_12F70_Restore.ipsw
NOTE: using cached version data
Found device in Normal mode
Identified device as iPhone5,2
Extracting Restore.plist from IPSW
Product Version: 8.3
Product Build: 12F70 Major: 12
Device supports Image4: false
Custom firmware requested. Disabled TSS request.
Variant: Customer Upgrade Install (IPSW)
This restore will update your device without losing data.
Using cached filesystem from 'iPhone5,2_8.3_12F70_Restore/058-14626-073.dmg'
Entering recovery mode...
ERROR: Unable to place device in recovery mode
ERROR: Unable to place device into recovery mode from Normal mode

from idevicerestore.

mohamedhamada avatar mohamedhamada commented on September 13, 2024

@rodrigodiaz Thanks for your replay. I hope to find a solution to my problem.

from idevicerestore.

aburgh avatar aburgh commented on September 13, 2024

Hi @mohamedhamada,

A few things:

  • Your problem is unrelated to this issue, so please open a new issue.
  • When quoting commands and their output, please use Markdown code fencing to preserve all the characters and formatting verbatim. Three back-ticks, "```", on a line before and after the quoted text will do it. See https://guides.github.com/features/mastering-markdown/. Also, when composing a comment or message, the Preview tab allows you to verify your formatting before you submit it.
  • In the command below, there should not be two dashes before the target ID:
Mohameds-MacBook-Pro:Library-iPhone mohamedhamada$ idevicerestore -u --6DB4AE27928942E0F045F5B33B7843EDCABBDEC7 -c iPhone5,2_8.3_12F70_Restore.ipsw

Try this instead:

$ idevicerestore -u 6DB4AE27928942E0F045F5B33B7843EDCABBDEC7 -c iPhone5,2_8.3_12F70_Restore.ipsw

If that doesn't work, I think that the device has to be paired in order to enter recovery mode. Try these commands and report the results:

$ idevicepair -u 6DB4AE27928942E0F045F5B33B7843EDCABBDEC7 validate
$ ideviceenterrecovery -u 6DB4AE27928942E0F045F5B33B7843EDCABBDEC7

One last thought: you will not be able to restore an iOS 8.3 IPSW because Apple is no longer signing that version. Try downloading and restoring the 8.4 IPSW.

from idevicerestore.

mohamedhamada avatar mohamedhamada commented on September 13, 2024

Hi @aburgh,

Thanks for your reply and I am sorry for not styling my answer.

I used your command but it doesn't work for me and when using these commands:

$ idevicepair -u 6DB4AE27928942E0F045F5B33B7843EDCABBDEC7 validate
$ ideviceenterrecovery -u 6DB4AE27928942E0F045F5B33B7843EDCABBDEC7

That is the result:

Mohameds-MacBook-Pro:Library-iPhone mohamedhamada$ idevicepair -u 6DB4AE27928942E0F045F5B33B7843EDCABBDEC7 validate
No device found with udid (null), is it plugged in?

Can you help me with Team Viewer?

I know that is Apple is no longer signing that version, this custom IPSW (renamed Setup.app) to iCloud bypass.

from idevicerestore.

animus31 avatar animus31 commented on September 13, 2024

Please I am blocked , I am not able to restore my Ipod

ERROR: Unable to connect to recovery device
ERROR: Unable to place device into recovery mode from DFU mode

What can I do ?

Thanks

Log .
C:\Users\LARBI\Desktop\libi>idevicerestore.exe -u --udid iPod5,1_8.4.1_12H321_Restore.ipsw
NOTE: using cached version data
Found device in DFU mode
Identified device as iPod5,1
Extracting BuildManifest from IPSW
Product Version: 8.4.1
Product Build: 12H321 Major: 12
Device supports Image4: false
Variant: Customer Upgrade Install (IPSW)
This restore will update your device without losing data.
Found ECID 2354078594378
Getting ApNonce in dfu mode... b7 0e b7 36 e0 3a 48 7d
Trying to fetch new SHSH blob
Getting SepNonce in dfu mode...
WARNING: Unable to find BbChipID node
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
Using cached filesystem from 'iPod5,1_8.4.1_12H321_Restore/058-24051-023.dmg'
Extracting iBSS.n78.RELEASE.dfu...
Personalizing IMG3 component iBSS...
reconstructed size: 80410
Sending iBSS (80410 bytes)...
Nonce: be 5f 6a 27 47 79 e6 dc c0 15 9b 80 3f 23 e4 41 23 aa 72 49
Trying to fetch new SHSH blob
Getting SepNonce in dfu mode...
WARNING: Unable to find BbChipID node
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
Extracting iBEC.n78.RELEASE.dfu...
Not personalizing component iBEC...
Sending iBEC (283020 bytes)...
ERROR: Unable to connect to recovery device
ERROR: Unable to place device into recovery mode from DFU mode

from idevicerestore.

FunkyM avatar FunkyM commented on September 13, 2024

Closing as too old and without feedback while getting too off-topic.
Please retry with latest git master head and create a new ticket if still an issue.

from idevicerestore.

riggou2016 avatar riggou2016 commented on September 13, 2024

Hi, how can i get firmware keys for ipod 5,1 ios 8.4.1 ?

from idevicerestore.

markcoker avatar markcoker commented on September 13, 2024

This clearly has nothing to do with idevicerestore nor with this issue. Please don't ask these questions here.

https://ipsw.me/keys - Any currently publicly available keys are here.

If you want to learn about firmware key visit: google.com... (but also these:)
https://www.theiphonewiki.com/wiki/Firmware_Keys (all information is here)
www.jailbreakqa.com - ask questions here...
https://www.theiphonewiki.com - Best source for information about idevices and related topics.

from idevicerestore.

MotikDev avatar MotikDev commented on September 13, 2024

C:\Libi>idevicepair -u 3b2c37fabb60493bdd0338d75240f36e18704275 validate
SUCCESS: Validated pairing with device 3b2c37fabb60493bdd0338d75240f36e18704275

C:\Libi>idevicerestore -u 3b2c37fabb60493bdd0338d75240f36e18704275 -c iPhone6,2_7.0.2_11A501_Restore.ipsw
NOTE: using cached version data
Found device in Normal mode
Identified device as iPhone6,2
Extracting Restore.plist from IPSW
Product Version: 7.0.2
Product Build: 11A501 Major: 11
Device supports Image4: true
Custom firmware requested. Disabled TSS request.
Variant: Customer Upgrade Install (IPSW)
This restore will update your device without losing data.
Extracting filesystem from IPSW
Entering recovery mode...
INFO: device serial number is DNPN58N5FFG9
Extracting iBEC.n53ap.RELEASE.dfu...
ERROR: zip_name_locate: Firmware/dfu/iBEC.n53ap.RELEASE.dfu
ERROR: Unable to extract iBEC.n53ap.RELEASE.dfu from iPhone6,2_7.0.2_11A501_Restore.ipsw
ERROR: Unable to extract component: iBEC
ERROR: Unable to send iBEC to device.
ERROR: Unable to send iBEC

Please is it possible to use the command -c for undecrypted ipsw (rootfs). This error also occurred when I used the ios version 9.2.1 (latest)

from idevicerestore.

nikias avatar nikias commented on September 13, 2024

-c is for custom firmwares. These only work on devices with a bootrom/iboot exploit. You can't use it for newer devices anyway (> iPhone 4). The output you have shows that you might have used an older libzip in case the ipsw file is not corrupted. Compile the latest libzip to be sure it can handle files >= 2GB.

from idevicerestore.

THOMASCameroun avatar THOMASCameroun commented on September 13, 2024

i have almost same issue with iphone 5,2 ios 9.2.1 windows 7 64bits
i'm new in ubuntu so i cannot use it yet..

C:\libi>idevicerestore -u 25C36895808E3F306C3F6B3900B13510B1252501 iPhone5,2_9.
2.1_13D15_Restore.ipsw
NOTE: using cached version data
Found device in Recovery mode
Identified device as iPhone5,2
Extracting BuildManifest from IPSW
Product Version: 9.2.1
Product Build: 13D15 Major: 13
INFO: device serial number is C39JN624F39C
Device supports Image4: false
Variant: Customer Upgrade Install (IPSW)
This restore will update your device without losing data.
Found ECID 2307271287625
Getting ApNonce in recovery mode... a8 4b ed 34 d2 1b 4b 0f b2 9c 86 6d 19 b2 4a
44 c4 47 64 87
Trying to fetch new SHSH blob
Getting SepNonce in recovery mode...
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
Using cached filesystem from 'iPhone5,2_9.2.1_13D15_Restore/058-32162-015.dmg'
Sending APTicket (2735 bytes)
Extracting iBEC.n42.RELEASE.dfu...
Not personalizing component iBEC...
Sending iBEC (286720 bytes)...
Extracting iBEC.n42.RELEASE.dfu...
Not personalizing component iBEC...
Sending iBEC (286720 bytes)...
Getting ApNonce in recovery mode... a8 4b ed 34 d2 1b 4b 0f b2 9c 86 6d 19 b2 4a
44 c4 47 64 87
Sending APTicket (2735 bytes)
Recovery Mode Environment:
iBoot build-version=iBoot-2817.20.26
iBoot build-style=RELEASE
Sending AppleLogo...
Extracting applelogo@2x~iphone.s5l8950x.img3...
Not personalizing component AppleLogo...
Sending AppleLogo (6796 bytes)...
Extracting 058-32173-015.dmg...
Not personalizing component RestoreRamDisk...
Sending RestoreRamDisk (21209356 bytes)...
Extracting DeviceTree.n42ap.img3...
Not personalizing component RestoreDeviceTree...
Sending RestoreDeviceTree (89100 bytes)...
Extracting kernelcache.release.n42...
Not personalizing component RestoreKernelCache...
Sending RestoreKernelCache (10680780 bytes)...
About to restore device...
Waiting for device...
ERROR: Unable to connect to device in restore mode
ERROR: Unable to open device in restore mode
ERROR: Unable to restore device

Please any help......
i'm new in ubuntu so i cannot use it yet...

from idevicerestore.

THOMASCameroun avatar THOMASCameroun commented on September 13, 2024

if someone can give me the process to do it in linux... i'm on linux mint 17.xxx

from idevicerestore.

MotikDev avatar MotikDev commented on September 13, 2024

please this "Device supports Image4: false" mine is always true. What does
it mean?

On Sun, Feb 28, 2016 at 5:55 PM, THOMAS [email protected] wrote:

if someone can give me the process to do it in linux...


Reply to this email directly or view it on GitHub
#4 (comment)
.

from idevicerestore.

iCreamFX avatar iCreamFX commented on September 13, 2024

Hi, I need help as well. I don't know how to update it: I installed the files and put it in the libi folder but all the files are folders not ".exe" . And just in case if you can help me it says:

C:\libi>idevicerestore.exe -u --DX3HLKB1DP0N -c iPhone3,2_7.1.2_11D257_Restore.i
psw
NOTE: using cached version data
Found device in Normal mode
Identified device as iPhone3,1
Extracting Restore.plist from IPSW
Product Version: 7.1.2
Product Build: 11D257 Major: 11
Device supports Image4: false
Custom firmware requested. Disabled TSS request.
Variant: Customer Upgrade Install (IPSW)
This restore will update your device without losing data.
Extracting filesystem from IPSW
Entering recovery mode...
INFO: device serial number is DX3HLKB1DP0N
Extracting iBEC.n90ap.RELEASE.dfu...
Not personalizing component iBEC...
Sending iBEC (283020 bytes)...
Getting ApNonce in recovery mode... 54 a8 54 31 58 f8 1e ce 88 52 e3 a5 83 49 32
5b 51 45 3c 05
Recovery Mode Environment:
iBoot build-version=iBoot-1940.10.58
iBoot build-style=RELEASE
Sending AppleLogo...
Extracting applelogo@2x~iphone.s5l8930x.img3...
Not personalizing component AppleLogo...
Sending AppleLogo (6796 bytes)...
Extracting 058-4266-010.dmg...
Not personalizing component RestoreRamDisk...
Sending RestoreRamDisk (9584908 bytes)...
Extracting DeviceTree.n90ap.img3...
Not personalizing component RestoreDeviceTree...
Sending RestoreDeviceTree (74764 bytes)...
Extracting kernelcache.release.n90...
Not personalizing component RestoreKernelCache...
Sending RestoreKernelCache (8115660 bytes)...
About to restore device...
Waiting for device...
ERROR: Unable to connect to device in restore mode
ERROR: Unable to open device in restore mode
ERROR: Unable to restore device

from idevicerestore.

yogendra123456 avatar yogendra123456 commented on September 13, 2024

Hi All,

i use libmobile device library to restore the device using idevicerestore but i got the error here...
device is not entering normal mode to recovery mode....
i don't getting the solution , while iTunes update the deivce firmwhere.


debug("DEBUG: Waiting for device to connect in recovery mode...\n");
cond_wait_timeout(&client->device_event_cond, &client->device_event_mutex, 60000);
cond_wait_timeout(&client->device_event_cond, &client->device_event_mutex, 60000);//add by yogendra 18-5-2020
if (client->mode != &idevicerestore_modes[MODE_RECOVERY] || (client->flags & FLAG_QUIT)) {
mutex_unlock(&client->device_event_mutex);
error("ERROR: Failed to enter recovery mode\n");
return -1;
}


Thanks in advanced..

from idevicerestore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.