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

SAMSUNG Galaxy Tab 8.4 SMT-320 protocol initialization failed #396

Open hexag1 opened 7 years ago

hexag1 commented 7 years ago

Trying to flash TWRP onto my Samsung Galaxy Tab 8.4 SMT-320

I keep getting "protocol initialization failed".

I also sometimes get

"Downloading device's PIT file... ERROR: Failed to send request to end PIT file transfer! ERROR: Failed to download PIT file!

etc

Here's my verbose / debug output. IDK what else to do.

@KTRON-PC Downloads]$ heimdall flash --RECOVERY twrp-3.1.0-0-mondrianwifiue.img --no-reboot --verbose --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]

[ 0.007568] [0000067f] libusb: debug [libusb_get_device_list] [ 0.007600] [0000067f] libusb: debug [discovered_devs_append] need to increase capacity [ 0.007680] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007688] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007692] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007695] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007699] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007705] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007710] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007748] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007753] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007756] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007760] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007764] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.007772] [0000067f] libusb: debug [libusb_open] open 1.65 [ 0.115550] [0000067f] libusb: debug [usbi_add_pollfd] add fd 10 events 4 [ 0.115594] [0000067f] libusb: debug [libusb_get_device_descriptor] [ 0.115617] [0000067f] libusb: debug [libusb_alloc_transfer] transfer 0x1503120 [ 0.115626] [0000067f] libusb: debug [libusb_submit_transfer] transfer 0x1503120 [ 0.115648] [0000067f] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line) [ 0.115691] [0000067f] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.115704] [0000067f] libusb: debug [handle_events] poll fds modified, reallocating [ 0.115725] [0000067f] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms [ 0.115787] [0000067f] libusb: debug [handle_events] poll() returned 1 [ 0.115805] [0000067f] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=4 [ 0.115815] [0000067f] libusb: debug [handle_control_completion] handling completion status 0 [ 0.115827] [0000067f] libusb: debug [disarm_timerfd] [ 0.115837] [0000067f] libusb: debug [usbi_handle_transfer_completion] transfer 0x1503120 has callback 0x7f6959665170 [ 0.115847] [0000067f] libusb: debug [sync_transfer_cb] actual_length=4 [ 0.115870] [0000067f] libusb: debug [libusb_free_transfer] transfer 0x1503120 [ 0.115886] [0000067f] libusb: debug [libusb_alloc_transfer] transfer 0x1503120 [ 0.115896] [0000067f] libusb: debug [libusb_submit_transfer] transfer 0x1503120 [ 0.115905] [0000067f] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line) [ 0.115922] [0000067f] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.115932] [0000067f] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms [ 0.116052] [0000067f] libusb: debug [handle_events] poll() returned 1 [ 0.116074] [0000067f] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=18 [ 0.116083] [0000067f] libusb: debug [handle_control_completion] handling completion status 0 [ 0.116090] [0000067f] libusb: debug [disarm_timerfd] [ 0.116098] [0000067f] libusb: debug [usbi_handle_transfer_completion] transfer 0x1503120 has callback 0x7f6959665170 [ 0.116105] [0000067f] libusb: debug [sync_transfer_cb] actual_length=18 [ 0.116128] [0000067f] libusb: debug [libusb_free_transfer] transfer 0x1503120 Manufacturer: "Sasmsung" [ 0.116155] [0000067f] libusb: debug [libusb_alloc_transfer] transfer 0x1503120 [ 0.116164] [0000067f] libusb: debug [libusb_submit_transfer] transfer 0x1503120 [ 0.116173] [0000067f] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line) [ 0.116190] [0000067f] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.116200] [0000067f] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms [ 0.116365] [0000067f] libusb: debug [handle_events] poll() returned 1 [ 0.116401] [0000067f] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=4 [ 0.116410] [0000067f] libusb: debug [handle_control_completion] handling completion status 0 [ 0.116418] [0000067f] libusb: debug [disarm_timerfd] [ 0.116427] [0000067f] libusb: debug [usbi_handle_transfer_completion] transfer 0x1503120 has callback 0x7f6959665170 [ 0.116436] [0000067f] libusb: debug [sync_transfer_cb] actual_length=4 [ 0.116468] [0000067f] libusb: debug [libusb_free_transfer] transfer 0x1503120 [ 0.116483] [0000067f] libusb: debug [libusb_alloc_transfer] transfer 0x1503120 [ 0.116493] [0000067f] libusb: debug [libusb_submit_transfer] transfer 0x1503120 [ 0.116501] [0000067f] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line) [ 0.116526] [0000067f] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.116536] [0000067f] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms [ 0.116663] [0000067f] libusb: debug [handle_events] poll() returned 1 [ 0.116684] [0000067f] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=16 [ 0.116692] [0000067f] libusb: debug [handle_control_completion] handling completion status 0 [ 0.116700] [0000067f] libusb: debug [disarm_timerfd] [ 0.116707] [0000067f] libusb: debug [usbi_handle_transfer_completion] transfer 0x1503120 has callback 0x7f6959665170 [ 0.116714] [0000067f] libusb: debug [sync_transfer_cb] actual_length=16 [ 0.116723] [0000067f] libusb: debug [libusb_free_transfer] transfer 0x1503120 Product: "MSM8960"

        length: 18
  device class: 2
           S/N: 0
       VID:PID: 04E8:685D
     bcdDevice: 0100

