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)

nieldk 2017-09-26 16:04

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

Originally Posted by juiceme (Post 1535206)
I wonder if whether it works correctly, fails alltogether to flash or goes to brickloop depends also on the variant existing on the device?

Using the "Xperia Companion" is a no-no since it is a windoze tool.

---------- edit ----------

I kind of thought the whole point of flashing a device that has a locked bootloader is to do it so that only official Sony-signed images can be flashed... so either it flashes or not but is impossible to brick...??

Not impossible to brick, that’s for sure.
I see ppl mentioning setting “wipe all”, that’s usually not necessary. Not entirely sure if that’s the issue, but it very well could be.
It might, more likely, be differences in hw revisions . Slight changes in design or even different chipsets.
I think it’s important feedback for the porters, and really suggest to join IRC channel to involve the porters. And Jolla.

mousse04 2017-09-26 18:22

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

Originally Posted by juiceme (Post 1535206)
I wonder if whether it works correctly, fails alltogether to flash or goes to brickloop depends also on the variant existing on the device?

Using the "Xperia Companion" is a no-no since it is a windoze tool.

---------- edit ----------

I kind of thought the whole point of flashing a device that has a locked bootloader is to do it so that only official Sony-signed images can be flashed... so either it flashes or not but is impossible to brick...??

Actually you cannot brick this device as we have a tool to flash in flash mode which is almost the nothing mode :)

@juicme, @ajalkane One trial (because I remember that I had same problem than you to flash stock MM (problem of flash script), but cannot remember how I fix it)

In flash mode, before launching the flashtool (so, flashtool is closed), could you do a ./adb devices in order to start daemon

So, you should get :
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

Then, try to flash an image.

