Flash sailfish x to xperia x userdata img001 too large

REPRODUCIBILITY (% or how often):
BUILD ID = OS VERSION (Settings > About product):
HARDWARE (Jolla1, Tablet, XA2,…):
UI LANGUAGE:
REGRESSION: (compared to previous public release: Yes, No, ?):

DESCRIPTION:

when flashing userdata with fastboot flash:raw it says data too large with an xperia x and sailfish x downloaded from jolla. is there a possibility to take something out of the image and repack it? also the script said md5 doesn’t match. i redownloaded and it said it again so i wrote those commands to flash the partitions manually.

PRECONDITIONS:

STEPS TO REPRODUCE:

EXPECTED RESULT:

ACTUAL RESULT:

ADDITIONAL INFORMATION:

(Please ALWAYS attach relevant data such as logs, screenshots, etc…)

This is probably an issue - the expectation is that the file that you download is legitimate, anything else you do outside this parameters is prone to error.

this is the output of sudo fastboot getvar all, don’t know as how large userdata reports here in hexadecimal: (bootloader) version:0.5
(bootloader) max-download-size: 0x20000000
(bootloader) partition-type:cache:ext4
(bootloader) partition-size:cache: 0x10000000
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0x52cc00000
(bootloader) partition-type:system:ext4
(bootloader) partition-size:system: 0x1d3800000
(bootloader) secure:no
(bootloader) version-baseband:1300-4911_34.4.A.2.118
(bootloader) version-bootloader:1299-4841 S1_Boot_MSM8956_LA1.0.1_O_168
(bootloader) serialno:----
(bootloader) product:F5121
all:
Finished. Total time: 0.014s

i tried it at my dad’s home with a better internet connection and it worked. it must have been the bad connection causing the download to be broken

I guess we need to use some kind of hash to verify images before flashing.

there is. only i commented that line

For what reason? :wink:  

i didn’t want to believe that the download was broken