iMan:iProd:iSer: 1:2:0 nb confs: 1 [ 0.116810] [0000067f] libusb: debug [libusb_get_config_descriptor] index 0

interface[0].altsetting[0]: num endpoints = 1 Class.SubClass.Protocol: 02.02.01 endpoint[0].address: 82 max packet size: 0010 polling interval: 09

interface[1].altsetting[0]: num endpoints = 2 Class.SubClass.Protocol: 0A.00.00 endpoint[0].address: 81 max packet size: 0200 polling interval: 00 endpoint[1].address: 01 max packet size: 0200 polling interval: 00 Claiming interface... [ 0.116931] [0000067f] libusb: debug [libusb_claim_interface] interface 1 Setting up interface... [ 0.116975] [0000067f] libusb: debug [libusb_set_interface_alt_setting] interface 1 altsetting 0

Initialising protocol... [ 0.117288] [0000067f] libusb: debug [libusb_alloc_transfer] transfer 0x1503120 [ 0.117303] [0000067f] libusb: debug [libusb_submit_transfer] transfer 0x1503120 [ 0.117311] [0000067f] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line) [ 0.117342] [0000067f] libusb: debug [submit_bulk_transfer] need 1 urbs for new transfer with length 4 [ 0.117371] [0000067f] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.117393] [0000067f] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms [ 0.117408] [0000067f] libusb: debug [handle_events] poll() returned 1 [ 0.117420] [0000067f] libusb: debug [reap_for_handle] urb type=3 status=0 transferred=4 [ 0.117429] [0000067f] libusb: debug [handle_bulk_completion] handling completion status 0 of bulk urb 1/1 [ 0.117438] [0000067f] libusb: debug [handle_bulk_completion] last URB in transfer --> complete! [ 0.117448] [0000067f] libusb: debug [disarm_timerfd] [ 0.117457] [0000067f] libusb: debug [usbi_handle_transfer_completion] transfer 0x1503120 has callback 0x7f6959665170 [ 0.117467] [0000067f] libusb: debug [sync_transfer_cb] actual_length=4 [ 0.117479] [0000067f] libusb: debug [libusb_free_transfer] transfer 0x1503120 [ 0.117490] [0000067f] libusb: debug [libusb_alloc_transfer] transfer 0x1503120 [ 0.117498] [0000067f] libusb: debug [libusb_submit_transfer] transfer 0x1503120 [ 0.117506] [0000067f] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line) [ 0.117517] [0000067f] libusb: debug [submit_bulk_transfer] need 1 urbs for new transfer with length 7 [ 0.117532] [0000067f] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling [ 0.117541] [0000067f] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms [ 1.117592] [0000067f] libusb: debug [handle_events] poll() returned 1 [ 1.117625] [0000067f] libusb: debug [handle_events] timerfd triggered [ 1.117637] [0000067f] libusb: debug [libusb_cancel_transfer] transfer 0x1503120 [ 1.117733] [0000067f] libusb: debug [disarm_timerfd] [ 1.117749] [0000067f] libusb: debug [handle_events] poll() 3 fds with timeout in 0ms [ 1.117757] [0000067f] libusb: debug [handle_events] poll() returned 1 [ 1.117764] [0000067f] libusb: debug [reap_for_handle] urb type=3 status=-2 transferred=0 [ 1.117769] [0000067f] libusb: debug [handle_bulk_completion] handling completion status -2 of bulk urb 1/1 [ 1.117774] [0000067f] libusb: debug [handle_bulk_completion] abnormal reap: urb status -2 [ 1.117777] [0000067f] libusb: debug [handle_bulk_completion] abnormal reap: last URB handled, reporting [ 1.117781] [0000067f] libusb: debug [usbi_handle_transfer_cancellation] detected timeout cancellation [ 1.117785] [0000067f] libusb: debug [disarm_timerfd] [ 1.117788] [0000067f] libusb: debug [usbi_handle_transfer_completion] transfer 0x1503120 has callback 0x7f6959665170 [ 1.117793] [0000067f] libusb: debug [sync_transfer_cb] actual_length=0 [ 1.117809] [0000067f] libusb: debug [libusb_free_transfer] transfer 0x1503120 ERROR: Failed to receive handshake response. Result: -7 ERROR: Protocol initialisation failed!