FYI, try again the image I provided (not the upload, the one I've uploaded) and it works fine

mrsellout 2017-09-26 18:48

Re: How to unlock bootloader - Sony xperia X
 
FWIW, I couldn't run the backup script on machines running Arch and Manjaro (an Arch based distro), but was successful on a PC running MX linux (Debian base).

The phone would keep asking what type of usb connection is required (charging, mtp, or midi), and selecting mtp would prompt it to ask again, and again.

ajalkane 2017-09-28 17:29

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

Originally Posted by mousse04 (Post 1535233)
In flash mode, before launching the flashtool (so, flashtool is closed), could you do a ./adb devices in order to start daemon

Same results, unfortunately. I'm going to bite the bullet with chagrin and try Sony's official flasher on Windows, as it seems that's what will be required anyway for flashing Sailfish.

nieldk 2017-09-28 17:47

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

Originally Posted by ajalkane (Post 1535406)
Same results, unfortunately. I'm going to bite the bullet with chagrin and try Sony's official flasher on Windows, as it seems that's what will be required anyway for flashing Sailfish.

Could you post the log from trying flashtool?

ajalkane 2017-09-28 18:27

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

Originally Posted by nieldk (Post 1535407)
Could you post the log from trying flashtool?

Sure, here's the logs when I flashed Mousse04's image:

Code:

28/021/2017 21:21:03 - INFO  - Device connected in flash mode
28/021/2017 21:21:23 - INFO  - Selected Bundle for Sony Xperia X(F5121). FW release : 4.0.A.2.301_R8A. Customization : Customized TW
28/021/2017 21:21:23 - INFO  - Preparing files for flashing
28/021/2017 21:21:48 - INFO  - Please connect your device into flashmode.
28/021/2017 21:21:49 - INFO  - Opening device for R/W
28/021/2017 21:21:49 - INFO  - Device ready for R/W.
28/021/2017 21:21:49 - INFO  - Reading device information
28/021/2017 21:21:49 - INFO  - Phone ready for flashmode operations.
28/021/2017 21:21:49 - INFO  - Opening TA partition 2
28/021/2017 21:21:49 - INFO  - Current device : F5121 - CB512EFM5U - 1302-4771_R8A - 1300-4911_34.0.A.2.301 - GENERIC_34.0.A.2.301
28/021/2017 21:21:49 - INFO  - Closing TA partition
28/021/2017 21:21:49 - INFO  - Start Flashing
28/021/2017 21:21:49 - INFO  - No loader in the bundle. Searching for one
28/021/2017 21:21:49 - INFO  - No matching loader found
28/021/2017 21:21:49 - WARN  - No loader found or set manually. Skipping loader
28/021/2017 21:21:49 - INFO  - Loader : S1_Root_d553 - Version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_73 / Boot version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_73 / Bootloader status : ROOTABLE
28/021/2017 21:21:49 - INFO  - Max packet size set to 4M
28/021/2017 21:21:49 - INFO  - USB buffer size set to 512K
28/021/2017 21:21:50 - INFO  - Parsing boot delivery
28/021/2017 21:21:52 - INFO  - Found a template session. Using it : /home/arto/.flashTool/firmwares/prepared/F5121_4.0.A.2.301.fsc
28/021/2017 21:21:52 - INFO  - Set loader configuration : [00 01 00 00 00 0C]
28/021/2017 21:21:52 - INFO  - Opening TA partition 2
28/021/2017 21:21:52 - INFO  - Writing TA unit 00002774. Value : 01
28/021/2017 21:21:52 - INFO  - Closing TA partition
28/021/2017 21:21:55 - INFO  - Processing partition.sin
28/021/2017 21:21:55 - INFO  -    Checking header
28/021/2017 21:21:55 - INFO  -    Flashing data
28/021/2017 21:21:55 - INFO  - Opening TA partition 2
28/021/2017 21:21:55 - INFO  - Processing cmnlib_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:55 - INFO  -    Checking header
28/021/2017 21:21:55 - INFO  -    Flashing data
28/021/2017 21:21:55 - INFO  - Processing emmc_appsboot_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID09-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:55 - INFO  -    Checking header
28/021/2017 21:21:55 - INFO  -    Flashing data
28/021/2017 21:21:55 - INFO  - Processing hyp_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID15-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:55 - INFO  -    Checking header
28/021/2017 21:21:55 - INFO  -    Flashing data
28/021/2017 21:21:55 - INFO  - Processing keymaster_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:55 - INFO  -    Checking header
28/021/2017 21:21:55 - INFO  -    Flashing data
28/021/2017 21:21:56 - INFO  - Processing rpm_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID0A-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:56 - INFO  -    Checking header
28/021/2017 21:21:56 - INFO  -    Flashing data
28/021/2017 21:21:56 - INFO  - Processing s1sbl_S1_Boot_MSM8956_LA1_0_1_73_AID_4_S1-BOOT-LIVE-D553-0004-ELF_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:56 - INFO  -    Checking header
28/021/2017 21:21:56 - INFO  -    Flashing data
28/021/2017 21:21:57 - INFO  - Processing sbl1_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID00-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:57 - INFO  -    Checking header
28/021/2017 21:21:57 - INFO  -    Flashing data
28/021/2017 21:21:57 - INFO  - Closing TA partition
28/021/2017 21:21:57 - INFO  - Opening TA partition 2
28/021/2017 21:21:57 - INFO  - Writing TA unit 0000084F. Value : 1A CE 33 00 01 00 08 03 00 02 04 02 05 00 02 02 80 00 10 05 00 01 02 71 00 00 05 00 04 82 82 00 10 02 00 04 85 05 00 03 02 82 00 10 05 00 05 82 71 00 00 02 00 05 85 12 00 02 00 A9 09 BE BA A9 09 00 00 B3 08 BE BA B3 08 00 00 04 00 03 00 02 00 04 00 04 00 B0 04 0E 00 06 00 B8 0B 01 4B 00 00 00 03 96 00 2C 01 03 00 09 00 01
28/021/2017 21:21:57 - INFO  - Writing TA unit 000008FD. Value : 00
28/021/2017 21:21:57 - INFO  - Closing TA partition
28/021/2017 21:21:57 - INFO  - Opening TA partition 2
28/021/2017 21:21:57 - INFO  - Processing tzs1attest_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:57 - INFO  -    Checking header
28/021/2017 21:21:57 - INFO  -    Flashing data
28/021/2017 21:21:57 - INFO  - Processing tz_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID07-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:57 - INFO  -    Checking header
28/021/2017 21:21:57 - INFO  -    Flashing data
28/021/2017 21:21:58 - INFO  - Processing tzs1sbl_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:58 - INFO  -    Checking header
28/021/2017 21:21:58 - INFO  -    Flashing data
28/021/2017 21:21:58 - INFO  - Closing TA partition
28/021/2017 21:21:58 - INFO  - Opening TA partition 2
28/021/2017 21:21:58 - INFO  - Processing apps_log.sin
28/021/2017 21:21:58 - INFO  -    Checking header
28/021/2017 21:21:58 - INFO  -    Flashing data
28/022/2017 21:22:00 - INFO  - Processing diag.sin
28/022/2017 21:22:00 - INFO  -    Checking header
28/022/2017 21:22:00 - INFO  -    Flashing data
28/022/2017 21:22:00 - WARN  - ssd is excluded from bundle
28/022/2017 21:22:00 - INFO  - Processing adspso.sin
28/022/2017 21:22:00 - INFO  -    Checking header
28/022/2017 21:22:00 - INFO  -    Flashing data
28/022/2017 21:22:01 - INFO  - Processing cache.sin
28/022/2017 21:22:01 - INFO  -    Checking header
28/022/2017 21:22:01 - INFO  -    Flashing data
28/022/2017 21:22:01 - INFO  - Processing modem.sin
28/022/2017 21:22:01 - INFO  -    Checking header
28/022/2017 21:22:01 - INFO  -    Flashing data
28/022/2017 21:22:04 - INFO  - Processing Qnovo.sin
28/022/2017 21:22:04 - INFO  -    Checking header
28/022/2017 21:22:04 - INFO  -    Flashing data
28/022/2017 21:22:05 - INFO  - Processing amss_fs_1.sin
28/022/2017 21:22:05 - INFO  -    Checking header
28/022/2017 21:22:05 - INFO  -    Flashing data
28/022/2017 21:22:06 - INFO  - Processing amss_fs_2.sin
28/022/2017 21:22:06 - INFO  -    Checking header
28/022/2017 21:22:06 - INFO  -    Flashing data
28/022/2017 21:22:06 - INFO  - Processing amss_fsg.sin
28/022/2017 21:22:06 - INFO  -    Checking header
28/022/2017 21:22:06 - INFO  -    Flashing data
28/022/2017 21:22:06 - INFO  - Processing persist.sin
28/022/2017 21:22:06 - INFO  -    Checking header
28/022/2017 21:22:06 - INFO  -    Flashing data
28/022/2017 21:22:06 - INFO  - Processing kernel.sin
28/022/2017 21:22:06 - INFO  -    Checking header
28/022/2017 21:22:06 - INFO  -    Flashing data
28/022/2017 21:22:09 - INFO  - Processing fotakernel.sin
28/022/2017 21:22:09 - INFO  -    Checking header
28/022/2017 21:22:09 - INFO  -    Flashing data
28/022/2017 21:22:25 - INFO  - Processing ramdump.sin
28/022/2017 21:22:25 - INFO  -    Checking header
28/022/2017 21:22:25 - INFO  -    Flashing data
28/022/2017 21:22:27 - INFO  - Processing system.sin
28/022/2017 21:22:27 - INFO  -    Checking header
28/022/2017 21:22:27 - INFO  -    Flashing data
28/026/2017 21:26:04 - INFO  - Closing TA partition
28/026/2017 21:26:04 - INFO  - Opening TA partition 2
28/026/2017 21:26:04 - INFO  - Processing oem.sin
28/026/2017 21:26:04 - INFO  -    Checking header
28/026/2017 21:26:04 - INFO  -    Flashing data
28/026/2017 21:26:09 - WARN  - userdata is excluded from bundle
28/026/2017 21:26:09 - INFO  - Closing TA partition
28/026/2017 21:26:09 - INFO  - Opening TA partition 2
28/026/2017 21:26:09 - INFO  - Writing TA unit 000008A4. Value : 00 00 00 00 00 00 00 00 00 00 00 00 00 00
28/026/2017 21:26:09 - INFO  - Closing TA partition
28/026/2017 21:26:10 - INFO  - Opening TA partition 2
28/026/2017 21:26:10 - INFO  - Writing TA unit 00000964. Value : 00
28/026/2017 21:26:10 - INFO  - Closing TA partition
28/026/2017 21:26:10 - INFO  - Opening TA partition 2
28/026/2017 21:26:10 - INFO  - Writing TA unit 00000907. Value : 00
28/026/2017 21:26:10 - INFO  - Closing TA partition
28/026/2017 21:26:10 - INFO  - Opening TA partition 2
28/026/2017 21:26:10 - INFO  - Writing TA unit 0000091A. Value : 00
28/026/2017 21:26:10 - INFO  - Closing TA partition
28/026/2017 21:26:10 - INFO  - Opening TA partition 2
28/026/2017 21:26:10 - INFO  - Writing TA unit 000009F6. Value : 01
28/026/2017 21:26:10 - INFO  - Closing TA partition
28/026/2017 21:26:11 - INFO  - Opening TA partition 2
28/026/2017 21:26:11 - INFO  - Writing TA unit 000009F9. Value : 76 69 72 67 69 6E 2C 6E 6F 74 69 6D 65 73 74 61 6D 70 00
28/026/2017 21:26:11 - INFO  - Closing TA partition
28/026/2017 21:26:11 - INFO  - Opening TA partition 2
28/026/2017 21:26:11 - INFO  - Processing elabel.sin
28/026/2017 21:26:11 - INFO  -    Checking header
28/026/2017 21:26:11 - INFO  -    Flashing data
28/026/2017 21:26:12 - INFO  - Closing TA partition
28/026/2017 21:26:12 - INFO  - Opening TA partition 2
28/026/2017 21:26:12 - INFO  - Writing TA unit 00002725. Value : 32 30 31 37 2D 30 39 2D 32 38 20 32 31 3A 32 36 3A 31 32 00
28/026/2017 21:26:12 - INFO  - Writing TA unit 00002774. Value : 00
28/026/2017 21:26:12 - INFO  - Closing TA partition
28/026/2017 21:26:12 - INFO  - Ending flash session
28/026/2017 21:26:12 - INFO  - Flashing finished.
28/026/2017 21:26:12 - INFO  - Please unplug and start your phone
28/026/2017 21:26:12 - INFO  - For flashtool, Unknown Sources and Debugging must be checked in phone settings


mousse04 2017-09-28 18:33

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

Originally Posted by ajalkane (Post 1535408)
Sure, here's the logs when I flashed Mousse04's image:

Code:

28/021/2017 21:21:03 - INFO  - Device connected in flash mode
28/021/2017 21:21:23 - INFO  - Selected Bundle for Sony Xperia X(F5121). FW release : 4.0.A.2.301_R8A. Customization : Customized TW
28/021/2017 21:21:23 - INFO  - Preparing files for flashing
28/021/2017 21:21:48 - INFO  - Please connect your device into flashmode.
28/021/2017 21:21:49 - INFO  - Opening device for R/W
28/021/2017 21:21:49 - INFO  - Device ready for R/W.
28/021/2017 21:21:49 - INFO  - Reading device information
28/021/2017 21:21:49 - INFO  - Phone ready for flashmode operations.
28/021/2017 21:21:49 - INFO  - Opening TA partition 2
28/021/2017 21:21:49 - INFO  - Current device : F5121 - CB512EFM5U - 1302-4771_R8A - 1300-4911_34.0.A.2.301 - GENERIC_34.0.A.2.301
28/021/2017 21:21:49 - INFO  - Closing TA partition
28/021/2017 21:21:49 - INFO  - Start Flashing
28/021/2017 21:21:49 - INFO  - No loader in the bundle. Searching for one
28/021/2017 21:21:49 - INFO  - No matching loader found
28/021/2017 21:21:49 - WARN  - No loader found or set manually. Skipping loader
28/021/2017 21:21:49 - INFO  - Loader : S1_Root_d553 - Version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_73 / Boot version : 1299-4841_S1_Boot_MSM8956_LA1.0.1_73 / Bootloader status : ROOTABLE
28/021/2017 21:21:49 - INFO  - Max packet size set to 4M
28/021/2017 21:21:49 - INFO  - USB buffer size set to 512K
28/021/2017 21:21:50 - INFO  - Parsing boot delivery
28/021/2017 21:21:52 - INFO  - Found a template session. Using it : /home/arto/.flashTool/firmwares/prepared/F5121_4.0.A.2.301.fsc
28/021/2017 21:21:52 - INFO  - Set loader configuration : [00 01 00 00 00 0C]
28/021/2017 21:21:52 - INFO  - Opening TA partition 2
28/021/2017 21:21:52 - INFO  - Writing TA unit 00002774. Value : 01
28/021/2017 21:21:52 - INFO  - Closing TA partition
28/021/2017 21:21:55 - INFO  - Processing partition.sin
28/021/2017 21:21:55 - INFO  -    Checking header
28/021/2017 21:21:55 - INFO  -    Flashing data
28/021/2017 21:21:55 - INFO  - Opening TA partition 2
28/021/2017 21:21:55 - INFO  - Processing cmnlib_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:55 - INFO  -    Checking header
28/021/2017 21:21:55 - INFO  -    Flashing data
28/021/2017 21:21:55 - INFO  - Processing emmc_appsboot_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID09-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:55 - INFO  -    Checking header
28/021/2017 21:21:55 - INFO  -    Flashing data
28/021/2017 21:21:55 - INFO  - Processing hyp_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID15-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:55 - INFO  -    Checking header
28/021/2017 21:21:55 - INFO  -    Flashing data
28/021/2017 21:21:55 - INFO  - Processing keymaster_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:55 - INFO  -    Checking header
28/021/2017 21:21:55 - INFO  -    Flashing data
28/021/2017 21:21:56 - INFO  - Processing rpm_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID0A-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:56 - INFO  -    Checking header
28/021/2017 21:21:56 - INFO  -    Flashing data
28/021/2017 21:21:56 - INFO  - Processing s1sbl_S1_Boot_MSM8956_LA1_0_1_73_AID_4_S1-BOOT-LIVE-D553-0004-ELF_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:56 - INFO  -    Checking header
28/021/2017 21:21:56 - INFO  -    Flashing data
28/021/2017 21:21:57 - INFO  - Processing sbl1_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID00-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:57 - INFO  -    Checking header
28/021/2017 21:21:57 - INFO  -    Flashing data
28/021/2017 21:21:57 - INFO  - Closing TA partition
28/021/2017 21:21:57 - INFO  - Opening TA partition 2
28/021/2017 21:21:57 - INFO  - Writing TA unit 0000084F. Value : 1A CE 33 00 01 00 08 03 00 02 04 02 05 00 02 02 80 00 10 05 00 01 02 71 00 00 05 00 04 82 82 00 10 02 00 04 85 05 00 03 02 82 00 10 05 00 05 82 71 00 00 02 00 05 85 12 00 02 00 A9 09 BE BA A9 09 00 00 B3 08 BE BA B3 08 00 00 04 00 03 00 02 00 04 00 04 00 B0 04 0E 00 06 00 B8 0B 01 4B 00 00 00 03 96 00 2C 01 03 00 09 00 01
28/021/2017 21:21:57 - INFO  - Writing TA unit 000008FD. Value : 00
28/021/2017 21:21:57 - INFO  - Closing TA partition
28/021/2017 21:21:57 - INFO  - Opening TA partition 2
28/021/2017 21:21:57 - INFO  - Processing tzs1attest_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:57 - INFO  -    Checking header
28/021/2017 21:21:57 - INFO  -    Flashing data
28/021/2017 21:21:57 - INFO  - Processing tz_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID07-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:57 - INFO  -    Checking header
28/021/2017 21:21:57 - INFO  -    Flashing data
28/021/2017 21:21:58 - INFO  - Processing tzs1sbl_S1_Boot_MSM8956_LA1_0_1_73_AID_4_PLATFORM-LOIRE-COM-LIVE-HWID009B00E1-SWID0C-APPID01-OEM1-AID4-DEBUG00_S1-BOOT-LIVE-D553-0004-MMC.sin
28/021/2017 21:21:58 - INFO  -    Checking header
28/021/2017 21:21:58 - INFO  -    Flashing data
28/021/2017 21:21:58 - INFO  - Closing TA partition
28/021/2017 21:21:58 - INFO  - Opening TA partition 2
28/021/2017 21:21:58 - INFO  - Processing apps_log.sin
28/021/2017 21:21:58 - INFO  -    Checking header
28/021/2017 21:21:58 - INFO  -    Flashing data
28/022/2017 21:22:00 - INFO  - Processing diag.sin
28/022/2017 21:22:00 - INFO  -    Checking header
28/022/2017 21:22:00 - INFO  -    Flashing data
28/022/2017 21:22:00 - WARN  - ssd is excluded from bundle
28/022/2017 21:22:00 - INFO  - Processing adspso.sin
28/022/2017 21:22:00 - INFO  -    Checking header
28/022/2017 21:22:00 - INFO  -    Flashing data
28/022/2017 21:22:01 - INFO  - Processing cache.sin
28/022/2017 21:22:01 - INFO  -    Checking header
28/022/2017 21:22:01 - INFO  -    Flashing data
28/022/2017 21:22:01 - INFO  - Processing modem.sin
28/022/2017 21:22:01 - INFO  -    Checking header
28/022/2017 21:22:01 - INFO  -    Flashing data
28/022/2017 21:22:04 - INFO  - Processing Qnovo.sin
28/022/2017 21:22:04 - INFO  -    Checking header
28/022/2017 21:22:04 - INFO  -    Flashing data
28/022/2017 21:22:05 - INFO  - Processing amss_fs_1.sin
28/022/2017 21:22:05 - INFO  -    Checking header
28/022/2017 21:22:05 - INFO  -    Flashing data
28/022/2017 21:22:06 - INFO  - Processing amss_fs_2.sin
28/022/2017 21:22:06 - INFO  -    Checking header
28/022/2017 21:22:06 - INFO  -    Flashing data
28/022/2017 21:22:06 - INFO  - Processing amss_fsg.sin
28/022/2017 21:22:06 - INFO  -    Checking header
28/022/2017 21:22:06 - INFO  -    Flashing data
28/022/2017 21:22:06 - INFO  - Processing persist.sin
28/022/2017 21:22:06 - INFO  -    Checking header
28/022/2017 21:22:06 - INFO  -    Flashing data
28/022/2017 21:22:06 - INFO  - Processing kernel.sin
28/022/2017 21:22:06 - INFO  -    Checking header
28/022/2017 21:22:06 - INFO  -    Flashing data
28/022/2017 21:22:09 - INFO  - Processing fotakernel.sin
28/022/2017 21:22:09 - INFO  -    Checking header
28/022/2017 21:22:09 - INFO  -    Flashing data
28/022/2017 21:22:25 - INFO  - Processing ramdump.sin
28/022/2017 21:22:25 - INFO  -    Checking header
28/022/2017 21:22:25 - INFO  -    Flashing data
28/022/2017 21:22:27 - INFO  - Processing system.sin
28/022/2017 21:22:27 - INFO  -    Checking header
28/022/2017 21:22:27 - INFO  -    Flashing data
28/026/2017 21:26:04 - INFO  - Closing TA partition
28/026/2017 21:26:04 - INFO  - Opening TA partition 2
28/026/2017 21:26:04 - INFO  - Processing oem.sin
28/026/2017 21:26:04 - INFO  -    Checking header
28/026/2017 21:26:04 - INFO  -    Flashing data
28/026/2017 21:26:09 - WARN  - userdata is excluded from bundle
28/026/2017 21:26:09 - INFO  - Closing TA partition
28/026/2017 21:26:09 - INFO  - Opening TA partition 2
28/026/2017 21:26:09 - INFO  - Writing TA unit 000008A4. Value : 00 00 00 00 00 00 00 00 00 00 00 00 00 00
28/026/2017 21:26:09 - INFO  - Closing TA partition
28/026/2017 21:26:10 - INFO  - Opening TA partition 2
28/026/2017 21:26:10 - INFO  - Writing TA unit 00000964. Value : 00
28/026/2017 21:26:10 - INFO  - Closing TA partition
28/026/2017 21:26:10 - INFO  - Opening TA partition 2
28/026/2017 21:26:10 - INFO  - Writing TA unit 00000907. Value : 00
28/026/2017 21:26:10 - INFO  - Closing TA partition
28/026/2017 21:26:10 - INFO  - Opening TA partition 2
28/026/2017 21:26:10 - INFO  - Writing TA unit 0000091A. Value : 00
28/026/2017 21:26:10 - INFO  - Closing TA partition
28/026/2017 21:26:10 - INFO  - Opening TA partition 2
28/026/2017 21:26:10 - INFO  - Writing TA unit 000009F6. Value : 01
28/026/2017 21:26:10 - INFO  - Closing TA partition
28/026/2017 21:26:11 - INFO  - Opening TA partition 2
28/026/2017 21:26:11 - INFO  - Writing TA unit 000009F9. Value : 76 69 72 67 69 6E 2C 6E 6F 74 69 6D 65 73 74 61 6D 70 00
28/026/2017 21:26:11 - INFO  - Closing TA partition
28/026/2017 21:26:11 - INFO  - Opening TA partition 2
28/026/2017 21:26:11 - INFO  - Processing elabel.sin
28/026/2017 21:26:11 - INFO  -    Checking header
28/026/2017 21:26:11 - INFO  -    Flashing data
28/026/2017 21:26:12 - INFO  - Closing TA partition
28/026/2017 21:26:12 - INFO  - Opening TA partition 2
28/026/2017 21:26:12 - INFO  - Writing TA unit 00002725. Value : 32 30 31 37 2D 30 39 2D 32 38 20 32 31 3A 32 36 3A 31 32 00
28/026/2017 21:26:12 - INFO  - Writing TA unit 00002774. Value : 00
28/026/2017 21:26:12 - INFO  - Closing TA partition
28/026/2017 21:26:12 - INFO  - Ending flash session
28/026/2017 21:26:12 - INFO  - Flashing finished.
28/026/2017 21:26:12 - INFO  - Please unplug and start your phone
28/026/2017 21:26:12 - INFO  - For flashtool, Unknown Sources and Debugging must be checked in phone settings


strange, it looks to work fine ...

And at the end, your device is still with Nougat? Why are you saying it doesn't work ?

ajalkane 2017-09-28 18:53

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

Originally Posted by mousse04 (Post 1535410)
strange, it looks to work fine ...

And at the end, your device is still with Nougat? Why are you saying it doesn't work ?

No, I'm pretty sure it's with MM. It's just that it boots, gives a distorted Xperia image after about 10 seconds, and reboots again. Bootlooping forever.

mousse04 2017-09-28 19:00

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

Originally Posted by ajalkane (Post 1535413)
No, I'm pretty sure it's with MM. It's just that it boots, gives a distorted Xperia image after about 10 seconds, and reboots again. Bootlooping forever.

ok and is it the good xperia X version?

ajalkane 2017-09-28 19:02

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

Originally Posted by mousse04 (Post 1535414)
ok and is it the good xperia X version?

This is bog standard Xperia X. On the box it says F5121 Graphite Black, SI 1302-9422 Rev 4.

ajalkane 2017-09-28 19:07

Re: How to unlock bootloader - Sony xperia X
 
I just did the flashing in Windows with Mousse04 image and apparently the result is a working phone. Too bad the phone speaks now chinese or something like that which makes using it a bit problematic :D.

However, this points to my linux setup being the culprit. I'm using Ubuntu 16.04 with adb and fastboot installed from the official repositories. Maybe they're outdated and are the reason for the failure?

Heik 2017-09-28 19:16

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

Originally Posted by ajalkane (Post 1535413)
No, I'm pretty sure it's with MM. It's just that it boots, gives a distorted Xperia image after about 10 seconds, and reboots again. Bootlooping forever.

That was exactly what my Xperia X did after flashing, if USERDATA was not wiped.

ajalkane 2017-09-28 19:18

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

Originally Posted by Heik (Post 1535418)
That was exactly what my Xperia X did after flashing, if USERDATA was not wiped.

I did click all wipe options.

nieldk 2017-09-28 19:28

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

Originally Posted by ajalkane (Post 1535419)
I did click all wipe options.

I don't think you should wipe all,
Just wipe user data.
By wiping all, I think you delete data that SFOS Needs (drivers that it depends on from Android, like WiFi and more)

Flashing went well from your log output.

ajalkane 2017-09-28 19:36

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

Originally Posted by nieldk (Post 1535421)
I don't think you should wipe all,
Just wipe user data.
By wiping all, I think you delete data that SFOS Needs (drivers that it depends on from Android, like WiFi and more)

But wouldn't flashing the new Android image anyway install all those drivers?

mousse04 2017-09-28 19:42

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

Originally Posted by ajalkane (Post 1535417)
I just did the flashing in Windows with Mousse04 image and apparently the result is a working phone. Too bad the phone speaks now chinese or something like that which makes using it a bit problematic :D.

However, this points to my linux setup being the culprit. I'm using Ubuntu 16.04 with adb and fastboot installed from the official repositories. Maybe they're outdated and are the reason for the failure?

strange. Mine got all languages

mousse04 2017-09-28 19:43

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

Originally Posted by nieldk (Post 1535421)
I don't think you should wipe all,
Just wipe user data.
By wiping all, I think you delete data that SFOS Needs (drivers that it depends on from Android, like WiFi and more)

Flashing went well from your log output.

Good point. I also wiped only userdata.

I would say rather that : as the .fsc script is not perfectly up to date, ar aligned with the image, maybe by wiping everything, you wiped something which is not flashed by the script ....

ajalkane 2017-09-28 20:02

Re: How to unlock bootloader - Sony xperia X
 
I finally managed to accidentally click on some chinese scribbling that presented me with language selection. So I'm now able to use the phone and hopefully try to recover the DRM keys.

Thank you all for the help! For now it remains a mystery to me why I couldn't flash successfully with linux, but that it was at the end a success is most important. And a word of encouragement to others with my predicatement, it was much less a laborous process to do it under Windows than I was afraid of. Unlike many guides said, I did not have to install any drivers etc. Just download FlashTool and feed the image to it.

mousse04 2017-09-28 20:06

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

Originally Posted by ajalkane (Post 1535425)
I finally managed to accidentally click on some chinese scribbling that presented me with language selection. So I'm now able to use the phone and hopefully try to recover the DRM keys.

Thank you all for the help! For now it remains a mystery to me why I couldn't flash successfully with linux, but that it was at the end a success is most important. And a word of encouragement to others with my predicatement, it was much less a laborous process to do it under Windows than I was afraid of. Unlike many guides said, I did not have to install any drivers etc. Just download FlashTool and feed the image to it.

got the same problem ... but was luckier ;)

