Open hexag1 opened 7 years ago
Also this is on Manjaro Linux. But I have the same exact problems on Windows 10.
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
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.
Trying to flash TWRP onto my Samsung Galaxy Tab 8.4 SMT-320
I keep getting "protocol initialization failed".
I also sometimes get
etc
Here's my verbose / debug output. IDK what else to do.