maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS (https://talk.maemo.org/showthread.php?t=99952)

aspergerguy 2017-10-12 19:22

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by jabgoe (Post 1536599)
properly update? ... i'm quite sure i did this

just this oem partition doesn't want to be flashed :(

Did you flash "F5121_34.3.A.0.228_CE5.ftf" or had not unlocked boot loader previously and had managed to obtain OTA update to enable OEM partition prior to flashing Sailfish OS?

jakibaki 2017-10-12 19:24

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by jabgoe (Post 1536599)
properly update? ... i'm quite sure i did this

flashing starts correctly, the phone is found and all previous steps end with OK. like this here:

Searching device to flash..
Found device with vendor id '0fce': Bus 001 Device 034: ID 0fce:0dde Sony Ericsson Mobile Communications AB Xperia Mini Pro Bootloader
Fastboot command: fastboot -i 0x0fce
Flashing boot partition..
target reported max download size of 536870912 bytes
sending 'boot' (10842 KB)...
OKAY [ 0.356s]
...

just this oem partition doesn't want to be flashed :(

That's really weird. I just noticed that if you didn't update, the script would stop you from flashing at all (it checks for the version).

Try doing the flashtool-step again, maybe something went wrong there. (it seems like the flash may not have applied everything correctly)

If that doesn't help you should probably try to get a hold of a windows-computer and update using emma because your phone seems to be in a weird state that could be causing more trouble in the long run.

maximilian1st 2017-10-12 19:26

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by jabgoe (Post 1536599)
Found device with vendor id '0fce': Bus 001 Device 034: ID 0fce:0dde Sony Ericsson Mobile Communications AB Xperia Mini Pro Bootloader

Xperia Mini? Does it always show this device name even for the F5121?

richie 2017-10-12 19:31

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by jakibaki (Post 1536596)
No that actually wasn't it D:

Did it work anyways for you? In that case there are multiple non-fatal errors that can happen.

Oh okay, thanks. For me, I didn't dare continue, googling it, it wasn't clear if the flashing would be successful, so I switched to Emma on Windows and bat file.

I was then curious reading your guide afterwards (great guide btw) about the error you saw, as useful to know if I want to flash a Nougat image in the future, whether flashtool actually works with the error I saw, "reset-non-secure-adb". It will be interesting to see if anyone else sees it and tries to continue and flash.

Rich

jabgoe 2017-10-12 19:37

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by aspergerguy (Post 1536600)
Did you flash "F5121_34.3.A.0.228_CE5.ftf" or had not unlocked boot loader previously and had managed to obtain OTA update to enable OEM partition prior to flashing Sailfish OS?

ok, i see ...
fastboot getvar version-baseband
gives me
version-baseband: 1300-4911_34.3.A.0.206
looks like i just had wanted to upgrade it but just didn't

too bad ...

jabgoe 2017-10-12 21:23

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
just as an information:

i could remedy my mistake (not updating to the correct version before flashing with linux) by getting some inspiration from the previous build and install instructions (https://sailfishos.org/wiki/Sailfish...y_period.21.29)

- i edited the flash script, commenting the part with oem flash:
sed -i 's/echo "Flashing oem partition.."/echo "oem partition is populated manually through recovery"/' flash.sh
sed -i 's/$FLASHCMD oem $BLOBS/#$FLASHCMD oem $BLOBS/' flash.sh
- then copied the *loire.img files by hand to the appropriate partition:
- flashed the phone with the sony blobs:
fastboot flash system *_loire.img
- did a boot into recovery image:
sudo fastboot boot hybris-recovery.img
- telneted into the phone in the rescue boot.
- and copied files according to instructions here
- afterwards rebooted the phone into fastboot mode again
- and flashed again with the modified flash.sh
- and that worked.

my phone now boots into sailfish x. too late to check functions now.

that'll teach me (again) to better respect instructions before doing stuff.

thanks for the hints! :)

BluesLee 2017-10-13 04:14

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Anyone knows why some of us encountered warnings in Spanish language after flashing the Android image? I just rebooted twice to Android to check that everything is fine. It did not have impact buy i would like to know where those warnings are coming from and why in Spanish language?

mariusmssj 2017-10-13 06:33

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by jakibaki (Post 1536519)
The workaround would have been booting into recovery and moving the blobs to the special partition from there (the partition is only read-only in fastboot mode) but since you're already on a new firmware you very likely won't need that.



Download and extract the .img file from here, enter fastboot mode and then cd to the folder where you downloaded that image and run
Code:

sudo fastboot flash oem SW_binaries_for_Xperia_AOSP_M_MR1_3.10_v13_loire.img
If it runs without an error that means that the partition is properly writable.


Went trough all good :) not sure if I should wait for official F5122 dual sim support

