idevice upgrade issue

System log from the upgrade that produce — “idevice” could not be restored. An unknown error occurred (XXX)

 

ctually com.apple.mobile.restored). Move along, move along.
 Jul 19 07:23:20 shirish-laptop Xcode[465]: AMDeviceConnect failed: The device is in recovery mode. (-402653144)
 Jul 19 07:23:20 shirish-laptop iTunes[423]: tid:1816f - RestoreOS mode device connected
 Jul 19 07:23:20 shirish-laptop iTunes[423]: tid:19757 - unable to open device_map.txt: No such file or directory
 Jul 19 07:23:20 shirish-laptop iTunes[423]: tid:19757 - no value returned for BootArgs
 Jul 19 07:23:20 shirish-laptop iTunes[423]: tid:19757 - _copyDeviceProperty() failed for restore bootargs
 Jul 19 07:23:20 shirish-laptop iTunes[423]: tid:19757 - no value returned for MarketingPartNumber
 Jul 19 07:23:20 shirish-laptop iTunes[423]: tid:19757 - _copyDeviceProperty() failed for mpn
 Jul 19 07:23:20 shirish-laptop iTunes[423]: AMDeviceConnect (thread 0x11c5eb000): This is not the droid you're looking for (is actually com.apple.mobile.restored). Move along, move along.
 Jul 19 07:23:20 --- last message repeated 1 time ---
 Jul 19 07:23:20 shirish-laptop iTunes[423]: tid:12b03 - received kAMDeviceAttached action, device id 236FFEA7DC1B55DA (0x60000035c250), AFC error 0XE8000028
 Jul 19 07:23:20 shirish-laptop iTunes[423]: tid:12b03 - iTunes: Restore-mode device appeared, device 0x60000035c250
 Jul 19 07:23:20 shirish-laptop iTunes[423]: tid:12b03 - iTunes: Unexpected muxed device appeared in state 0
 Jul 19 07:23:22 shirish-laptop iTunes[423]: tid:19757 - dumping CFError returned by restored:
 Jul 19 07:23:22 shirish-laptop iTunes[423]: tid:19757 - CFError domain:AMRestoreErrorDomain code:40 description:storage device did not become available
 Jul 19 07:23:22 shirish-laptop iTunes[423]: tid:19757 -
 ==== device restore output ====
 )
 ApplePMGRTempSensor: Enable temp alarm
 pmu fault log: btn_rst
 AppleSamsungSerial: Identified Serial Port on ARM Device=uart4 at 0x20a0b0000(0x<<<<<MEID>>>>>00)
 ApplePinotLCD: _lcdPanelID: 0xa19713cf _lcdPanelClass: 2
 AppleARMBacklight::start: _minDACLevel=459 _maxDACLevel=1958
 AppleCS35L19Amp: could not allocate control 395
 BSD root: md0, major 3, minor 0
 com.apple.AppleFSCompressionTypeZlib kmod start
 AppleMultitouchN1SPI: successfully started
 com.apple.AppleFSCompressionTypeZlib load succeeded
 AssertMacros: nvmr->mr_mod1024 (value = 0x0), file: /SourceCache/Mesa/Mesa-167.24/AppleMesaSEPDriver/AppleMesaSEPDriver/AppleMesaSEPDriver.cpp, line: 2393
 L2TP domain init
 L2TP domain init complete
 PPTP domain init
 Found DPB Driver
 Dither pDeviceMemory->getLength()) = 0x8000
 Found Dither Driver
 virtual bool AppleDisplayPipe::start_hardware(IOService *), auto-detect chip
 Starting GPU driver built on: Jun 11 2014 20:14:59
 -----------------------
 Loading META FW...
 -----------------------
 AppleH6CamIn::start - back camera expected
 AppleH6CamIn::start - front camera expected
 AppleH6CamIn::power_off_hardware
 void AppleDisplayPipe::setupVideoDownscalingLimits(): minimum-frequency property not found, using getClockFrequency(0) instead.
 AppleH6CamIn::setPowerStateGated: 0
 AppleH6CamIn::start - About to register service
 --------------
 META is alive!
 --------------
 bool AppleMobileADBE0::startWithIBoot(): workaround for <rdar://problem/13466800>: disabling Dither BN
 AppleBaseband: The number of backpowering pins: 1
 AppleS5L8960XPerformanceController::start: Dynamic Framebuffer Caching is enabled
 AppleOscarGyro[0x<<<<<MEID>>>>>00]::handleStart: ERROR: calibration data 'gyro-sensitivity-calibration' is empty
 AppleOscarGyro[0x<<<<<MEID>>>>>00]::handleStart: ERROR: calibration data 'gyro-temp-table' is empty
 AppleOscarAccelerometer[0x<<<<<MEID>>>>>00]::handleStart: ERROR: calibration data 'low-temp-accel-offset' is empty
 AppleOscarGyro[0x<<<<<MEID>>>>>00]::handleStart: ERROR: calibration data 'gyro-interrupt-calibration' is empty
 AppleOscarGyro[0x<<<<<MEID>>>>>00]::handleStart: ERROR: calibration data 'gyro-orientation' is empty
 AppleOscarAccelerometer[0x<<<<<MEID>>>>>00]::handleStart: ERROR: calibration data 'accel-sensitivity-calibration' is empty
 AppleOscarAccelerometer[0x<<<<<MEID>>>>>00]::handleStart: ERROR: calibration data 'accel-orientation' is empty
 AppleOscarAccelerometer[0x<<<<<MEID>>>>>00]::handleStart: ERROR: calibration data 'accel-interrupt-calibration' is empty
 AppleOscarProcessor[0x<<<<<MEID>>>>>00]::setPowerStateGated: 61878345916: setting power state powerStateOrdinal=1
 AppleD2045PMUPowerSource: AppleUSBCableDetect 1
 AppleD2045PMUPowerSource: 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
 AppleMultitouchN1SPI: detected HBPP. driver will be kept alive
 display-scale = 2
 display-rotation = 0
 found applelogo at /usr/share/progressui/applelogo@2x.tga
 found display: primary
 display: 640 x 1136
 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 USBAudioStreaming
 IOAccessoryPortUSB::start
 AppleSynopsysOTGDevice::gated_registerFunction Register function USBAudioControl
 virtual bool AppleUSBDeviceMux::start(IOService *) build: Jun 11 2014 20:11:28
 init_waste
 AppleSynopsysOTGDevice::gated_registerFunction Register function AppleUSBMux
 AppleSynopsysOTGDevice::gated_registerFunction Register function IapOverUsbHid
 AppleSynopsysOTGDevice::gated_registerFunction Register function AppleUSBEthernet
 AppleUSBEthernetDevice::start: device-mac-address not found for device in the device-tree, generating a fake one
 AppleUSBEthernetDevice::start: host-mac-address not found for host in the device-tree, generating a fake one
 AppleSynopsysOTGDevice::gated_registerFunction Register function PTP
 AppleSynopsysOTGDevice::startUSBStack Starting usb stack
 IOReturn AppleUSBDeviceMux::setPropertiesGated(OSObject *) setting debug level to 7
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49152 62078<-usb->5632
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 recv(13, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49153 62078<-usb->5888
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>80 established 62078<-lo0->49154 62078<-usb->6144
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49155 62078<-usb->6400
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49156 62078<-usb->6656
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49157 62078<-usb->6912
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49158 62078<-usb->7168
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>80
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49159 62078<-usb->7424
 recv(14, 4) failed: connection closed
 recv(15, 4) failed: connection closed
 unable to read message size: -1
 unable to read message size: -1
 could not receive message
 could not receive message
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49160 62078<-usb->7680
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49161 62078<-usb->7936
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 recv(17, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 recv(18, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49162 62078<-usb->8192
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 recv(19, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 recv(16, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 recv(15, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49163 62078<-usb->8448
 recv(14, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 recv(17, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49164 62078<-usb->8704
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 recv(15, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49165 62078<-usb->8960
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 recv(15, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49166 62078<-usb->9216
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 recv(15, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49167 62078<-usb->9472
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 recv(15, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>80 established 62078<-lo0->49168 62078<-usb->9728
 unrecognized key 'BootArgs' in value query
 failed to handle value query for key 'BootArgs', sending back empty response
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>80
 recv(15, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>80 established 62078<-lo0->49169 62078<-usb->9984
 unrecognized key 'MarketingPartNumber' in value query
 failed to handle value query for key 'MarketingPartNumber', sending back empty response
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>80
 recv(15, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49170 62078<-usb->10240
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 recv(15, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 client protocol version 13
 *** UUID 3BF1F8C4-A6BA-4CA6-8408-C85B0E1C787D ***
 Restore options:
 MinimumSystemPartition => <CFNumber 0xb<<<<<IMEI>>>>>> [0x1004430c0]>{value = +2084, type = kCFNumberSInt64Type}
 UUID => <CFString 0x124e02ab0 [0x1004430c0]>{contents = "3BF1F8C4-A6BA-4CA6-8408-C85B0E1C787D"}
 SystemPartitionSize => <CFNumber 0xb<<<<<IMEI>>>>>> [0x1004430c0]>{value = +2084, type = kCFNumberSInt64Type}
 SystemPartitionPadding => <CFBasicHash 0x124e01f00 [0x1004430c0]>{type = mutable dict, count = 5,
 entries =>
 2 : <CFString 0x124e02d90 [0x1004430c0]>{contents = "128"} = <CFNumber 0xb<<<<<IMEI>>>>>> [0x1004430c0]>{value = +1280, type = kCFNumberSInt64Type}
 3 : <CFString 0x124e02a90 [0x1004430c0]>{contents = "16"} = <CFNumber 0x<<<<<MEID>>>>>03 [0x1004430c0]>{value = +160, type = kCFNumberSInt64Type}
 4 : <CFString 0x124e025f0 [0x1004430c0]>{contents = "32"} = <CFNumber 0xb<<<<<IMEI>>>>>> [0x1004430c0]>{value = +320, type = kCFNumberSInt64Type}
 5 : <CFString 0x124e01980 [0x1004430c0]>{contents = "8"} = <CFNumber 0xb<<<<<IMEI>>>>>> [0x1004430c0]>{value = +80, type = kCFNumberSInt64Type}
 8 : <CFString 0x124e02220 [0x1004430c0]>{contents = "64"} = <CFNumber 0xb<<<<<IMEI>>>>>> [0x1004430c0]>{value = +640, type = kCFNumberSInt64Type}
 }
entering load_sep_os
 device has sep - getting firmware
 entering copy_restore_sep
 AppleBCMWLANCore::init(): IO80211-46 Jun 11 2014 20:09:58
 000062.873925 wlan.A[0] AppleBCMWLANProvisioningManager::gatherDeviceTreeData(): WiFi 'local-mac-address' is invalid!
 000062.873967 wlan.A[1] AppleBCMWLANProvisioningManager::gatherDeviceTreeData(): Invalid 2.4GHz calibration data in device tree.
 000062.873998 wlan.A[2] AppleBCMWLANProvisioningManager::gatherDeviceTreeData(): Invalid 5GHz calibration data in device tree.
 000062.874029 wlan.A[3] AppleBCMWLANProvisioningManager::gatherDeviceTreeData(): Invalid RSSI Rx 2.4GHz calibration data in device tree.
 000062.874057 wlan.A[4] AppleBCMWLANProvisioningManager::gatherDeviceTreeData(): Invalid RSSI Rx 5GHz calibration data in device tree.
 000062.874087 wlan.A[5] AppleBCMWLANProvisioningManager::gatherDeviceTreeData(): Invalid Rx Calibration temperature in device tree.
 000062.874102 wlan.A[6] AppleBCMWLANProvisioningManager::validateData(): Error, unable to obtain MAC address, can't proceed any further
 000062.874117 wlan.C[7] AppleBCMWLANProvisioningManager::processProvisionedData(): Invalid provisioning data, general error
 000062.874130 wlan.A[8] AppleBCMWLANCore::start(): Failed to process provisioning data
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 AppleUSBDeviceMux::handleConnectResult new session 0x<<<<<MEID>>>>>00 established 62078<-lo0->49171 62078<-usb->10496
 recv(13, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 void AppleUSBDeviceMux::handleMuxTCPInput(mbuf_t) received reset, closing 0x<<<<<MEID>>>>>00
 recv(10, 4) failed: connection closed
 unable to read message size: -1
 could not receive message
 got sep firmware - making call to load it
 entering ramrod_load_sep_os
 entering ramrod_execute_command_with_input_data: /usr/libexec/seputil (0x102f18000 - 3994653)
 executing /usr/libexec/seputil
 waiting for child to exit
 child exited
 exit status: 0
 entering partition_nand_device
 No IOFlashController instance found
 entering wait_for_storage_device
 Searching for NAND service
 Found NAND service: ASPStorage
 NAND failed to initialize: NAND Invalid Die Count
==== end of device restore output ====
 Jul 19 07:23:22 shirish-laptop iTunes[423]: tid:19757 - <Restore Device 0x60000032eb00>: Restore failed (result = 40)
 Jul 19 07:23:22 shirish-laptop iTunes[423]: AMRestorePerformRestoreModeRestoreWithError failed with error: 40
 Jul 19 07:23:22 shirish-laptop iTunes[423]: tid:19757 - State Machine Dump, status:ERROR - [state:DFU remaining-cycles:0] -> [state:Recovery remaining-cycles:0] -> [state:RestoreOS remaining-cycles:0 (current state)]
 Jul 19 07:23:22 shirish-laptop iTunes[423]: tid:19757 - State is now set to error
 Jul 19 07:23:22 shirish-laptop iTunes[423]: tid:19757 - Can't stop watching device log we're not watching
 Jul 19 07:23:22 shirish-laptop iTunes[423]: tid:19757 - amai: AMAuthInstallPlatformRemoveDirectory: failed to remove directory: No such file or directory
 Jul 19 07:23:22 shirish-laptop iTunes[423]: tid:19757 - Failed to remove directory file://localhost/tmp/PersonalizedBundle_3BF1F8C4-A6BA-4CA6-8408-C85B0E1C787D
 Jul 19 07:23:22 shirish-laptop iTunes[423]: tid:1afbf - iTunes: Restore error 40
 Jul 19 07:24:01 shirish-laptop mdworker[463]: (Normal) Import: Spotlight giving up on importing file after 480.242 seconds, (0 seconds in Spotlight importer plugin, was sizing:0) - diagnostic:0 - find suspect file using: sudo mdutil -t 11413214
 Jul 19 07:24:01 shirish-laptop com.apple.launchd.peruser.89[332] (com.apple.mdworker.shared.04000000-0000-0000-0000-000000000000[463]): Exited with code: 75