libimobiledevice / libirecovery

Library and utility to talk to iBoot/iBSS via USB on Mac OS X, Windows, and Linux
https://libimobiledevice.org
GNU Lesser General Public License v2.1
550 stars 207 forks source link

Failed to set interface, error -8 #125

Closed mast3rz3ro closed 9 months ago

mast3rz3ro commented 9 months ago

Hi,

I have successfully compiled the libirecovery with mingw64 on Msys2 by cloning it with git

Now when i try to use it i got this output:

# irecovery -q -v
Attempting to connect... 
Setting to interface 0:0
Failed to set interface, error -8
Attempting to connect... 
Setting to interface 0:0
Failed to set interface, error -8
Attempting to connect... 
Setting to interface 0:0
Failed to set interface, error -8
Attempting to connect... 
Setting to interface 0:0
Failed to set interface, error -8
Attempting to connect... 
Setting to interface 0:0
Failed to set interface, error -8
Attempting to connect... 
Setting to interface 0:0
Failed to set interface, error -8
ERROR: Unable to set device interface
# irecovery -V
irecovery 1.1.0-9-g479b1b1
nikias commented 9 months ago

What device and in which mode?

mast3rz3ro commented 9 months ago

I have tested this on iPhone 11, and iPhone 7 Plus in recovery mode

using the L1ghtmann release kinda presents same error but it's works.

nikias commented 9 months ago

I just pushed another commit, maybe that will solve the issue.

mast3rz3ro commented 9 months ago

Awesome! Your commit has fixed the error completely!

Now the output are like this:

irecovery -q -v
Attempting to connect...
Setting to interface 0:0
Connected to iPhone12,1, model n104ap, cpid 0x8030, bdid 0x04
CPID: 0x8030
CPRV: 0x11
BDID: 0x04
ECID: 0x000408c11afb802e
CPFM: 0x03
SCEP: 0x01
IBFL: 0x3d
SRTG: N/A
SRNM: F4G*******
IMEI: N/A
NONC: f500fdf3e7eab20922637951e2948453ecd1dbb7163ec5acd4333c236ba4066c
SNON: f0ed745594736e36ea86406d0c54082981db29c9
MODE: Recovery
PRODUCT: iPhone12,1
MODEL: n104ap
NAME: iPhone 11

The L1ghtman release was returning this output:

irecovery -q -v
Attempting to connect...
Setting to interface 0:0
WARNING: set interface failed, error -8
Connected to iPhone12,1, model n104ap, cpid 0x8030, bdid 0x04
CPID: 0x8030
CPRV: 0x11
BDID: 0x04
ECID: 0x000408c11afb802e
CPFM: 0x03
SCEP: 0x01
IBFL: 0x3d
SRTG: N/A
SRNM: F4G*******
IMEI: N/A
NONC: f500fdf3e7eab20922637951e2948453ecd1dbb7163ec5acd4333c236ba4066c
SNON: f0ed745594736e36ea86406d0c54082981db29c9
MODE: Recovery
PRODUCT: iPhone12,1
MODEL: n104ap
NAME: iPhone 11

Thank you for your efforts :-)

nikias commented 9 months ago

Awesome, thanks for confirming.