We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Sony Xperia XA2 Ultra flashing does not complete? [answered]

asked 2019-07-19 17:08:23 +0200

ExTechOp gravatar image

I just got a Sony Xperia XA2 Ultra Single-SIM (H3213), it worked fine with Android and I'm now trying to flash Sailfish onto it, as detailed in the instructions. I've gone into developer mode, enabled OEM unlocking and USB debugging. I obtained the OEM unlock key from Sony, and I've unlocked the phone using fastboot. Unfortunately, the actual operation to flash Sailfish onto it from my Linux box fails somewhere halfway. I've now tried this a few times, and it always ends up hanging the same way. Suggestions, anyone?

[Phone started with Volume+/USB into fastboot mode: black screen, blue led on]

# fastboot devices 
CQ300067JQ  fastboot

# ./flash.sh
Detected Linux
Searching device to flash..
Found 1 devices: CQ300067JQ 
Fastboot command: fastboot -s CQ300067JQ  
Flashing boot_a partition..
target reported max download size of 536870912 bytes
sending 'boot_a' (18464 KB)...
OKAY [  0.453s]
writing 'boot_a'...
OKAY [  0.000s]
finished. total time: 0.454s
Flashing boot_b partition..
target reported max download size of 536870912 bytes
sending 'boot_b' (18464 KB)...
OKAY [  0.457s]
writing 'boot_b'...
OKAY [  0.000s]
finished. total time: 0.458s
Flashing userdata partition..
target reported max download size of 536870912 bytes
erasing 'userdata'...
OKAY [  0.148s]
sending sparse 'userdata' (522403 KB)...
OKAY [ 12.958s]
writing 'userdata'...
OKAY [  0.000s]
sending sparse 'userdata' (522418 KB)...
OKAY [ 14.170s]
writing 'userdata'...
OKAY [  0.000s]
sending sparse 'userdata' (76580 KB)...
OKAY [  4.270s]
writing 'userdata'...
OKAY [  0.000s]
finished. total time: 31.547s
Flashing system_b partition..
< waiting for device >
target reported max download size of 536870912 bytes
sending sparse 'system_b' (524284 KB)...
OKAY [ 13.232s]
writing 'system_b'...
OKAY [  0.001s]
sending sparse 'system_b' (56164 KB)...
OKAY [ 13.509s]
writing 'system_b'...
OKAY [  0.000s]
finished. total time: 26.743s
Flashing vendor_a partition..
< waiting for device >
target reported max download size of 536870912 bytes
sending 'vendor_a' (352 KB)...
OKAY [  0.018s]
writing 'vendor_a'...
OKAY [  0.000s]
finished. total time: 0.019s
Flashing vendor_b partition..
< waiting for device >

[Blue LED goes out]

[Screen shows unlocked boot loader warning]

[Screen shows black-and-white Sony logo on screen]

[Screen shows black-and-white Sony logo on screen, cyan LED]

[With no progress for 20 minutes, I interrupt flashing process at Linux end]

^C

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by ExTechOp
close date 2019-07-19 18:25:39.014936

1 Answer

Sort by » oldest newest most voted
1

answered 2019-07-19 17:46:44 +0200

ExTechOp gravatar image

And I found the solution right here after a lucky search with the right keywords: my CentOS7 installation had too old a version of adb (and possibly also of fastboot), so I got the latest versions from Google and using them the flashing process looked a bit different and went through without issues:

# ./flash.sh            
Detected Linux
Searching device to flash..
Found 1 devices: CQ300067JQ 
Fastboot command: fastboot -s CQ300067JQ  
Flashing boot_a partition..
Sending 'boot_a' (18464 KB)                        OKAY [  0.469s]
Writing 'boot_a'                                   OKAY [  0.000s]
Finished. Total time: 0.476s
Flashing boot_b partition..
Sending 'boot_b' (18464 KB)                        OKAY [  0.465s]
Writing 'boot_b'                                   OKAY [  0.000s]
Finished. Total time: 0.472s
Flashing userdata partition..
Sending sparse 'userdata' 1/3 (522403 KB)          OKAY [ 12.898s]
Writing 'userdata'                                 OKAY [  0.000s]
Sending sparse 'userdata' 2/3 (522418 KB)          OKAY [ 14.040s]
Writing 'userdata'                                 OKAY [  0.000s]
Sending sparse 'userdata' 3/3 (76580 KB)           OKAY [  4.240s]
Writing 'userdata'                                 OKAY [  0.000s]
Finished. Total time: 31.190s
Flashing system_b partition..
Sending sparse 'system_b' 1/2 (524284 KB)          OKAY [ 13.238s]
Writing 'system_b'                                 OKAY [  0.000s]
Sending sparse 'system_b' 2/2 (56164 KB)           OKAY [ 13.530s]
Writing 'system_b'                                 OKAY [  0.000s]
Finished. Total time: 30.086s
Flashing vendor_a partition..
Sending 'vendor_a' (352 KB)                        OKAY [  0.017s]
Writing 'vendor_a'                                 OKAY [  0.000s]
Finished. Total time: 1.705s
Flashing vendor_b partition..
Sending 'vendor_b' (352 KB)                        OKAY [  0.017s]
Writing 'vendor_b'                                 OKAY [  0.000s]
Finished. Total time: 100.470s
Flashing oem partition..
Sending 'oem_a' (211516 KB)                        OKAY [  5.255s]
Writing 'oem_a'                                    OKAY [  0.000s]
Finished. Total time: 105.894s

Flashing completed.

Remove the USB cable and bootup the device by pressing powerkey.

After this, I could boot Sailfish on the Sony.

edit flag offensive delete publish link more

Comments

Close your question then :)

Sakke ( 2019-07-19 18:21:18 +0200 )edit

Question tools

Follow
1 follower

Stats

Asked: 2019-07-19 17:08:23 +0200

Seen: 354 times

Last updated: Jul 19 '19