Releasing device interface... [ 1.117866] [0000067f] libusb: debug [libusb_release_interface] interface 1

[ 1.117897] [0000067f] libusb: debug [libusb_close] [ 1.117909] [0000067f] libusb: debug [usbi_remove_pollfd] remove fd 10 [ 1.117925] [0000067f] libusb: debug [libusb_exit] [ 1.117930] [0000067f] libusb: debug [libusb_exit] destroying default context

hexag1 commented 7 years ago

Also this is on Manjaro Linux. But I have the same exact problems on Windows 10.

jmayday commented 7 years ago

I'm trying to update baseband on my i9506 (Galaxy S4 LTE-A) and I'm facing same issue. Actaully I didn't execute commands responsible for flashing modem, but if print-pit fails then I'm not sure if I'm safe to try flashing. I'm using Fedora 25.

[/s/a/I9506XXSDPL2_I9506XXUDOJ2_bootmodem]─(1)-> sudo heimdall detect
Device detected
[/s/a/I9506XXSDPL2_I9506XXUDOJ2_bootmodem]─> sudo heimdall print-pit
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...
Claiming interface...
Setting up interface...

Initialising protocol...
Protocol initialisation successful.

Beginning session...

Some devices may take up to 2 minutes to respond.
Please be patient!

Session begun.

Downloading device's PIT file...
ERROR: Failed to send request to end PIT file transfer!
ERROR: Failed to download PIT file!
Ending session...
ERROR: Failed to send end session packet!
Releasing device interface...
[/s/a/I9506XXSDPL2_I9506XXUDOJ2_bootmodem]─> sudo heimdall print-pit --verbose
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...
      Manufacturer: "Sasmsung"
           Product: "MSM8960"

            length: 18
      device class: 2
               S/N: 0
           VID:PID: 04E8:685D
         bcdDevice: 0100
   iMan:iProd:iSer: 1:2:0
          nb confs: 1

interface[0].altsetting[0]: num endpoints = 1
   Class.SubClass.Protocol: 02.02.01
       endpoint[0].address: 82
           max packet size: 0010
          polling interval: 09

interface[1].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 0A.00.00
       endpoint[0].address: 81
           max packet size: 0200
          polling interval: 00
       endpoint[1].address: 01
           max packet size: 0200
          polling interval: 00
Claiming interface...
Setting up interface...

Initialising protocol...
ERROR: Failed to receive handshake response. Result: -7
ERROR: Protocol initialisation failed!

