Benjamin-Dobell / Heimdall

Heimdall is a cross-platform open-source tool suite used to flash firmware (aka ROMs) onto Samsung Galaxy devices.
MIT License
2.62k stars 587 forks source link

ERROR: Setting up interface failed! (errno 110) #429

Open ghost opened 7 years ago

ghost commented 7 years ago

Sorry, you've probably seen this error a million times. I am struggling to get around the "ERROR: Setting up interface failed!" error (errno 110). I made sure udev is setup correctly, I cloned and built heimdall from this repo and other forked repos, I tried this on multiple Ubuntu 16.04 machines, I tried multiple USB ports and cables, I even held a ceremony and offered a sacrifice to the Gods, but after all that, I am still getting this error. Is there anything else I can do before I throw my hands up? Is there a troubleshooting guide specifically for this error?

prowe@prowe-Precision-Tower-5810:~$ sudo heimdall print-pit --no-reboot --usb-log-level debug
Heimdall v1.4.1

Copyright (c) 2010-2014 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.002501] [00006069] libusb: debug [libusb_get_device_list] 
[ 0.002515] [00006069] libusb: debug [discovered_devs_append] need to increase capacity
[ 0.002519] [00006069] libusb: debug [libusb_get_device_descriptor] 
[ 0.002523] [00006069] libusb: debug [libusb_open] open 2.15
[ 0.002539] [00006069] libusb: debug [usbi_add_pollfd] add fd 9 events 4
[ 0.002541] [00006069] libusb: debug [libusb_get_device_descriptor] 
[ 0.002544] [00006069] libusb: debug [libusb_get_config_descriptor] index 0
Claiming interface...
[ 0.002552] [00006069] libusb: debug [libusb_claim_interface] interface 1
Setting up interface...
[ 0.002564] [00006069] libusb: debug [libusb_set_interface_alt_setting] interface 1 altsetting 0
[ 0.002583] [0000606d] libusb: debug [linux_udev_event_thread_main] udev event thread entering.
[ 5.001465] [00006069] libusb: error [op_set_interface] setintf failed error -1 errno 110
ERROR: Setting up interface failed!
Releasing device interface...
[ 5.001494] [00006069] libusb: debug [libusb_release_interface] interface 1

[ 5.001509] [00006069] libusb: debug [libusb_close] 
[ 5.001513] [00006069] libusb: debug [usbi_remove_pollfd] remove fd 9
[ 5.001524] [00006069] libusb: debug [libusb_exit] 
[ 5.001526] [00006069] libusb: debug [libusb_exit] destroying default context

dmesg:

[107805.656096] usb 2-1.8: new high-speed USB device number 15 using ehci-pci
[107805.792036] usb 2-1.8: New USB device found, idVendor=04e8, idProduct=685d
[107805.792042] usb 2-1.8: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[107805.792045] usb 2-1.8: Product: Mobile USB Modem 1.0
[107805.792048] usb 2-1.8: Manufacturer: Samsung Electronics
[107805.792050] usb 2-1.8: SerialNumber: 00000000000000/0

lsusb:

Bus 002 Device 015: ID 04e8:685d Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II] (Download mode)
Bus 002 Device 002: ID 8087:8002 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 020: ID 047f:c037 Plantronics, Inc. 
Bus 001 Device 019: ID 046d:082d Logitech, Inc. HD Pro Webcam C920
Bus 001 Device 004: ID 04b4:0823 Cypress Semiconductor Corp. 
Bus 001 Device 003: ID 0461:4d15 Primax Electronics, Ltd Dell Optical Mouse
Bus 001 Device 002: ID 8087:800a Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub