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

S8plus: abnormal reap: urb status -2 #435

Open cheako opened 7 years ago

cheako commented 7 years ago

Here is a full transcript...

root@agartha:~# dmesg 
[260851.823996] usb 8-2: new high-speed USB device number 16 using xhci_hcd
[260852.024834] usb 8-2: New USB device found, idVendor=04e8, idProduct=685d
[260852.024839] usb 8-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[260852.024841] usb 8-2: Product: MSM8998
[260852.024843] usb 8-2: Manufacturer: Samsung
root@agartha:~# exit
logout
cheako@agartha:~/s8plus/p1$ heimdall print-pit --no-reboot --usb-log-level debugHeimdall v1.4.0

Copyright (c) 2010-2013, 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.006537] [00003bd2] libusb: debug [libusb_get_device_list] 
[ 0.006580] [00003bd2] libusb: debug [discovered_devs_append] need to increase capacity
[ 0.006594] [00003bd2] libusb: debug [libusb_get_device_descriptor] 
[ 0.006606] [00003bd2] libusb: debug [libusb_open] open 8.16
[ 0.006645] [00003bd2] libusb: debug [usbi_add_pollfd] add fd 9 events 4
[ 0.006665] [00003bd2] libusb: debug [libusb_get_device_descriptor] 
[ 0.006674] [00003bd2] libusb: debug [libusb_get_config_descriptor] index 0
Claiming interface...
[ 0.006699] [00003bd2] libusb: debug [libusb_claim_interface] interface 1
Setting up interface...
[ 0.006739] [00003bd2] libusb: debug [libusb_set_interface_alt_setting] interface 1 altsetting 0