mrsellout 2017-10-13 06:37

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
The Android image provided in this guide is customized for Latin America. The first screen I saw had a drop down menu button to select other languages.

suicidal_orange 2017-10-13 06:58

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by mariusmssj (Post 1536633)
Went trough all good :) not sure if I should wait for official F5122 dual sim support

Why would you wait for someone at Jolla to do what you can do yourself? I can't think of a single possible reason :)

mariusmssj 2017-10-13 07:44

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by suicidal_orange (Post 1536636)
Why would you wait for someone at Jolla to do what you can do yourself? I can't think of a single possible reason :)

Some people were reporting issues with the modem and I just wasn't sure if there were any other issues.

bruce-one 2017-10-13 08:59

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by mariusmssj (Post 1536639)
Some people were reporting issues with the modem and I just wasn't sure if there were any other issues.

My F5122 is working perfectly, just fyi :-)

suicidal_orange 2017-10-13 09:25

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by mariusmssj (Post 1536639)
Some people were reporting issues with the modem and I just wasn't sure if there were any other issues.

So try the community image which is practically the same as the official one - if it works for you then you can buy?

beobachter 2017-10-13 10:49

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
https://shop.jolla.com/auth/login/?n...%2Fpurchase%2F

DrYak 2017-10-13 12:48

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by suicidal_orange (Post 1536636)
Why would you wait for someone at Jolla to do what you can do yourself? I can't think of a single possible reason :)

Single tiny possible reason : currently, you need to do a couple of small hacks to enable everything on the F5122 .
Waiting for a "ready to use F5122" image is the lazy route.

Quote:

Originally Posted by BluesLee (Post 1536629)
Anyone knows why some of us encountered warnings in Spanish language after flashing the Android image?

