[Sony Cross-Device General] bertschwert:
ERROR - invalid distance too far back

Hi,

I want to downgrade a Xperia Z5 to backup the drm stuff.

After some attempts I managed to download the firmware with Xperifirm, and create a bundle. When I try to flash it I just get:

ERROR - invalid distance too far back

Unfortunately I can't find anything about this error :(

What does it mean? Is the firmware too old, to go back to? The only thing I can find related to this error

In case it helps, here is the .log file:

08/012/2018 20:12:16 - INFO - <- This level is successfully initialized
08/012/2018 20:12:18 - INFO - Flashtool Version 0.9.24.4 built on 01-02-2018 22:15:00
08/012/2018 20:12:18 - INFO - libusb version 1.0.20
08/012/2018 20:12:18 - INFO - Searching for a web proxy
08/012/2018 20:12:18 - INFO - A proxy has been found. Using it as default
08/012/2018 20:12:18 - INFO - Syncing devices from github
08/012/2018 20:12:18 - INFO - Opening devices repository.
08/012/2018 20:12:18 - INFO - Scanning devices folder for changes.
08/012/2018 20:12:23 - INFO - Pulling changes from github.
08/012/2018 20:12:23 - INFO - Quietly closing devices repository.
08/012/2018 20:12:23 - INFO - Devices sync finished.
08/012/2018 20:12:23 - INFO - Loading devices database
08/012/2018 20:12:23 - INFO - Loaded 100 devices
08/012/2018 20:12:23 - INFO - Starting phone detection
08/012/2018 20:12:25 - INFO - Device disconnected
08/013/2018 20:13:38 - INFO - Adding loader.sin to the bundle as loader.sin
08/013/2018 20:13:38 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/loader.sin
08/013/2018 20:13:38 - INFO - Adding amss_fsg_S1-MODEMSW-LIVE-F936-PID1-0006-MMC.sin to the bundle as amss_fsg.sin
08/013/2018 20:13:38 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/amss_fsg_S1-MODEMSW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:38 - INFO - Adding amss_fs_1_S1-MODEMSW-LIVE-F936-PID1-0006-MMC.sin to the bundle as amss_fs_1.sin
08/013/2018 20:13:38 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/amss_fs_1_S1-MODEMSW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:38 - INFO - Adding amss_fs_2_S1-MODEMSW-LIVE-F936-PID1-0006-MMC.sin to the bundle as amss_fs_2.sin
08/013/2018 20:13:38 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/amss_fs_2_S1-MODEMSW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:38 - INFO - Adding apps_log_S1-SW-LIVE-F936-PID1-0006-MMC.sin to the bundle as apps_log.sin
08/013/2018 20:13:38 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/apps_log_S1-SW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:38 - INFO - Adding auto-boot.ta to the bundle as auto-boot.ta
08/013/2018 20:13:38 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/auto-boot.ta
08/013/2018 20:13:38 - INFO - Adding boot_delivery.xml to the bundle as boot_delivery.xml
08/013/2018 20:13:38 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/boot/boot_delivery.xml
08/013/2018 20:13:38 - INFO - Adding sdi_S1_Boot_MSM8094_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009410E1-SWID12-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding sbl1_S1_Boot_MSM8094_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009410E1-SWID00-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding emmc_appsboot_S1_Boot_MSM8094_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009410E1-SWID09-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding s1sbl_S1_Boot_MSM8994_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009400E1-SWID65-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding sbl1_S1_Boot_MSM8094_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009410E1-SWID00-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding tz_S1_Boot_MSM8094_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009410E1-SWID07-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding rpm_S1_Boot_MSM8994_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009400E1-SWID0A-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding emmc_appsboot_S1_Boot_MSM8994_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009400E1-SWID09-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding sdi_S1_Boot_MSM8994_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009400E1-SWID12-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding rpm_S1_Boot_MSM8994_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009400E1-SWID0A-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding tz_S1_Boot_MSM8994_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009400E1-SWID07-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding s1sbl_S1_Boot_MSM8994_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009400E1-SWID15-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding sbl1_S1_Boot_MSM8994_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009400E1-SWID00-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding sdi_S1_Boot_MSM8994_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009400E1-SWID12-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding pmic_S1_Boot_MSM8994_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009400E1-SWID16-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding pmic_S1_Boot_MSM8094_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009410E1-SWID16-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding s1sbl_S1_Boot_MSM8094_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009410E1-SWID65-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding rpm_S1_Boot_MSM8094_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009410E1-SWID0A-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding hyp_S1_Boot_MSM8994_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009400E1-SWID15-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding rpm_S1_Boot_MSM8094_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009410E1-SWID0A-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding emmc_appsboot_S1_Boot_MSM8994_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009400E1-SWID09-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding tz_S1_Boot_MSM8994_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009400E1-SWID07-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:38 - INFO - Adding sbl1_S1_Boot_MSM8994_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009400E1-SWID00-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:39 - INFO - Adding s1sbl_S1_Boot_MSM8094_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009410E1-SWID15-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:39 - INFO - Adding Sumire_S1BootConfig_MiscTA.ta to the bundle
08/013/2018 20:13:39 - INFO - Adding pmic_S1_Boot_MSM8994_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009400E1-SWID16-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:39 - INFO - Adding sdi_S1_Boot_MSM8094_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009410E1-SWID12-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:39 - INFO - Adding pmic_S1_Boot_MSM8094_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009410E1-SWID16-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:39 - INFO - Adding emmc_appsboot_S1_Boot_MSM8094_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009410E1-SWID09-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:39 - INFO - Adding hyp_S1_Boot_MSM8994_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009400E1-SWID15-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:39 - INFO - Adding hyp_S1_Boot_MSM8094_LA1_2_2_42_AID_1_KITAKAMI-TEST-HWID009410E1-SWID15-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
08/013/2018 20:13:39 - INFO - Adding hyp_S1_Boot_MSM8094_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009410E1-SWID15-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:39 - INFO - Adding tz_S1_Boot_MSM8094_LA1_2_2_42_AID_4_PLATFORM-KITAKAMIR2-LIVE-HWID009410E1-SWID07-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-F936-0004-MMC.sin to the bundle
08/013/2018 20:13:39 - INFO - Adding cache_S1-SW-LIVE-F936-PID1-0006-MMC.sin to the bundle as cache.sin
08/013/2018 20:13:39 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/cache_S1-SW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:39 - INFO - Adding cust-reset.ta to the bundle as cust-reset.ta
08/013/2018 20:13:39 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/cust-reset.ta
08/013/2018 20:13:39 - INFO - Adding diag_S1-SW-LIVE-F936-PID1-0006-MMC.sin to the bundle as diag.sin
08/013/2018 20:13:39 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/diag_S1-SW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:39 - INFO - Adding elabel-E6653-row-row_201511160924345.1_32.2.A.0.305_S1-ELABEL-LIVE-F936-PID1-0004-MMC.sin to the bundle as elabel.sin
08/013/2018 20:13:39 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/elabel-E6653-row-row_201511160924345.1_32.2.A.0.305_S1-ELABEL-LIVE-F936-PID1-0004-MMC.sin
08/013/2018 20:13:39 - INFO - Adding fota-reset.ta to the bundle as fota-reset.ta
08/013/2018 20:13:39 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/fota-reset.ta
08/013/2018 20:13:39 - INFO - Adding fotakernel_S1-SW-LIVE-F936-PID1-0006-MMC.sin to the bundle as fotakernel.sin
08/013/2018 20:13:39 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/fotakernel_S1-SW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:41 - INFO - Adding kernel_S1-SW-LIVE-F936-PID1-0006-MMC.sin to the bundle as kernel.sin
08/013/2018 20:13:41 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/kernel_S1-SW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:43 - INFO - Adding master-reset.ta to the bundle as master-reset.ta
08/013/2018 20:13:43 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/master-reset.ta
08/013/2018 20:13:43 - INFO - Adding modem_S1-MODEMSW-LIVE-F936-PID1-0006-MMC.sin to the bundle as modem.sin
08/013/2018 20:13:43 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/modem_S1-MODEMSW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:46 - INFO - Adding oem_S1-SW-LIVE-F936-PID1-0006-MMC.sin to the bundle as oem.sin
08/013/2018 20:13:46 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/oem_S1-SW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:48 - INFO - Adding osv-restriction.ta to the bundle as osv-restriction.ta
08/013/2018 20:13:48 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/osv-restriction.ta
08/013/2018 20:13:48 - INFO - Adding partition-image_S1-SW-LIVE-F936-PID1-0006-MBR.sin to the bundle as partition.sin
08/013/2018 20:13:48 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/partition-image_S1-SW-LIVE-F936-PID1-0006-MBR.sin
08/013/2018 20:13:48 - INFO - Adding persist_S1-SW-LIVE-F936-PID1-0006-MMC.sin to the bundle as persist.sin
08/013/2018 20:13:48 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/persist_S1-SW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:48 - INFO - Adding ramdump_S1-SW-LIVE-F936-PID1-0006-MMC.sin to the bundle as ramdump.sin
08/013/2018 20:13:48 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/ramdump_S1-SW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:49 - INFO - Adding reset-non-secure-adb.ta to the bundle as reset-non-secure-adb.ta
08/013/2018 20:13:49 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/reset-non-secure-adb.ta
08/013/2018 20:13:49 - INFO - Adding ssd_S1-SW-LIVE-F936-PID1-0006-MMC.sin to the bundle as ssd.sin
08/013/2018 20:13:49 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/ssd_S1-SW-LIVE-F936-PID1-0006-MMC.sin
08/013/2018 20:13:49 - INFO - Adding system_S1-SW-LIVE-F936-PID1-0006-MMC.sin to the bundle as system.sin
08/013/2018 20:13:49 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/system_S1-SW-LIVE-F936-PID1-0006-MMC.sin
08/017/2018 20:17:13 - INFO - Adding userdata_S1-SW-LIVE-F936-PID1-0006-MMC.sin to the bundle as userdata.sin
08/017/2018 20:17:13 - INFO - Streaming from file : /home/bert/Prox/Z5/E6653_Customized HK_1298-7314_32.2.A.0.305_R15C/userdata_S1-SW-LIVE-F936-PID1-0006-MMC.sin
08/017/2018 20:17:20 - INFO - Creating torrent file : /home/bert/Prox/Z5/firmwares/E6653_32.2.A.0.305_Customized HK.ftf.torrent
08/017/2018 20:17:32 - INFO - Torrent file creation finished
08/017/2018 20:17:32 - INFO - Bundle creation finished
08/034/2018 20:34:42 - INFO - Device connected with USB debugging off
08/034/2018 20:34:42 - INFO - For 2011 devices line, be sure you are not in MTP mode
08/035/2018 20:35:20 - INFO - Unauthorized device connected with USB debugging on
08/035/2018 20:35:20 - INFO - Check the device to accept the authorization
08/035/2018 20:35:28 - INFO - Device connected with USB debugging on
08/035/2018 20:35:28 - INFO - Connected device : Sony Xperia Z5
08/035/2018 20:35:28 - INFO - Installed version of busybox : N/A
08/035/2018 20:35:28 - INFO - Android version : 7.1.1 / kernel version : 3.10.84-perf-g99119bc / Platform : 64bits / Build number : 32.4.A.1.54
08/035/2018 20:35:28 - INFO - Root access denied
08/044/2018 20:44:29 - INFO - Device connected with USB debugging off
08/044/2018 20:44:29 - INFO - For 2011 devices line, be sure you are not in MTP mode
08/044/2018 20:44:31 - INFO - Device disconnected
08/044/2018 20:44:49 - INFO - Device connected with USB debugging off
08/044/2018 20:44:49 - INFO - For 2011 devices line, be sure you are not in MTP mode
08/045/2018 20:45:01 - INFO - Device disconnected
08/049/2018 20:49:21 - INFO - Selected Bundle for Sony Xperia Z5(E6653). FW release : 32.2.A.0.305. Customization : Customized HK
08/049/2018 20:49:21 - INFO - Preparing files for flashing
08/049/2018 20:49:56 - ERROR - invalid distance too far back
08/049/2018 20:49:56 - INFO - Cannot open bundle. Flash operation canceled
08/049/2018 20:49:57 - INFO - Device disconnected
08/057/2018 20:57:35 - INFO - Flash canceled

BTW: Just checked and I get the same error using the Windows version ;)