Initialising protocol...
[ 0.009098] [00003bd2] libusb: debug [libusb_alloc_transfer] transfer 0xfd3270
[ 0.009111] [00003bd2] libusb: debug [libusb_submit_transfer] transfer 0xfd3270
[ 0.009118] [00003bd2] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 0.009145] [00003bd2] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.009152] [00003bd2] libusb: debug [handle_events] poll fds modified, reallocating
[ 0.009161] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 0.009245] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 0.009277] [00003bd2] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=0
[ 0.009289] [00003bd2] libusb: debug [handle_control_completion] handling completion status 0
[ 0.009300] [00003bd2] libusb: debug [disarm_timerfd] 
[ 0.009310] [00003bd2] libusb: debug [usbi_handle_transfer_completion] transfer 0xfd3270 has callback 0x7f47608ddff0
[ 0.009320] [00003bd2] libusb: debug [sync_transfer_cb] actual_length=0
[ 0.009345] [00003bd2] libusb: debug [libusb_free_transfer] transfer 0xfd3270
[ 0.009360] [00003bd2] libusb: debug [libusb_alloc_transfer] transfer 0xfd3270
[ 0.009369] [00003bd2] libusb: debug [libusb_submit_transfer] transfer 0xfd3270
[ 0.009378] [00003bd2] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 0.009404] [00003bd2] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.009415] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 1.009473] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 1.009511] [00003bd2] libusb: debug [handle_events] timerfd triggered
[ 1.009521] [00003bd2] libusb: debug [libusb_cancel_transfer] transfer 0xfd3270
[ 1.009969] [00003bd2] libusb: debug [disarm_timerfd] 
[ 1.009988] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 0ms
[ 1.010002] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 1.010021] [00003bd2] libusb: debug [reap_for_handle] urb type=2 status=-2 transferred=0
[ 1.010040] [00003bd2] libusb: debug [handle_control_completion] handling completion status -2
[ 1.010050] [00003bd2] libusb: debug [usbi_handle_transfer_cancellation] detected timeout cancellation
[ 1.010059] [00003bd2] libusb: debug [disarm_timerfd] 
[ 1.010067] [00003bd2] libusb: debug [usbi_handle_transfer_completion] transfer 0xfd3270 has callback 0x7f47608ddff0
[ 1.010074] [00003bd2] libusb: debug [sync_transfer_cb] actual_length=0
[ 1.010084] [00003bd2] libusb: debug [libusb_free_transfer] transfer 0xfd3270
[ 1.010096] [00003bd2] libusb: debug [libusb_alloc_transfer] transfer 0xfd3270
[ 1.010104] [00003bd2] libusb: debug [libusb_submit_transfer] transfer 0xfd3270
[ 1.010111] [00003bd2] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 1.010132] [00003bd2] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 1.010140] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 2.010206] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 2.010238] [00003bd2] libusb: debug [handle_events] timerfd triggered
[ 2.010245] [00003bd2] libusb: debug [libusb_cancel_transfer] transfer 0xfd3270
[ 2.010728] [00003bd2] libusb: debug [disarm_timerfd] 
[ 2.010766] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 0ms
[ 2.010776] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 2.010800] [00003bd2] libusb: debug [reap_for_handle] urb type=2 status=-2 transferred=0
[ 2.010817] [00003bd2] libusb: debug [handle_control_completion] handling completion status -2
[ 2.010826] [00003bd2] libusb: debug [usbi_handle_transfer_cancellation] detected timeout cancellation
[ 2.010833] [00003bd2] libusb: debug [disarm_timerfd] 
[ 2.010839] [00003bd2] libusb: debug [usbi_handle_transfer_completion] transfer 0xfd3270 has callback 0x7f47608ddff0
[ 2.010847] [00003bd2] libusb: debug [sync_transfer_cb] actual_length=0
[ 2.010856] [00003bd2] libusb: debug [libusb_free_transfer] transfer 0xfd3270
[ 2.010869] [00003bd2] libusb: debug [libusb_alloc_transfer] transfer 0xfd3270
[ 2.010877] [00003bd2] libusb: debug [libusb_submit_transfer] transfer 0xfd3270
[ 2.010886] [00003bd2] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 2.010909] [00003bd2] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 2.010919] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 3.010977] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 3.011018] [00003bd2] libusb: debug [handle_events] timerfd triggered
[ 3.011025] [00003bd2] libusb: debug [libusb_cancel_transfer] transfer 0xfd3270
[ 3.011490] [00003bd2] libusb: debug [disarm_timerfd] 
[ 3.011534] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 0ms
[ 3.011544] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 3.011555] [00003bd2] libusb: debug [reap_for_handle] urb type=2 status=-2 transferred=0
[ 3.011561] [00003bd2] libusb: debug [handle_control_completion] handling completion status -2
[ 3.011567] [00003bd2] libusb: debug [usbi_handle_transfer_cancellation] detected timeout cancellation
[ 3.011571] [00003bd2] libusb: debug [disarm_timerfd] 
[ 3.011576] [00003bd2] libusb: debug [usbi_handle_transfer_completion] transfer 0xfd3270 has callback 0x7f47608ddff0
[ 3.011581] [00003bd2] libusb: debug [sync_transfer_cb] actual_length=0
[ 3.011594] [00003bd2] libusb: debug [libusb_free_transfer] transfer 0xfd3270
[ 3.011607] [00003bd2] libusb: debug [libusb_alloc_transfer] transfer 0xfd3270
[ 3.011615] [00003bd2] libusb: debug [libusb_submit_transfer] transfer 0xfd3270
[ 3.011625] [00003bd2] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 3.011650] [00003bd2] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 3.011659] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 4.011724] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 4.011762] [00003bd2] libusb: debug [handle_events] timerfd triggered
[ 4.011769] [00003bd2] libusb: debug [libusb_cancel_transfer] transfer 0xfd3270
[ 4.012226] [00003bd2] libusb: debug [disarm_timerfd] 
[ 4.012259] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 0ms
[ 4.012268] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 4.012277] [00003bd2] libusb: debug [reap_for_handle] urb type=2 status=-2 transferred=0
[ 4.012283] [00003bd2] libusb: debug [handle_control_completion] handling completion status -2
[ 4.012289] [00003bd2] libusb: debug [usbi_handle_transfer_cancellation] detected timeout cancellation
[ 4.012294] [00003bd2] libusb: debug [disarm_timerfd] 
[ 4.012298] [00003bd2] libusb: debug [usbi_handle_transfer_completion] transfer 0xfd3270 has callback 0x7f47608ddff0
[ 4.012303] [00003bd2] libusb: debug [sync_transfer_cb] actual_length=0
[ 4.012324] [00003bd2] libusb: debug [libusb_free_transfer] transfer 0xfd3270
[ 4.012338] [00003bd2] libusb: debug [libusb_alloc_transfer] transfer 0xfd3270
[ 4.012350] [00003bd2] libusb: debug [libusb_submit_transfer] transfer 0xfd3270
[ 4.012360] [00003bd2] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 4.012394] [00003bd2] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 4.012402] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 4.012545] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 4.012554] [00003bd2] libusb: debug [reap_for_handle] urb type=2 status=-71 transferred=0
[ 4.012564] [00003bd2] libusb: debug [handle_control_completion] handling completion status -71
[ 4.012572] [00003bd2] libusb: debug [handle_control_completion] low-level bus error occurred
[ 4.012580] [00003bd2] libusb: debug [disarm_timerfd] 
[ 4.012587] [00003bd2] libusb: debug [usbi_handle_transfer_completion] transfer 0xfd3270 has callback 0x7f47608ddff0
[ 4.012594] [00003bd2] libusb: debug [sync_transfer_cb] actual_length=0
[ 4.012602] [00003bd2] libusb: debug [libusb_free_transfer] transfer 0xfd3270
[ 4.012613] [00003bd2] libusb: debug [libusb_alloc_transfer] transfer 0xfd3270
[ 4.012621] [00003bd2] libusb: debug [libusb_submit_transfer] transfer 0xfd3270
[ 4.012628] [00003bd2] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 4.012636] [00003bd2] libusb: debug [submit_bulk_transfer] need 1 urbs for new transfer with length 4
[ 4.012652] [00003bd2] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 4.012661] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 5.012733] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 5.012771] [00003bd2] libusb: debug [handle_events] timerfd triggered
[ 5.012778] [00003bd2] libusb: debug [libusb_cancel_transfer] transfer 0xfd3270
[ 5.013270] [00003bd2] libusb: debug [disarm_timerfd] 
[ 5.013311] [00003bd2] libusb: debug [handle_events] poll() 3 fds with timeout in 0ms
[ 5.013321] [00003bd2] libusb: debug [handle_events] poll() returned 1
[ 5.013332] [00003bd2] libusb: debug [reap_for_handle] urb type=3 status=-2 transferred=0
[ 5.013337] [00003bd2] libusb: debug [handle_bulk_completion] handling completion status -2 of bulk urb 1/1
[ 5.013343] [00003bd2] libusb: debug [handle_bulk_completion] abnormal reap: urb status -2
[ 5.013348] [00003bd2] libusb: debug [handle_bulk_completion] abnormal reap: last URB handled, reporting
[ 5.013353] [00003bd2] libusb: debug [usbi_handle_transfer_cancellation] detected timeout cancellation
[ 5.013358] [00003bd2] libusb: debug [disarm_timerfd] 
[ 5.013369] [00003bd2] libusb: debug [usbi_handle_transfer_completion] transfer 0xfd3270 has callback 0x7f47608ddff0
[ 5.013393] [00003bd2] libusb: debug [sync_transfer_cb] actual_length=0
[ 5.013406] [00003bd2] libusb: debug [libusb_free_transfer] transfer 0xfd3270
ERROR: Failed to send data!Releasing device interface...
[ 5.013455] [00003bd2] libusb: debug [libusb_release_interface] interface 1

[ 5.013492] [00003bd2] libusb: debug [libusb_close] 
[ 5.013505] [00003bd2] libusb: debug [usbi_remove_pollfd] remove fd 9
[ 5.013525] [00003bd2] libusb: debug [libusb_exit] 
[ 5.013532] [00003bd2] libusb: debug [libusb_exit] destroying default context
cheako@agartha:~/s8plus/p1$ su -
Password: 
root@agartha:~# dmesg 
[260851.823996] usb 8-2: new high-speed USB device number 16 using xhci_hcd
[260852.024834] usb 8-2: New USB device found, idVendor=04e8, idProduct=685d
[260852.024839] usb 8-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[260852.024841] usb 8-2: Product: MSM8998
[260852.024843] usb 8-2: Manufacturer: Samsung
root@agartha:~# heimdall print-pit --no-reboot
Heimdall v1.4.0

Copyright (c) 2010-2013, 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...
Claiming interface...
Setting up interface...
libusb: error [op_set_interface] setintf failed error -1 errno 71
ERROR: Setting up interface failed!
Releasing device interface...

root@agartha:~#