maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   How to unlock bootloader - Sony xperia X (https://talk.maemo.org/showthread.php?t=99703)

HtheB 2017-09-13 15:19

Re: How to unlock bootloader - Sony xperia X
 
You can actually just download the images from Sony itself using the Flashtool..... Even all the countries and carrier options are available.

juiceme 2017-09-19 11:53

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by HtheB (Post 1534332)
You can actually just download the images from Sony itself using the Flashtool..... Even all the countries and carrier options are available.

bummer, not so easy :(

It seems that downloading the image is not possible from inside the Flashtool in the linux version, it requires an external windows binary "XperiFirm.exe"...

I tried flashing using the image found in @ExplIT's link (which seems to be "F5121_34.0.A.2.292_Customized DE" but either the image is noncomplete or there is something dizzy about my environment/setup, as Flasher fails for "no loader" and "no flash script" ...

Code:

root@tither:~/.flashTool# cat flashtool_2017-09-19_05-49-28.log
19/031/2017 17:31:23 - INFO  - <- This level is successfully initialized
19/031/2017 17:31:28 - INFO  - Flashtool Version 0.9.23.1 built on 11-01-2017 15:12:00
19/031/2017 17:31:28 - INFO  - libusb version 1.0.20
19/031/2017 17:31:28 - INFO  - Executing search strategies to find proxy selector
19/031/2017 17:31:28 - INFO  - No proxy found for gnome. Trying next one
19/031/2017 17:31:28 - INFO  - No proxy found for kde. Trying next one
19/031/2017 17:31:28 - INFO  - Proxy found for firefox
19/031/2017 17:31:29 - INFO  - Syncing devices from github
19/031/2017 17:31:29 - INFO  - Opening devices repository.
19/031/2017 17:31:30 - INFO  - Scanning devices folder for changes.
19/031/2017 17:31:41 - INFO  - Pulling changes from github.
19/031/2017 17:31:42 - INFO  - Quietly closing devices repository.
19/031/2017 17:31:42 - INFO  - Devices sync finished.
19/031/2017 17:31:42 - INFO  - Loading devices database
19/031/2017 17:31:42 - INFO  - Loaded 98 devices
19/031/2017 17:31:42 - INFO  - Starting phone detection
19/031/2017 17:31:45 - INFO  - Device disconnected
19/032/2017 17:32:07 - INFO  - Device connected in flash mode
19/032/2017 17:32:43 - INFO  - Selected Bundle for Sony Xperia X(F5121). FW release : 34.0.A.2.292. Customization : Customized DE
19/032/2017 17:32:43 - INFO  - Preparing files for flashing
19/035/2017 17:35:10 - INFO  - Please connect your device into flashmode.
19/035/2017 17:35:12 - INFO  - Opening device for R/W
19/035/2017 17:35:12 - INFO  - Device ready for R/W.
19/035/2017 17:35:12 - INFO  - Reading device information
19/035/2017 17:35:12 - INFO  - Phone ready for flashmode operations.
19/035/2017 17:35:12 - INFO  - Opening TA partition 2
19/035/2017 17:35:12 - INFO  - Current device : F5121 - CB512EV81U - 1302-4766_R2D - 1300-4911_34.3.A.0.194 - GENERIC_34.3.A.0.194
19/035/2017 17:35:12 - INFO  - Closing TA partition
19/035/2017 17:35:12 - INFO  - Start Flashing
19/035/2017 17:35:12 - INFO  - No loader in the bundle. Searching for one
19/035/2017 17:35:12 - INFO  - No matching loader found
19/035/2017 17:35:12 - WARN  - No loader found or set manually. Skipping loader
19/035/2017 17:35:12 - INFO  - Loader : S1_Root_d553 - Version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_N_160 / Boot version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_N_160 / Bootloader status : ROOTABLE
19/035/2017 17:35:12 - INFO  - Max packet size set to 4M
19/035/2017 17:35:12 - INFO  - USB buffer size set to 512K
19/035/2017 17:35:15 - INFO  - Parsing boot delivery
19/035/2017 17:35:15 - INFO  - No flash script found.
19/035/2017 17:35:15 - INFO  - Flash script is mandatory. Closing session
19/035/2017 17:35:15 - INFO  - Ending flash session
19/035/2017 17:35:15 - INFO  - Flashing finished.
19/035/2017 17:35:15 - INFO  - Please unplug and start your phone
19/035/2017 17:35:15 - INFO  - For flashtool, Unknown Sources and Debugging must be checked in phone settings
19/035/2017 17:35:16 - INFO  - Device connected in flash mode
19/036/2017 17:36:35 - INFO  - Device disconnected
root@tither:~/.flashTool#


Heik 2017-09-19 11:59

Re: How to unlock bootloader - Sony xperia X
 
In my flashing process (in Windows) I had to select USERDATA option under Wipe in Flashtool Firmware Selector.

Not sure if I got similar results as juiceme, when it was not selected. Anyway, flashing failed.

May be totally different problem, though.

Mazoon 2017-09-19 12:36

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by juiceme (Post 1534653)
bummer, not so easy :(

It seems that downloading the image is not possible from inside the Flashtool in the linux version, it requires an external windows binary "XperiFirm.exe"...

I tried flashing using the image found in @ExplIT's link (which seems to be "F5121_34.0.A.2.292_Customized DE" but either the image is noncomplete or there is something dizzy about my environment/setup, as Flasher fails for "no loader" and "no flash script" ...

Code:

root@tither:~/.flashTool# cat flashtool_2017-09-19_05-49-28.log
19/031/2017 17:31:23 - INFO  - <- This level is successfully initialized
19/031/2017 17:31:28 - INFO  - Flashtool Version 0.9.23.1 built on 11-01-2017 15:12:00
19/031/2017 17:31:28 - INFO  - libusb version 1.0.20
19/031/2017 17:31:28 - INFO  - Executing search strategies to find proxy selector
19/031/2017 17:31:28 - INFO  - No proxy found for gnome. Trying next one
19/031/2017 17:31:28 - INFO  - No proxy found for kde. Trying next one
19/031/2017 17:31:28 - INFO  - Proxy found for firefox
19/031/2017 17:31:29 - INFO  - Syncing devices from github
19/031/2017 17:31:29 - INFO  - Opening devices repository.
19/031/2017 17:31:30 - INFO  - Scanning devices folder for changes.
19/031/2017 17:31:41 - INFO  - Pulling changes from github.
19/031/2017 17:31:42 - INFO  - Quietly closing devices repository.
19/031/2017 17:31:42 - INFO  - Devices sync finished.
19/031/2017 17:31:42 - INFO  - Loading devices database
19/031/2017 17:31:42 - INFO  - Loaded 98 devices
19/031/2017 17:31:42 - INFO  - Starting phone detection
19/031/2017 17:31:45 - INFO  - Device disconnected
19/032/2017 17:32:07 - INFO  - Device connected in flash mode
19/032/2017 17:32:43 - INFO  - Selected Bundle for Sony Xperia X(F5121). FW release : 34.0.A.2.292. Customization : Customized DE
19/032/2017 17:32:43 - INFO  - Preparing files for flashing
19/035/2017 17:35:10 - INFO  - Please connect your device into flashmode.
19/035/2017 17:35:12 - INFO  - Opening device for R/W
19/035/2017 17:35:12 - INFO  - Device ready for R/W.
19/035/2017 17:35:12 - INFO  - Reading device information
19/035/2017 17:35:12 - INFO  - Phone ready for flashmode operations.
19/035/2017 17:35:12 - INFO  - Opening TA partition 2
19/035/2017 17:35:12 - INFO  - Current device : F5121 - CB512EV81U - 1302-4766_R2D - 1300-4911_34.3.A.0.194 - GENERIC_34.3.A.0.194
19/035/2017 17:35:12 - INFO  - Closing TA partition
19/035/2017 17:35:12 - INFO  - Start Flashing
19/035/2017 17:35:12 - INFO  - No loader in the bundle. Searching for one
19/035/2017 17:35:12 - INFO  - No matching loader found
19/035/2017 17:35:12 - WARN  - No loader found or set manually. Skipping loader
19/035/2017 17:35:12 - INFO  - Loader : S1_Root_d553 - Version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_N_160 / Boot version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_N_160 / Bootloader status : ROOTABLE
19/035/2017 17:35:12 - INFO  - Max packet size set to 4M
19/035/2017 17:35:12 - INFO  - USB buffer size set to 512K
19/035/2017 17:35:15 - INFO  - Parsing boot delivery
19/035/2017 17:35:15 - INFO  - No flash script found.
19/035/2017 17:35:15 - INFO  - Flash script is mandatory. Closing session
19/035/2017 17:35:15 - INFO  - Ending flash session
19/035/2017 17:35:15 - INFO  - Flashing finished.
19/035/2017 17:35:15 - INFO  - Please unplug and start your phone
19/035/2017 17:35:15 - INFO  - For flashtool, Unknown Sources and Debugging must be checked in phone settings
19/035/2017 17:35:16 - INFO  - Device connected in flash mode
19/036/2017 17:36:35 - INFO  - Device disconnected
root@tither:~/.flashTool#


F5121_34.0.A.2.301_R8A_Nordic Generic_1302-3140.ftf (edit: md5sum
6ea96ed801e6a8d3164f5280c84b17f4) worked for my unit from the recent Verkkokauppa.com sale, had to however allow debug, unknown sources and disable verification of stuff installed through USB ("Tarkista USBN:n kautta asennetut"), I think.
I think I downloaded the image from https://easy-firmware.com/home/brows...-info/id/58108 (maybe a legit image? or full of malware? doesn't matter, got the TA partition with it and will overwrite with SFOS)

jayki 2017-09-19 14:04

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by juiceme (Post 1534653)
bummer, not so easy :(

It seems that downloading the image is not possible from inside the Flashtool in the linux version, it requires an external windows binary "XperiFirm.exe"...

For me it works with installed "mono" Package, which can run the .exe. Don't know how to install Mono on other Distributions but in Archlinux it was just installing the mono package :)

mrsellout 2017-09-19 15:20

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by jayki (Post 1534666)
For me it works with installed "mono" Package, which can run the .exe. Don't know how to install Mono on other Distributions but in Archlinux it was just installing the mono package :)

You could also use the docker version ( https://hub.docker.com/_/mono/ ) if you don't want to keep mono on your system afterwards.

juiceme 2017-09-21 07:57

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by Mazoon (Post 1534656)
F5121_34.0.A.2.301_R8A_Nordic Generic_1302-3140.ftf (edit: md5sum
6ea96ed801e6a8d3164f5280c84b17f4) worked for my unit from the recent Verkkokauppa.com sale, had to however allow debug, unknown sources and disable verification of stuff installed through USB ("Tarkista USBN:n kautta asennetut"), I think.
I think I downloaded the image from https://easy-firmware.com/home/brows...-info/id/58108 (maybe a legit image? or full of malware? doesn't matter, got the TA partition with it and will overwrite with SFOS)

Thanks, downloaded that file but the same thing still haunts me.
Why does it say "No flash script found. / Flash script is mandatory. Closing session" ?

What's this flash script anyway, is it part of the SW package or is it something I am missing in the Flasher?

I am beginnig to think downgrading is impossible for me... probably I am going to just unlock the bootloader and care f**ck about the TA backup thingy :mad:

jurop88 2017-09-21 09:35

Re: How to unlock bootloader - Sony xperia X
 
What a 'flash script (.fsc)' is:
http://www.flashtool.net/fsccreate.php
Building one is 'close to impossible' for non-skilled person (I dug a bit about it with the USB logger with no success - I am not a skilled one :))
The downloaded image shall therefore have this .fsc file included. With XperiFirm I found a version with MM for my phone that included the flash script and flashed with no hassle back to Android 6.01 using that one (F5121_34.0.A.2.292_R4A_Customized IT)

juiceme 2017-09-21 12:27

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by jurop88 (Post 1534810)
What a 'flash script (.fsc)' is:
http://www.flashtool.net/fsccreate.php
Building one is 'close to impossible' for non-skilled person (I dug a bit about it with the USB logger with no success - I am not a skilled one :))
The downloaded image shall therefore have this .fsc file included. With XperiFirm I found a version with MM for my phone that included the flash script and flashed with no hassle back to Android 6.01 using that one (F5121_34.0.A.2.292_R4A_Customized IT)

Thanks, so I'd need to pull a flashscript for my device from a git repo somewhere?
(I assume these are device type specific, and not SW release specific, right?)

Any pointers where to get it?

nieldk 2017-09-21 17:20

Re: How to unlock bootloader - Sony xperia X
 
Quote:

Originally Posted by juiceme (Post 1534816)
Thanks, so I'd need to pull a flashscript for my device from a git repo somewhere?
(I assume these are device type specific, and not SW release specific, right?)

Any pointers where to get it?

I suggest using flashtool, it will create the file for you.
It may need modifications, but probably the best starting point.


All times are GMT. The time now is 06:00.

vBulletin® Version 3.8.8