• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Sony Xperia X (suzu/F5121 & F5122)

Scheduled Pinned Locked Moved Sony Xperia X (F5121 & F5122)
324 Posts 63 Posters 235.3k Views 15 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      fredldotme
      last edited by fredldotme 14 Oct 2019, 14:44

      This is a port of Ubuntu Touch for the Sony Xperia X (suzu/F5121 & F5122).

      Sources:
      Kernel:
      https://github.com/fredldotme/device-kernel-loire

      Device:
      https://github.com/fredldotme/device-sony-common
      https://github.com/fredldotme/device-sony-loire
      https://github.com/fredldotme/device-sony-suzu

      Halium:
      https://github.com/Halium/halium-devices/blob/halium-7.1/manifests/sony_suzu.xml

      Status:

      Working:

      • Audio
      • Calling
      • SMS
      • Wifi (sometimes requires a reboot)
      • Wifi hotspot
      • Bluetooth (sometimes requires a reboot)
      • GPS
      • Vibration
      • Orientation sensor
      • LED
      • USB/MTP
      • USB/ADB
      • Video decoding
      • Photo camera
      • MicroSD support
      • Flash light
      • Anbox
      • Libertine

      Missing:

      • Video recording

      Install:

      • Make sure to upgrade your device to the latest stock Android 8.0 before continuing:

        • Windows: https://developer.sony.com/develop/open-devices/get-started/flash-tool/
        • Linux: http://www.flashtool.net/downloads_linux.php (run with GTK_IM_MODULE=ibus ./FlashTool) and https://xperifirm.com/tutorial/install-xperifirm-linux/
      • OEM unlock your device: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/

      • Boot your device into fastboot mode by shutting it down and keeping the Volume Up button pressed while plugging in a USB cable between your phone and PC. The LED should be on and blue.

      • In case of flashing issues please wipe system, data & cache partitions using TWRP

      • Flash the OEM binaries from: https://developer.sony.com/file/download/software-binaries-for-aosp-nougat-android-7-1-kernel-4-4-loire/ using fastboot flash oem SW_binaries_for_Xperia_AOSP_N_MR1_5.7_r1_v08_loire.img

      • Run the UBports Installer (0.4.5-beta or onwards): https://github.com/ubports/ubports-installer/releases/tag/0.4.5-beta

      L M C P 5 Replies Last reply 15 Oct 2019, 15:46 Reply Quote 22
      • L Offline
        libremax @fredldotme
        last edited by libremax 15 Oct 2019, 15:46

        @fredldotme Kudos
        Where is it better to report bugs ?
        Here, at github.com/ubports or elsewhere ?

        Donate anonymously 1€/$ by year to UBports, all Ubuntu Touch users can do it ! Demonstration:
        https://forums.ubports.com/topic/1262/donate-anonymously-1-by-year-to-ubports-all-ubuntu-touch-users-can-do-it-demonstration/

        F 1 Reply Last reply 15 Oct 2019, 22:04 Reply Quote 0
        • F Offline
          fredldotme @libremax
          last edited by 15 Oct 2019, 22:04

          @libremax GitHub is fine for bug reports.

          1 Reply Last reply Reply Quote 0
          • B Offline
            bkos
            last edited by 26 Oct 2019, 19:37

            So I tried to install following your steps, but I always get this error in the last step:
            Cache formatting was not succesful, flashing may fail, check your partitions on device
            Where did I go wrong?

            bkos@T430:~/Letöltések$ fastboot erase cache && fastboot erase userdata && fastboot erase system
            ******** Did you mean to fastboot format this ext4 partition?
            erasing 'cache'...
            OKAY [  0.012s]
            finished. total time: 0.012s
            ******** Did you mean to fastboot format this ext4 partition?
            erasing 'userdata'...
            OKAY [  0.094s]
            finished. total time: 0.094s
            ******** Did you mean to fastboot format this ext4 partition?
            erasing 'system'...
            OKAY [  0.040s]
            finished. total time: 0.041s
            bkos@T430:~/Letöltések$ fastboot flash oem SW_binaries_for_Xperia_AOSP_N_MR1_5.7_r1_v08_loire.img
            target reported max download size of 536870912 bytes
            sending 'oem' (220783 KB)...
            OKAY [ 12.517s]
            writing 'oem'...
            OKAY [  3.171s]
            finished. total time: 15.688s
            bkos@T430:~/Letöltések$ ubuntu-device-flash touch --device=suzu --channel=16.04/community/fredldotme/devel --bootstrap
            2019/10/26 21:30:40 Device is |suzu|
            2019/10/26 21:30:40 Flashing version 23 from 16.04/community/fredldotme/devel channel and server https://system-image.ubports.com to device suzu
            2019/10/26 21:30:50 Cache formatting was not successful, flashing may fail, check your partitions on device
            2019/10/26 21:30:52 Waiting for device to enter recovery mode ...
             Cache formatting was not succesful, flashing may fail, check your partitions on deviceFailed to enter Recovery
            bkos@T430:~/Letöltések$
            

            After this the device is in the endless boot loop.
            Thanks in advance.

            F 1 Reply Last reply 28 Oct 2019, 11:10 Reply Quote 0
            • F Offline
              fredldotme @bkos
              last edited by fredldotme 28 Oct 2019, 11:10

              @bkos said in Sony Xperia X (suzu/F5121):

              Does your device boot into recovery by pressing the VolDown + Power button? What happens then? Also does adb devices show any device in its list?

              B 1 Reply Last reply 30 Oct 2019, 19:25 Reply Quote 0
              • B Offline
                bkos @fredldotme
                last edited by 30 Oct 2019, 19:25

                @fredldotme
                Before flashing with Android installed, VolDown and Power button, blue light.
                After trying to install UBports, it enters some recovery.
                adb devices doesn't show any device, neither before flashing, nor after.
                I had Sailfish installed on this device, maybe that screws up something?

                S 1 Reply Last reply 30 Oct 2019, 21:24 Reply Quote 0
                • S Offline
                  sonny @bkos
                  last edited by 30 Oct 2019, 21:24

                  @bkos I also had sailfish on my device before and the same failed to recovery problem as you.
                  I managed to install it eventully a few days ago by installing twrp https://eu.dl.twrp.me/suzu/ with version 3.2.3-0 that that was mentioned in an earlier post.
                  The I got a bit further with it failing with "/cache/recovery/': remote couldn't create file: Is a directory" and then checked with adb shell and saw that the directory /cache/recovery was not there and created it.

                  then it got further and ended with

                  2019/10/28 21:30:45 Created ubuntu_command: /home/sonny/.cache/ubuntuimages/ubuntu_commands273504541
                  2019/10/28 21:30:45 Rebooting into recovery to flash

                  and then twrp came and i could not see those ubuntu commands.

                  Then I tried

                  fastboot flash oem SW_binaries_for_Xperia_AOSP_N_MR1_5.7_r1_v08_loire.img

                  again and then

                  ubuntu-device-flash touch --device=suzu --channel=16.04/community/fredldotme/devel --bootstrap

                  and this time it worked with another recovery screen.

                  I have no idea, this is my first time flashing ubports, but maybe its that there was something missing which twrp then provided and then flashing the recovery from the AOSP worked then.

                  1 Reply Last reply Reply Quote 1
                  • S Offline
                    sonny
                    last edited by 30 Oct 2019, 21:30

                    @fredldotme

                    Thank you for your work, I managed to install it with a slightly different procedure as I wrote in my last comment.
                    Today I got a system update and installed it and now the phone is stuck in a reboot loop until I force shutdown it with power and volume up and waiting for three vibrations.

                    Is that expected that over the air updates do not work yet?
                    And I had no sim inserted in case that is relevant. I just tested it with wifi so far.
                    I will try to reflash it again soon.

                    L 1 Reply Last reply 30 Oct 2019, 21:56 Reply Quote 0
                    • L Offline
                      libremax @sonny
                      last edited by 30 Oct 2019, 21:56

                      @sonny Xperia X is not yet included in UBports Installer and in the same way, I see not reason why It could be included at this step in UBports OTA system.

                      Donate anonymously 1€/$ by year to UBports, all Ubuntu Touch users can do it ! Demonstration:
                      https://forums.ubports.com/topic/1262/donate-anonymously-1-by-year-to-ubports-all-ubuntu-touch-users-can-do-it-demonstration/

                      D 1 Reply Last reply 31 Oct 2019, 06:09 Reply Quote 0
                      • D Offline
                        doniks @libremax
                        last edited by doniks 31 Oct 2019, 06:09

                        @libremax I don't know for sure, but I could imagine that suzu gets otas. Its in the ci and the image server, so that whole machinery might just work. Even though the graphical installer application is not able to serve it yet.

                        If that is the case, then @sonny you just updated to the brand new mir and unity versions that got promoted from edge channel. There's another post where they explained the edge merge. https://forums.ubports.com/topic/3293/what-s-this-edge-merge-anyway/3

                        Maybe that new image is causing the problem on this halium built device?! You can probably switch back to an older dev image with ubuntu-device-flash. I don't know the syntax by heart, buy just check -h.

                        If that theory is correct, then @fredldotme maybe some older devel image could be promoted to rc?

                        L 1 Reply Last reply 31 Oct 2019, 13:14 Reply Quote 0
                        • L Offline
                          libremax @doniks
                          last edited by 31 Oct 2019, 13:14

                          @doniks In fact, I was not looking at this from a technical point of vue but from a "logical" one.
                          Given it's an early pre-release without polishing for the install step, I did'nt expect that OTA would be enable.

                          Donate anonymously 1€/$ by year to UBports, all Ubuntu Touch users can do it ! Demonstration:
                          https://forums.ubports.com/topic/1262/donate-anonymously-1-by-year-to-ubports-all-ubuntu-touch-users-can-do-it-demonstration/

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sonny
                            last edited by 31 Oct 2019, 18:01

                            My phone was actually able to startup today after being shut off over night.
                            I then checked the updates again and Ubuntu touch Version 26 was listed as available again.
                            I tried to install and got a glowing circle like I did when I initially installed it and then it booted up to show the update is still available.
                            I leave that update for now while I check the system out.

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              fredldotme
                              last edited by 2 Nov 2019, 15:15

                              @sonny OTAs should work, they do with most Xperia X devices but I've gotten reports of failing OTAs on some devices where the Circle Of Flash(tm) doesn't even show up. So if your device runs through the install process with the circle it should be lucky.

                              S 1 Reply Last reply 3 Nov 2019, 14:37 Reply Quote 0
                              • LakotaubpL Offline
                                Lakotaubp
                                last edited by 3 Nov 2019, 11:40

                                The Sony Xperia X is now in the installer https://github.com/ubports/ubports-installer

                                NuffiN 1 Reply Last reply 3 Nov 2019, 12:12 Reply Quote 3
                                • NuffiN Offline
                                  Nuffi @Lakotaubp
                                  last edited by 3 Nov 2019, 12:12

                                  @Lakotaubp

                                  Great ! Super! Here is a Sony Xperia X working ... 🙂

                                  Knautsch-Zone!Don't disturb!See the sign o.t.door!

                                  1 Reply Last reply Reply Quote 1
                                  • S Offline
                                    sonny @fredldotme
                                    last edited by 3 Nov 2019, 14:37

                                    @fredldotme
                                    I was able to update to Ubuntu Touch Version 33 today without problems.

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      sahirul
                                      last edited by sahirul 11 Mar 2019, 19:01 3 Nov 2019, 19:00

                                      can i install it on a Sony xperia x compact ?

                                      F 1 Reply Last reply 4 Nov 2019, 09:00 Reply Quote 0
                                      • F Offline
                                        fredldotme @sahirul
                                        last edited by 4 Nov 2019, 09:00

                                        @sahirul No, as that one is neither Suzu nor F5121.

                                        S H 2 Replies Last reply 5 Nov 2019, 10:08 Reply Quote 0
                                        • K Offline
                                          kugiigi
                                          last edited by 4 Nov 2019, 18:58

                                          Is there a way to make sure the Xperia X we will get is the correct version?
                                          Perhaps in the about page on Android we can see the model?

                                          1 Reply Last reply Reply Quote 0
                                          • N Offline
                                            Nikfrager
                                            last edited by 4 Nov 2019, 19:02

                                            Yes, you can see it.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post