Releasing device interface...
[/s/a/I9506XXSDPL2_I9506XXUDOJ2_bootmodem]─> sudo heimdall print-pit --verbose --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.013453] [00001dbe] libusb: debug [libusb_get_device_list] 
[ 0.013483] [00001dbe] libusb: debug [discovered_devs_append] need to increase capacity
[ 0.013496] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013503] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013507] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013520] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013530] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013553] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013563] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013572] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013581] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013590] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013600] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013610] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013626] [00001dbe] libusb: debug [libusb_open] open 1.16
[ 0.013672] [00001dbe] libusb: debug [usbi_add_pollfd] add fd 9 events 4
[ 0.013686] [00001dbe] libusb: debug [libusb_get_device_descriptor] 
[ 0.013696] [00001dbe] libusb: debug [libusb_alloc_transfer] transfer 0x21f5a60
[ 0.013705] [00001dbe] libusb: debug [libusb_submit_transfer] transfer 0x21f5a60
[ 0.013712] [00001dbe] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 0.013745] [00001dbe] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.013758] [00001dbe] libusb: debug [handle_events] poll fds modified, reallocating
[ 0.013770] [00001dbe] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 0.013885] [00001dbe] libusb: debug [handle_events] poll() returned 1
[ 0.013907] [00001dbe] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=4
[ 0.013916] [00001dbe] libusb: debug [handle_control_completion] handling completion status 0
[ 0.013924] [00001dbe] libusb: debug [disarm_timerfd] 
[ 0.013934] [00001dbe] libusb: debug [usbi_handle_transfer_completion] transfer 0x21f5a60 has callback 0x7f256f792c60
[ 0.013942] [00001dbe] libusb: debug [sync_transfer_cb] actual_length=4
[ 0.013951] [00001dbe] libusb: debug [libusb_free_transfer] transfer 0x21f5a60
[ 0.013964] [00001dbe] libusb: debug [libusb_alloc_transfer] transfer 0x21f5a60
[ 0.013973] [00001dbe] libusb: debug [libusb_submit_transfer] transfer 0x21f5a60
[ 0.013982] [00001dbe] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 0.013999] [00001dbe] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.014006] [00001dbe] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 0.014118] [00001dbe] libusb: debug [handle_events] poll() returned 1
[ 0.014151] [00001dbe] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=18
[ 0.014161] [00001dbe] libusb: debug [handle_control_completion] handling completion status 0
[ 0.014168] [00001dbe] libusb: debug [disarm_timerfd] 
[ 0.014179] [00001dbe] libusb: debug [usbi_handle_transfer_completion] transfer 0x21f5a60 has callback 0x7f256f792c60
[ 0.014188] [00001dbe] libusb: debug [sync_transfer_cb] actual_length=18
[ 0.014201] [00001dbe] libusb: debug [libusb_free_transfer] transfer 0x21f5a60
      Manufacturer: "Sasmsung"
[ 0.014221] [00001dbe] libusb: debug [libusb_alloc_transfer] transfer 0x21f5a60
[ 0.014230] [00001dbe] libusb: debug [libusb_submit_transfer] transfer 0x21f5a60
[ 0.014238] [00001dbe] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 0.014260] [00001dbe] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.014269] [00001dbe] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 0.014386] [00001dbe] libusb: debug [handle_events] poll() returned 1
[ 0.014419] [00001dbe] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=4
[ 0.014429] [00001dbe] libusb: debug [handle_control_completion] handling completion status 0
[ 0.014438] [00001dbe] libusb: debug [disarm_timerfd] 
[ 0.014450] [00001dbe] libusb: debug [usbi_handle_transfer_completion] transfer 0x21f5a60 has callback 0x7f256f792c60
[ 0.014459] [00001dbe] libusb: debug [sync_transfer_cb] actual_length=4
[ 0.014471] [00001dbe] libusb: debug [libusb_free_transfer] transfer 0x21f5a60
[ 0.014483] [00001dbe] libusb: debug [libusb_alloc_transfer] transfer 0x21f5a60
[ 0.014491] [00001dbe] libusb: debug [libusb_submit_transfer] transfer 0x21f5a60
[ 0.014500] [00001dbe] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 0.014522] [00001dbe] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.014531] [00001dbe] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 0.014606] [00001dbe] libusb: debug [handle_events] poll() returned 1
[ 0.014618] [00001dbe] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=16
[ 0.014626] [00001dbe] libusb: debug [handle_control_completion] handling completion status 0
[ 0.014637] [00001dbe] libusb: debug [disarm_timerfd] 
[ 0.014646] [00001dbe] libusb: debug [usbi_handle_transfer_completion] transfer 0x21f5a60 has callback 0x7f256f792c60
[ 0.014654] [00001dbe] libusb: debug [sync_transfer_cb] actual_length=16
[ 0.014663] [00001dbe] libusb: debug [libusb_free_transfer] transfer 0x21f5a60
           Product: "MSM8960"

            length: 18
      device class: 2
               S/N: 0
           VID:PID: 04E8:685D
         bcdDevice: 0100
   iMan:iProd:iSer: 1:2:0
          nb confs: 1
[ 0.014737] [00001dbe] libusb: debug [libusb_get_config_descriptor] index 0

interface[0].altsetting[0]: num endpoints = 1
   Class.SubClass.Protocol: 02.02.01
       endpoint[0].address: 82
           max packet size: 0010
          polling interval: 09

interface[1].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 0A.00.00
       endpoint[0].address: 81
           max packet size: 0200
          polling interval: 00
       endpoint[1].address: 01
           max packet size: 0200
          polling interval: 00
Claiming interface...
[ 0.014852] [00001dbe] libusb: debug [libusb_claim_interface] interface 1
Setting up interface...
[ 0.014895] [00001dbe] libusb: debug [libusb_set_interface_alt_setting] interface 1 altsetting 0