Edit: Anyway, good news. Now, let's help @juiceme :)

ajalkane 2017-09-28 20:49

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

Originally Posted by mousse04 (Post 1535426)
Edit: Anyway, good news. Now, let's help @juiceme :)

My advice to juiceme: if you have troubles with this inside linux, then despite the mental horror, boot into Windows or loan a friend's Windows machine for fifteen minutes. I spent several evenings trying these tools within Linux. Once I swallowed my pride, it was only a matter of 15 minutes until I had successfully downgraded the phone.

At least under Windows 10 I didn't have to download any drivers, just have Mousse04 image on USB stick and download Flashtool. Easy peasy. The DRM backup software seemed to work well within linux after flashing MM.

mousse04 2017-09-28 20:54

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

Originally Posted by ajalkane (Post 1535430)
My advice to juiceme: if you have troubles with this inside linux, then despite the mental horror, boot into Windows or loan a friend's Windows machine for fifteen minutes. I spent several evenings trying these tools within Linux. Once I swallowed my pride, it was only a matter of 15 minutes until I had successfully downgraded the phone.

At least under Windows 10 I didn't have to download any drivers, just have Mousse04 image on USB stick and download Flashtool. Easy peasy. The DRM backup software seemed to work well within linux after flashing MM.

Yes the DRM and SailfishOS stuffs are easy after this fu... downgrade :)

