edl icon indicating copy to clipboard operation
edl copied to clipboard

[Errno 110] Operation timed out

Open chakaponden opened this issue 1 year ago • 1 comments

I am trying to flash the partition but keep getting this error:

firehose - 
Writing to physical partition 0, sector 921600, sectors 70399
DeviceClass - EP_OUT.write OK
DeviceClass
DeviceClass - [LIB]: ['  File "/2500-sata/device/palm/PVG100/edl/./edl", line 402, in <module>\n    base.run()\n', '  File "/2500-sata/device/palm/PVG100/edl/./edl", line 397, in run\n    fh.handle_firehose(cmd, options)\n', '  File "/2500-sata/device/palm/PVG100/edl/edlclient/Library/firehose_client.py", line 696, in handle_firehose\n    if self.firehose.cmd_program(lun, startsector, filename):\n', '  File "/2500-sata/device/palm/PVG100/edl/edlclient/Library/firehose.py", line 481, in cmd_program\n    rsp = self.xmlsend(data, self.skipresponse)\n']
DeviceClass
DeviceClass - [LIB]: TX:<?xml version="1.0" ?><data>
DeviceClass
DeviceClass - [LIB]: TX:<program SECTOR_SIZE_IN_BYTES="512" num_partition_sectors="70399" physical_partition_number="0" start_sector="921600" />
DeviceClass
DeviceClass - [LIB]: TX:</data>
Done |----------|   0.0% Write (Sector 0x0 of 0x112FE) 0.00 MB/s
DeviceClass - [LIB]:  [Errno 110] Operation timed out

Ubuntu 22.04 main - Mode detected: sahara HWID: 0x0006b0e100420041 (MSM_ID:0x0006b0e1,OEM_ID:0x0042,MODEL_ID:0x0041) CPU detected: "MSM8940" PK_HASH: 0x073e81231dae45ba5575083feeccbaf85323b393e43e029e8ea5a683ecc3b6c6

command: ./edl --debugmode --memory=UFS w recovery twrp-3.3.1-0-pepito-nofirmwaremount.img Full log is attached

operation-write-timed-out-log.txt

Please, let me know if you know what I can do to fix it. Maybe timeout value increasing can help?

Here is the stacktrace

Traceback (most recent call last):
  File "/2500-sata/device/palm/PVG100/edl/./edl", line 402, in <module>
    base.run()
  File "/2500-sata/device/palm/PVG100/edl/./edl", line 397, in run
    fh.handle_firehose(cmd, options)
  File "/2500-sata/device/palm/PVG100/edl/edlclient/Library/firehose_client.py", line 696, in handle_firehose
    if self.firehose.cmd_program(lun, startsector, filename):
  File "/2500-sata/device/palm/PVG100/edl/edlclient/Library/firehose.py", line 499, in cmd_program
    self.cdc.write(wdata)
  File "/2500-sata/device/palm/PVG100/edl/edlclient/Library/Connection/usblib.py", line 361, in write
    ctr = self.EP_OUT.write(command[pos:pos + pktsize])
  File "/home/chakaponden/.local/lib/python3.10/site-packages/usb/core.py", line 408, in write
    return self.device.write(self, data, timeout)
  File "/home/chakaponden/.local/lib/python3.10/site-packages/usb/core.py", line 989, in write
  File "/home/chakaponden/.local/lib/python3.10/site-packages/usb/backend/libusb1.py", line 837, in bulk_write
    return self.__write(self.lib.libusb_bulk_transfer,
  File "/home/chakaponden/.local/lib/python3.10/site-packages/usb/backend/libusb1.py", line 930, in __write
    retval = fn(dev_handle.handle,
KeyboardInterrupt

chakaponden avatar Oct 02 '23 16:10 chakaponden

Tried to increase USB write timeout to 5000ms - does not help

@@ -357,4 +357,4 @@ class usb_class(DeviceClass):
             i = 0
             while pos < len(command):
                 try:
-                    ctr = self.EP_OUT.write(command[pos:pos + pktsize])
+                    ctr = self.EP_OUT.write(command[pos:pos + pktsize], 5000)

Tried to flash under root - still the same, so it's not permissions issue.

chakaponden avatar Oct 02 '23 21:10 chakaponden