You can use XperiFirm (it's .NET, it works with mono in Linux) to download another Android image that the above linked Lat-Am.
(e.g.: I downloaded Switzerland).

Just pay attention to at least have 34.3.A.0.228 (Nougat 7.1.1), there are still a few countries with images that are stuck at 34.0 (Marshmallow 6.0.1).

(On the other hand, if you want to backup the TA with the DRM key these old 34.0 images are exactly what you need).

einmaleins 2017-10-13 19:31

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
1 Attachment(s)
Quote:

Originally Posted by jakibaki (Post 1536596)
No that actually wasn't it D:

Did it work anyways for you? In that case there are multiple non-fatal errors that can happen.

At first thank you very much for this helpful guide as windows/emma is no option for me.

I had this RESET-NON-SECURE-ADB question too and canceled the flashing because I was not sure what this means. I restarted the flashing and checking the Firmeware Selector dialog. Under exclude -> Misc TA there is an option to exclude this. Can you remember if you checked that point? Should this be included? Are there other options that should be checked?

Attachment 39597

LouisDK 2017-10-13 20:42

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
I tried flashing Sailfish X to my Xperia X using this device.

My sim card was detected but I was unable to get any signal.

My only changes was using the F5121_34.3.A.0.238_1302-4806_R2D (DE T-MOBILE) from Xperia flashtool and my officially brought Xperia X image.

Anyway I was able to get signal by using the official Windows Sailfish X installation instructions and F5121_34.3.A.0.228 NOBA firmware from Emma.

lantern 2017-10-13 20:48

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
For those of you who don't wanna update to >=.228 fw, I wrote how I was able to flash /oem partition from hybris-recovery here. Might be of help for somebody.
http://talk.maemo.org/showthread.php...34#post1536434

jakibaki 2017-10-13 21:32

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by LouisDK (Post 1536732)
I tried flashing Sailfish X to my Xperia X using this device.

My sim card was detected but I was unable to get any signal.

My only changes was using the F5121_34.3.A.0.238_1302-4806_R2D (DE T-MOBILE) from Xperia flashtool and my officially brought Xperia X image.

Anyway I was able to get signal by using the official Windows Sailfish X installation instructions and F5121_34.3.A.0.228 NOBA firmware from Emma.

Did you boot into android after flashing?

If not that's probably the reason why it didn't work with flashtool.

DrYak 2017-10-13 21:40

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by LouisDK (Post 1536732)
My only changes was using the F5121_34.3.A.0.238_1302-4806_R2D (DE T-MOBILE) from Xperia flashtool
{...}
Anyway I was able to get signal by using the official Windows Sailfish X installation instructions and F5121_34.3.A.0.228 NOBA firmware from Emma.

Another possible explication are difference between Emma and Flashtool.

I have zero experience with Emma, but I've noticed that there are tons of part that can be optionnally flashed or not in Flashtool.

Personnally, I've selected to flash nearly every single possible optionnal : wipe everything, nearly all optionnal Ta
The only exception is simlock - it's not available in Simple mode, and Advanced mode advises you NOT to flash it. So I've skipped simlock.ta

P@t 2017-10-14 16:16

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Does it matter/Is it better to follow the Sony Developer website proposed command to unlock the bootloader?

They give
fastboot -i 0x0fce oem unlock 0x<key>

the -i option is for specifying a custom USB vendor id

lantern 2017-10-14 16:26

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
It's important only if you have more than 1 phone connected to your computer. Otherwise no difference.

P@t 2017-10-14 19:15

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Thanks and then I have another question

I am using Mageia distribution and unfortunately the android-tools there use 'fastboot-android' and not 'fastboot' as the command line ...

And this creates an error message with flash.sh which thinks that I do not have the package installed.
I tried using an alias but same error message.
I tried filling in "FASTBOOT_BIN_NAME=fastboot-android" in the script flash.sh but that did not work either.

I am not that fine playing too much with the script with the limited knowledge I have and I prefer to ask for any advice before trying remove the section checking if android-tools are rightly installed...

so please any guidance :P ?

suicidal_orange 2017-10-14 19:41

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Try this to create an alias in bash so one command runs the other.
Code:

alias fastboot="fastboot-android"
Not sure it will work if you're using sudo though...

P@t 2017-10-14 19:54

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by suicidal_orange (Post 1536808)
Try this to create an alias in bash so one command runs the other.
Code:

alias fastboot="fastboot-android"
Not sure it will work if you're using sudo though...

thanks I did try an alias and I can run for instance
fastboot devices
instead of
fastboot-android devices

but still the script flash.sh complains :-( about the missing android-tools installation:

"No 'fastboot' found in $PATH"

suicidal_orange 2017-10-14 20:04

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
OK, try this to create a symlink (like a shortcut but better)

First find where it is
Code:

which fastboot-android
Then you can run this to make the link
Code:

symlink /path/fastboot-android /path/fastboot
Replacing path with the path. You might also need to chmod +x on the symlink.

hannesm 2017-10-14 20:13

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Thanks for the guide jakibaki, it worked fine!

P@t 2017-10-14 20:20

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Thanks it is running now !

This is great to see SFOS on such device

PS: there was clearly no need for drama about the 'forced to use windows' :rolleyes:

DrYak 2017-10-14 22:56

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by suicidal_orange (Post 1536808)
Try this to create an alias in bash so one command runs the other.
Code:

alias fastboot="fastboot-android"
Not sure it will work if you're using sudo though...

For the record : no, aliases won't be inherited.

acrux 2017-10-15 12:54

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by P@t (Post 1536807)
Thanks and then I have another question

I am using Mageia distribution and unfortunately the android-tools there use 'fastboot-android' and not 'fastboot' as the command line ...

And this creates an error message with flash.sh which thinks that I do not have the package installed...

Actually the solution was here waiting for you in another thread: http://talk.maemo.org/showpost.php?p...&postcount=165 ;)

Anyway - greetings from another Mageia user :) :cool:

pexi 2017-10-16 11:18

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Thanks for the guide! Worked without a hitch.

Funny thing was the spanish Android from your link.. the few seconds I saw it before installing SailfishX :)