richie 2017-10-02 20:27

Re: How to unlock bootloader - Sony xperia X
 
Hi

If you used flashtool, where did you get it from?

I tried downloading from http://www.flashtool.net/downloads.php

and the md5sum doesn't match for either the Linux or Windows versions, e.g.

Windows md5 sum on website is E06829037E0F1291BC53E45B012D6FDF

but on the file downloaded it is
ceab49b14bf84eacf8ce0202e2498b5e flashtool-0.9.23.1-windows.exe

Linux md5 sum on website is
3C70AF72F9B9E45C195F9192409E0C0F

but on the file downloaded it is
a68d331f710b78f7eaf4350e70d3e693 flashtool-0.9.23.1-linux.tar.7z

md5sum's on 0.9.23.1 before patch 0.9.23.2

Has anyone got a version with the matching md5 sum?

Rich

jenix 2017-10-05 16:08

Re: How to unlock bootloader - Sony xperia X
 
bummer. So I received my Xperia X F5121 from Amazon today and of course wanted to flash the community image right away. I did the TA backup and wanted to unlock the bootloader. As described in the guide, I went to check the status in the service menu and there it says under "Confguration": "Bootloader unlock allowed: No". The way I understand it, it's not possible to unlock the bootloader and flash SFOS, right?
This really puzzles me, since it is a full priced retail version. Is there a possibility to unlock the bootloader that I'm missing (like flashing another ROM first) or do I have to return the phone?

