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

Sailfish X installation via VirtualBox [successful]

asked 2017-10-24 00:25:10 +0300

foozle gravatar image

updated 2017-10-24 23:43:46 +0300

Being a tad impatient to wait for the OSX/Linux versions of the Sailfish X installer (as this would be months, if at all) I've been trying to install Sailfish X on the Xperia X using VirtualBox in combination with the (freely) available Windows images from modern.ie (https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/).

Both the Windows 7 and Windows 10 images seem to refuse to install the device USB drivers (both in the "green light" Xperia X mode and the "blue light" Fastboot mode, even though for both cases the USB devices are identified properly).

UPDATE #1: Thanks to the tip from Kao, I learned that I needed to change the USB version for the virtual machine from 1.1 to 2 or 3. Also followed the advice to create filters for the USB devices so I didn't have to enable these manually.

(This requires you to install the VirtualBox Extension Pack if you don't have this installed already).

After this I could unlock the device using the instructions mentioned in the Jolla manual (using the link there to the instructions on the Sony site) and now the USB devices where properly installed and I successfully ran the "flash-on-windows.bat" script to flash the device.

After flashing the device "successfully" (as mentioned by the script), I ended up in a boot-loop where I never get past the Sony logo-screen. So I'am downloading the entire Sailfish X distrubution from the Jolla shop again (now on the Windows guest machine) and will try again, hopefully this'll fix the boot-loop.

UPDATE #2: The bootloop wasn't fixed (flashed a total of 7 times, all with the same boot-loop as a result), now restored Android using Emma. Hopefully better luck tomorrow.

UPDATE #3: Did a quick try again just now, everything seems to be fine except for a "The system cannot find the drive specified"-notice just before it continues to start the flashing. Here's a screenshot of the command line output: https://i.imgur.com/ePqnzAD.png Maybe someone can point something obvious I'm overlooking ;-)

UPDATE #4: No matter what I tried (downloading files, trying to manually influence the oem partition, etc) nothing seeming to work. As I'm (much) more familiar with *NIX systems, I was happy to read @DrYak edit to @mosen answer that there are now official Linux Instructions available, so I tried those.

They worked flawlessly and I can now enjoy Sailfish X on the Xperia X.

Thanks for all the suggestions and helpful tips!

Handy links I encountered/created/inspired along the way:

  1. DrYak has created some .rules for use with the USB devices I encountered during the various stages
  2. The USB settings I added to VirtualBox, collected using the tip from @Kao on how not to have to enter them manually
edit retag flag offensive close delete

Comments

I remember other people having a similar problem, see here: https://together.jolla.com/question/169170/white-screen-with-sonysolved/

Kao ( 2017-10-24 09:03:49 +0300 )edit
1

when you download your package from jolla, why don't you use the flasher script for linux? only things you maybe have to install are fastboot(for unlocking the bootloader) and adb(for flashing). but i think adb is already installed on most linux machines.

breiti_oi ( 2017-10-24 12:42:31 +0300 )edit

3 Answers

Sort by » oldest newest most voted
3

answered 2017-10-24 12:28:55 +0300

mosen gravatar image

updated 2017-10-24 20:51:28 +0300

DrYak gravatar image

If you are usiing linux or osx, this guide by jakibaki will spare you the Win-VM experience ;) The only thing i stuck at was starting FlashTool. This needs to be started with sudo rights to work for me.


Edit:

Now there is also an official Guide by Jolla for Linux

edit flag offensive delete publish link more

Comments

2

Confirmed to work here too.

Also, for me too sudo was quick shortcut to avoid fumbling with custom udev rules.

Otherwise, you need to add the various USB devid (those of "F5121" and "S1Boot Fastboot", same as for the USB forwarder in VirtualBox) to a /etc/udev/rules.d/something.rules file.

DrYak ( 2017-10-24 12:55:30 +0300 )edit
2

More info regarding the .rules file.

DrYak ( 2017-10-24 13:16:24 +0300 )edit
1

@mosen Thanks for the link, I'll look into it tonight when I get home, it looks promising. Then again, I seem to have managed to configure the virtualbox (which I'm allowed to have installed on my company issued machine ;-) ).

@DrYak I've referenced the USB settings with your request a bit further up

foozle ( 2017-10-24 14:05:03 +0300 )edit
2

@foozle : thank you for the paste.bin, here's the current post with an attempt at a .rules file.

DrYak ( 2017-10-24 20:10:49 +0300 )edit
2

answered 2017-10-24 14:00:05 +0300

leszek gravatar image

I made a video also talking about the VM stuff a bit. But if you are under linux you can follow my example on how to flash it under linux (without guarantee that it will work like on my device but hey. use it at your own risk)

https://youtu.be/TdiwzcTMo0c

edit flag offensive delete publish link more
1

answered 2017-10-24 00:48:55 +0300

Kao gravatar image

I used Windows 10 in VirtualBox on Mac OSX successfully to flash Sailfish X. I had to add two USB filters in the VM configuration though (Ports > USB > enable + USB 3.0 controller) for the "F5121" and "S1Boot Fastboot" devices. I did that by first connecting the Xperia X in regular USB mode, then in fastboot mode, and each time using the "add from connected device" option (plug with green plus button). Afterwards I started the VM and again connected the Xperia X first in one mode then the other. Each time the respective device showed up in the Windows 10 DeviceManager, and I could install the driver.

edit flag offensive delete publish link more

Comments

1

Thank you! As you mentioned the USB 3.0 controller, I noticed I still had USB 1.1 selected. I had to install the VirtualBox extension pack and now both devices are recognised (with the filters you mentioned) and Emma actually sees the phone.

foozle ( 2017-10-24 00:59:35 +0300 )edit

Glad to help, and good luck with the flashing!

Kao ( 2017-10-24 01:06:16 +0300 )edit

I my opinion, at that point (needing to authorize the USB forwarding of every type of USB device ID that the Xperia exposes) it seems as much complicated of going the udev .rules path in Linux.

Which by itself is much more complicated than just plain sudo, as mentionned by mosen

Speaking of USB ID, could you list all the USB vendorId/productId that you've added to VirtualBox ? So we can add them into .rules file

DrYak ( 2017-10-24 13:25:11 +0300 )edit

As TJC doesn't really allow formatting, I've added the USB info to pastebin; https://pastebin.com/V0u96cZL

foozle ( 2017-10-24 13:53:08 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2017-10-24 00:25:10 +0300

Seen: 2,159 times

Last updated: Oct 24 '17