[Samsung Galaxy S21 Questions] HorusEyE:
Hello.

Long time I don't root my phones, probably since Galaxy S4.

I just bought a used Galaxy S21 5G and wanted to try to flash a firmware, for instance from samfw.com.

I downloaded the correct file from samfw.com, unlocke the bootloader and Heimdall can see the device. I'm using Debian Bookworm and Heimdall 1.4.2.

Here is some info:

$ uname -a
Linux psyHost 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

lsusb | grep Samsung
Bus 002 Device 003: ID 04e8:685d Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II] (Download mode)

$ heimdall version
v1.4.2

$ heimdall detect
Device detected

$ dpkg -l libusb*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-========================-============-============-=====================================================================
ii libusb-0.1-4:amd64 2:0.1.12-32 amd64 userspace USB programming library
ii libusb-1.0-0:amd64 2:1.0.26-1 amd64 userspace USB programming library
ii libusb-1.0-0-dev:amd64 2:1.0.26-1 amd64 userspace USB programming library development files
ii libusb-1.0-doc 2:1.0.26-1 all documentation for userspace USB programming
ii libusb-dev 2:0.1.12-32 amd64 userspace USB programming library development files
ii libusbredirhost1:amd64 0.13.0-2 amd64 Implementing the usb-host (*) side of a usbredir connection (runtime)
ii libusbredirparser1:amd64 0.13.0-2 amd64 Parser for the usbredir protocol (runtime)

However, when I try to print the pit file from the phone, or any other action, I get this:

$ heimdall print-pit --verbose --no-reboot
Heimdall v1.4.2

Copyright (c) 2010-2017 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: "SAMSUNG"
Product: "Gadget Serial"

length: 18
device class: 2
S/N: 0
VID:PID: 04E8:685D
bcdDevice: 021B
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: 000A
polling interval: 08

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: libusb error -7 whilst sending bulk transfer. Retrying...
ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
ERROR: libusb error -7 whilst sending bulk transfer.
ERROR: Failed to send handshake!ERROR: Failed to receive handshake response. Result: -7
ERROR: Protocol initialisation failed!

Releasing device interface...

What else can I try? I already tried a different USB port. I just didn't try another cable because I don't have one!