ljo 2017-10-05 16:25

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

Originally Posted by jenix (Post 1535929)
bummer. So I received my Xperia X F5121 from Amazon today and of course wanted to flash the community image right away.

I did not care about any DRM stuff.
But I found it being a real lockin procedure since it was impossible to unlock the bootloader unless I
* actually started the phone (not only vol-up start),
* set up the android,
* enabled developer mode by clicking 7-8 times on the build item in the about/system in settings section, and
* then checked the then appeared "allow bootloader unlock" as the last step.

Not sure if it will help you or fit your situation, but to me this was a completely wasteful step of an hour or so. They claim it is for protecting active installations that you cannot allow direct flash of phones in use, but it was no active installation (and never used before) since I had to actually set it up and avoid installing and configuring phone-home features etc ... I only wanted to unlock and flash.
The good part of it was that it took two minutes flat to flash the image until booting SailfishOS after the bootloader unlock (which took only a fraction of a second). :)

Cheers,

lantern 2017-10-05 16:35

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

Originally Posted by jenix (Post 1535929)
bummer. So I received my Xperia X F5121 from Amazon today and of course wanted to flash the community image right away. I did the TA backup and wanted to unlock the bootloader. As described in the guide, I went to check the status in the service menu and there it says under "Confguration": "Bootloader unlock allowed: No".

