libimobiledevice / idevicerestore

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

unable to restore iPhone 5S #303

Open Hiepars opened 4 years ago

Hiepars commented 4 years ago

i was running idevicerestore tool on Ubuntu 16.04 to reflash my iPhone 5S (Recovery mode)

then got the error:

$ idevicerestore -l

_irecv_handle_device_add: ERROR: can't connect to device: LIBUSB_ERROR_ACCESS
ERROR: Unable to discover device mode. Please make sure a device is attached.

the source code is up to date.

Could you please help me to fix it? Thank you so much.

michaelortmann commented 4 years ago

Same here, stuck in recovery mode.

I got to recovery mode from normal mode (everything working fine) when i did idevicerestore --latest that didn't finish. Since then the device is in recovery mode, can't be rebooted into normal mode (hard reset will show the apple logo first but soon the recovery screen again) and replugging doesn't help either.

It's an iPhone SE (1st gen).

Versions used:

idevicerestore 1.0.0
libimobiledevice 1.3.0
libirecovery 1.0.0
libusb 1.0.23
libusbmuxd 2.0.2
usbmuxd 1.1.1
linux kernel 5.8.3

Sorry, the log of idevicerestore --latest is lost, but it shows some progress, some percentage counting up (i guess i saw the 100% and the error was later) and then it suddenly broke and didnt finish.

dmesg shows:

$ dmesg
[...]
[1171364.146203] usb 1-4: new high-speed USB device number 18 using xhci_hcd
[1171364.387756] usb 1-4: New USB device found, idVendor=05ac, idProduct=1281, bcdDevice= 0.00
[1171364.387759] usb 1-4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[1171364.387760] usb 1-4: Product: Apple Mobile Device (Recovery Mode)
[1171364.387761] usb 1-4: Manufacturer: Apple Inc.
[1171364.387762] usb 1-4: SerialNumber: SDOM:01 CPID:8003 CPRV:01 CPFM:03 SCEP:01 BDID:02 ECID:******** IBFL:1D SRNM:[********]

The stars (********) are replacements for potentially sensible data by me

$ idevicerestore --erase --latest -d
_irecv_handle_device_add: ERROR: can't connect to device: LIBUSB_ERROR_ACCESS
ERROR: Unable to discover device mode. Please make sure a device is attached.

macOS in a VM couldn't fix it, looks like there is a problem with usb passthrough, but luckily itunes was able to fix this phone.