Initialising protocol...
[ 0.015264] [00001dbe] libusb: debug [libusb_alloc_transfer] transfer 0x21f5a60
[ 0.015278] [00001dbe] libusb: debug [libusb_submit_transfer] transfer 0x21f5a60
[ 0.015289] [00001dbe] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 0.015304] [00001dbe] libusb: debug [submit_bulk_transfer] need 1 urbs for new transfer with length 4
[ 0.015327] [00001dbe] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.015335] [00001dbe] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 0.015348] [00001dbe] libusb: debug [handle_events] poll() returned 1
[ 0.015360] [00001dbe] libusb: debug [reap_for_handle] urb type=3 status=0 transferred=4
[ 0.015368] [00001dbe] libusb: debug [handle_bulk_completion] handling completion status 0 of bulk urb 1/1
[ 0.015377] [00001dbe] libusb: debug [handle_bulk_completion] last URB in transfer --> complete!
[ 0.015387] [00001dbe] libusb: debug [disarm_timerfd] 
[ 0.015395] [00001dbe] libusb: debug [usbi_handle_transfer_completion] transfer 0x21f5a60 has callback 0x7f256f792c60
[ 0.015404] [00001dbe] libusb: debug [sync_transfer_cb] actual_length=4
[ 0.015412] [00001dbe] libusb: debug [libusb_free_transfer] transfer 0x21f5a60
[ 0.015422] [00001dbe] libusb: debug [libusb_alloc_transfer] transfer 0x21f5a60
[ 0.015431] [00001dbe] libusb: debug [libusb_submit_transfer] transfer 0x21f5a60
[ 0.015438] [00001dbe] libusb: debug [add_to_flying_list] arm timerfd for timeout in 1000ms (first in line)
[ 0.015449] [00001dbe] libusb: debug [submit_bulk_transfer] need 1 urbs for new transfer with length 7
[ 0.015461] [00001dbe] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.015469] [00001dbe] libusb: debug [handle_events] poll() 3 fds with timeout in 60000ms
[ 1.015513] [00001dbe] libusb: debug [handle_events] poll() returned 1
[ 1.015570] [00001dbe] libusb: debug [handle_events] timerfd triggered
[ 1.015579] [00001dbe] libusb: debug [libusb_cancel_transfer] transfer 0x21f5a60
[ 1.015696] [00001dbe] libusb: debug [disarm_timerfd] 
[ 1.015724] [00001dbe] libusb: debug [handle_events] poll() 3 fds with timeout in 0ms
[ 1.015738] [00001dbe] libusb: debug [handle_events] poll() returned 1
[ 1.015752] [00001dbe] libusb: debug [reap_for_handle] urb type=3 status=-2 transferred=0
[ 1.015761] [00001dbe] libusb: debug [handle_bulk_completion] handling completion status -2 of bulk urb 1/1
[ 1.015771] [00001dbe] libusb: debug [handle_bulk_completion] abnormal reap: urb status -2
[ 1.015779] [00001dbe] libusb: debug [handle_bulk_completion] abnormal reap: last URB handled, reporting
[ 1.015785] [00001dbe] libusb: debug [usbi_handle_transfer_cancellation] detected timeout cancellation
[ 1.015793] [00001dbe] libusb: debug [disarm_timerfd] 
[ 1.015798] [00001dbe] libusb: debug [usbi_handle_transfer_completion] transfer 0x21f5a60 has callback 0x7f256f792c60
[ 1.015808] [00001dbe] libusb: debug [sync_transfer_cb] actual_length=0
[ 1.015824] [00001dbe] libusb: debug [libusb_free_transfer] transfer 0x21f5a60
ERROR: Failed to receive handshake response. Result: -7
ERROR: Protocol initialisation failed!

Releasing device interface...
[ 1.015879] [00001dbe] libusb: debug [libusb_release_interface] interface 1

[ 1.015907] [00001dbe] libusb: debug [libusb_close] 
[ 1.015921] [00001dbe] libusb: debug [usbi_remove_pollfd] remove fd 9
[ 1.015944] [00001dbe] libusb: debug [libusb_exit] 
[ 1.015950] [00001dbe] libusb: debug [libusb_exit] destroying default context
jmayday commented 7 years ago

I got it working by compiling heimdall from sources. First I installed some dependencies

dnf install cmake zlib-devel libusb-devel gcc gcc-c++ kf5-kconfigwidgets-devel

and then I followed Linux\README instruction. Using heimdall compiled from sources caused no issues like ones mentioned in previous posts and I was able to run it with print-pit option.