That is not a usual retail version, for sure. Return it :(

jenix 2017-10-05 16:39

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

Originally Posted by ljo (Post 1535930)
I did not care about any DRM stuff.
But I found it being a real lockin procedure since it was impossible to unlock the bootloader unless I
* actually started the phone (not only vol-up start),
* set up the android,
* enabled developer mode by clicking 7-8 times on the build item in the about/system in settings section, and
* then checked the then appeared "allow bootloader unlock" as the last step.

Thanks for your reply. That's exactly what I did as well: Started up Android, skipped through the initial Android setup, enabled Developer mode and then checked the Service menu for the bootloader unlock (which states "No" in my case).
So I guess I'll have to send it back and look for another source.

ljo 2017-10-05 16:58

Re: How to unlock bootloader - Sony xperia X
 
Not sure about service menu. Sounds like you did not do the last step. I am pretty sure the allow bootloader unlock option was in the settings section. I swithed it from no to yes and then shut down the phone.

jenix 2017-10-05 17:08

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

Originally Posted by lantern (Post 1535931)
That is not a usual retail version, for sure. Return it :(

Sure seems like it. It also has a strange model number on the box. Most shops list the black Xperia X F5121 as Model 1302-9401 or 1302-8005, mine is "1302-5472 Rev 3".
Maybe we should start a list which model number can be unlocked and which one can't?

lantern 2017-10-05 17:20

Re: How to unlock bootloader - Sony xperia X
 
No need. You just got an operator model. Maybe it was "refurbished" by some dishonest seller.

mariusmssj 2017-10-06 07:50

Re: How to unlock bootloader - Sony xperia X
 
Got my Xperia X (F5122 dual sim) and found out it's running 7.1.1 :( tried looking for a marshmallow firmware for it but couldn't find anything :(

What are the DRM keys for? It is purely for warranty and being able to restore phone to it's previous android state?

jakibaki 2017-10-06 08:00

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

Originally Posted by mariusmssj (Post 1535963)
Got my Xperia X (F5122 dual sim) and found out it's running 7.1.1 :( tried looking for a marshmallow firmware for it but couldn't find anything :(

What are the DRM keys for? It is purely for warranty and being able to restore phone to it's previous android state?

Flashing the F5121 firmware could work (at least with custom roms it only has no dual-sim support so it could be enough to backup the keys).

The drm-keys unlock some functionality on android but won't be needed at all on Sailfish OS or custom android roms (there are drm-fixed-kernels available for custom roms which restore those features).

In many places (eu afaik so you'll be fine until brexit is done :p) they aren't even needed to "restore" warranty since wiping the warranty by unlocking your bootloader is not allowed there.

So unless you're going to sell the phone or you plan on ever running stock rom on it again you don't need to backup your drm-keys (can't hurt though).

mariusmssj 2017-10-06 08:06

Re: How to unlock bootloader - Sony xperia X
 
Thanks jakibaki, I have no intention of using android or going back to it. I thought that Jolla might need the DRM keys to access some of the hardware stuff (Camera, audio DAC, etc...)

As you helped me in the other thread getting F5121 marshmallow firmware is not an issue but F5122 seems to be a right pain and I don't think I need go through it.

I guess we will know more next Wednesday. Once again thanks for helping :)

Peccelius 2017-10-07 14:46

Re: How to unlock bootloader - Sony xperia X
 
Hi folks,

so in order to install Sailfish X do I need to unlock bootloader using Sony's instructions (and install android sdk and other stuff)? Or does Jolla provide some tool for this on wednesday or can I unlock bootloader using Emma?

mariusmssj 2017-10-07 14:51

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

Originally Posted by Peccelius (Post 1536032)
Hi folks,

so in order to install Sailfish X do I need to unlock bootloader using Sony's instructions (and install android sdk and other stuff)? Or does Jolla provide some tool for this on wednesday or can I unlock bootloader using Emma?

From what I understood EMMA can't flash anything with a locked bootloader. So you will to first unlock it before using EMMA.

I haven't unlocked my bootloader yet but with doing some reading you don't need the whole SDK to unlock it. But I will wait to see Jolla's instructions first before doing anything.

Also if you have a windows PC sony has a video on how to unlock the bootloader: >>Video Here<<

KylliOrvokki 2017-10-11 06:23

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

Originally Posted by mousse04 (Post 1535120)
In this case, it is fine.
Here it is :
https://drive.google.com/open?id=0B6...HE1Y0VkY0JEVlE
Let me know how it will work.

I am following helpers:
http://www.xperiablog.net/2016/03/12...erifirm-guide/
http://sailfishmods.de/2017/07/howto...ys-bootloader/

My XperiFirm -Create your FTF firmware [1302-3140] file is always failing at the end of the download with unpacking failing. I am using Mac.

@mousse04
Should your FTF version work with phone "Region: Nordic (Generic) [1302-3140]"?

einmaleins 2017-10-11 17:49

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

Originally Posted by KylliOrvokki (Post 1536275)
My XperiFirm -Create your FTF firmware [1302-3140] file is always failing at the end of the download with unpacking failing. I am using Mac.

I had that on Linux after one successful try. I tried deleting the directory created by flashtool (something like /root/.flashtool). Next try was successful. So maybe this might help in your case as well.

KylliOrvokki 2017-10-15 19:25

Re: How to unlock bootloader - Sony xperia X
 
Aaand - boot loop with Mousse04's file above.

Edit.

But now managed to get working with Mousse04's ftf. I totally missed step "Right at Wipe , we select everything from APPS_LOG, DIAG, SSD, USERDATA"
After this I boot loops gone.

Thanks for the file!! :)

Now I can continue to DRM stuff...

aspergerguy 2017-10-21 14:38

Re: How to unlock bootloader - Sony xperia X
 
Please note that as of today you need to update Xperifirm:
https://forum.xda-developers.com/cro...oader-t2834142

Have to manually amend Androxyde's Flashtool to account for this change as no longer connects to server by replacing Xperifirm.exe in Users > Name > .flashTool with version dated 16/10/2017 to restore XF icon function.

rob_kouw 2017-11-22 15:23

Re: How to unlock bootloader - Sony xperia X
 
Back in August, I struggled with this subject using a Windows 10 pc.

I ended up using flashtool-0.9.23.1-windows.exe to get the necessary drivers onto my pc. That worked well, but today Norton Security claimed there is some malware hidden in the tool, within the file flashtool-drivers.exe. So it deleted this file.
The name of the malware: Heur.AdvML.B

To whom it may concern...

nieldk 2017-11-22 20:08

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

Originally Posted by rob_kouw (Post 1538702)
Back in August, I struggled with this subject using a Windows 10 pc.

I ended up using flashtool-0.9.23.1-windows.exe to get the necessary drivers onto my pc. That worked well, but today Norton Security claimed there is some malware hidden in the tool, within the file flashtool-drivers.exe. So it deleted this file.
The name of the malware: Heur.AdvML.B

To whom it may concern...

Yes. I noticed this aswell :)
But, consider this. Flastool contains exploits for many things. For Example rooting the device.
Sure, its “malware”, but its intentional ;)

Just remember to get it from the (more or less) official sources !


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

vBulletin® Version 3.8.8