too 2017-10-16 22:00

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Thanks for the information; got finally sailfishx installed:

Started on sunday, 15:30 ... 00:20 (monday morning got andoid downgraded)

Continued on monday, 20:00 -- 23:20 sailfishx booted the first time.

Quite a few obstacles and trial & errors...

Last thing was that fastboot just did not work after that 'spanish' image flashing (well, how to know what 'wipe' options to tick on that gui...) -- the led always went green when pressing volumeup when connecting usb.

Working 'workaround' was entering 'adb reboot bootloader' when android running (and that MTP usb mode) to get blue led...

rolfok 2017-10-17 20:02

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by jabgoe (Post 1536613)
just as an information:

...
- and copied files according to instructions here[/INDENT]thanks for the hints! :)

That same happened to me. Your instructions helped me, thanks.
There is a small error on the above site:

Code:

mount /dev/mmcblk0p52 system
should be:
mount /dev/mmcblk0p52 blobs


n950 2017-10-18 08:09

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Hello,

Where can i download this file:

SailfishOS-2.1.3.5-1-f5121-0.0.1.16.zip

Anybody have a link please?

I can't go on jolla shop it said page not found.

Is it the last sfos for xperia X?

Thanks in advance.

gaelic 2017-10-18 08:57

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
The download is in your account @jolla after you bought it.

jakibaki 2017-10-18 10:47

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by n950 (Post 1537176)
Hello,

Where can i download this file:

SailfishOS-2.1.3.5-1-f5121-0.0.1.16.zip

Anybody have a link please?

I can't go on jolla shop it said page not found.

Is it the last sfos for xperia X?

Thanks in advance.

After buying Sailfish X you can find it at https://shop.jolla.com/downloads

n950 2017-10-18 11:07

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by jakibaki (Post 1537182)
After buying Sailfish X you can find it at https://shop.jolla.com/downloads

I can't access to this website :( Not found error.
My country is not allowed i think.
I try with proxy online same result :( when i want to pay SFOS X.

DrYak 2017-10-18 12:34

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Quote:

Originally Posted by n950 (Post 1537183)
I can't access to this website :( Not found error.
My country is not allowed i think.
I try with proxy online same result :( when i want to pay SFOS X.

Normally it should work with proxies. (That's how I did it)
But some addresses are wrongly recognized (that's why I did the proxy in the first place)

Other people have shown success using the VPN mode of opera.


Alternative :

If you have some place (e.g.: an FTP site) I could upload it to your.

Note: the Sailfish X ZIP file contains only the free part of Sailfish OS.

The non-free proprietary bits which are licensed (alien-dalvik, microsoft exchange accounts, text prediction, etc.) are obtained from the Jolla Shop and are linked to your account. If you do not buy them from the website, you won't get these features, you'll only get more or less what the community crowd make themselves.

You're better off finding a way around the stupid broken geo-lock and buying it than getting the ZIP from someone : it would be incomplete.

n950 2017-10-18 14:24

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
1 Attachment(s)
Quote:

Originally Posted by DrYak (Post 1537191)
Normally it should work with proxies. (That's how I did it)
But some addresses are wrongly recognized (that's why I did the proxy in the first place)

Other people have shown success using the VPN mode of opera.


Alternative :

If you have some place (e.g.: an FTP site) I could upload it to your.

Note: the Sailfish X ZIP file contains only the free part of Sailfish OS.

The non-free proprietary bits which are licensed (alien-dalvik, microsoft exchange accounts, text prediction, etc.) are obtained from the Jolla Shop and are linked to your account. If you do not buy them from the website, you won't get these features, you'll only get more or less what the community crowd make themselves.

You're better off finding a way around the stupid broken geo-lock and buying it than getting the ZIP from someone : it would be incomplete.

With Opera Payment done and download has started thanks :)

mosen 2017-10-24 09:37

Re: [UNOFFICIAL GUIDE] Flash Sailfish X using Linux or MacOS
 
Thanks again Jakibaki for the tutorial!
I finally have time to give little feedback.
All was working great but the Flashtool part.
Is it correct that flashtool needs sudo rights to operate? At least it did not work for my normal user which i attempted first according to the "open flashtool" instruction.


All times are GMT. The time now is 08:13.

vBulletin® Version 3.8.8