Unable to flash SailfishX to Xperia XA2 from Ubuntu
Hi,
I bought an Xperia XA2 and SailfhishX license and tried to install SailfishX from Ubuntu 14.04 following the instructions at:
https://jolla.com/sailfishx-linux-instructions-xa2/
Until step 4.7 (fastboot OEM unlock), everything worked fine. It took me a combination of attempts to get the phone unlocked. The the fastboot command never ended cleanly but hung in unresponsive but the phone eventually was unlocked.
The flash command did not work, the connected phone (with blue light) is recognized by my Ubuntu laptop (lsusb), but the flash.sh command says there is not connected phone.
Then I found the information at https://jolla.zendesk.com/hc/en-us/articles/360012031854, I used the indicated commands to force USB3 ports to USB2 mode temporarily. This gets me one step further, i.e. fastboot recognizes one devices. But:
pvde@alicante:~/SailfishX/Sailfish_OS-Jolla-3.0.2.8-h3113-0.0.7.13$ bash ./flash.sh
Detected Linux
Searching device to flash..
Found 1 devices: CQ3001NBST
Fastboot command: fastboot -s CQ3001NBST
Flashing boot_a partition..
sending 'boot_a' (17724 KB)...
FAILED (remote: unknown command)
finished. total time: 0.001s
If I re-run the command, no device is found, and the connection light on the phone switches from "blue" to "green", briefly going through red.
Checking further, if I connect the phone and run "sudo fastboot devices" a few times, it reports the device a few times, then drops the connection. I repeated this also on another laptop also running Ubuntu 14.
So I'm lost, and wondering if I need a Windows computer, is there more chance of success?
The instructions talk about a USB hub. I don't have a separate USB hub and connect my laptop directly using the Sony USB cable, is it necessary to get a USB hub? I tried other cables, but apparently the Xperia is a different type of micro-USB as my other older micro-USB cables don't fit.
Any suggestions? My Jolla 1 is unstable so I can't use it any more and I don't want to leave Sailfish.
Pim
Maybe its completely useless, but did you try ugrading ubuntu to get a more recent kernel (and drivers)? Ubuntu 14 is anyway out of date at the end of april this year.
bomo ( 2019-03-31 17:02:29 +0200 )edit@Pim i've done it with my ubuntu 14.04 successfully. but it worked only with the admin user using sudo before. maybe it helps you...
cemoi71 ( 2019-04-01 23:21:05 +0200 )editforgot to tell that it was on usb3 port without special tricks, but direct from mother board. with usb hub i had always a problem with stable connectivity. Directly bound to motherboard is always better...
cemoi71 ( 2019-04-01 23:25:17 +0200 )editUp-to-date openSUSE Tumbleweed:
FAILED
Seems to be port/hardware related.
During the preliminary parts, when connected to the Dell, the XA2 seemed to try to spontaneously get out of fastboot mode (color switching to blue, then green, then red and the "play dead" charging animation starts). Maintaining the volume button did keep it in "blue" mode.
After failing to flash, the phone again spontaneously tried rebooting into "play dead".
At that point instead of investigating further I moved it from the laptop to the workstation, exact same OS, USB2 port also (I don't even own a USB3-to-USBC cable to begin with).
DrYak ( 2019-04-03 19:44:38 +0200 )editThanks everyone for your suggestions.
I tried on two other laptops, one running Ubuntu 16, also tried a USB hub. No results. So I tried on Windows using a colleague's PC. No success there either:
https://together.jolla.com/question/203356/unable-to-flash-sailfish-to-xperia-xa2-from-windows/
Pim ( 2019-04-05 14:46:38 +0200 )edit