UBports Robot Logo UBports Forum
    • 版面
    • 最新
    • 標籤
    • 熱門
    • 使用者
    • 群組
    • 搜尋
    • 註冊
    • 登入

    Sony Xperia X (suzu/F5121 & F5122)

    已排程 已置頂 已鎖定 已移動 Sony Xperia X (F5121 & F5122)
    324 貼文 63 Posters 235.7k 瀏覽 15 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
      回覆
      • 在新貼文中回覆
      登入後回覆
      此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
      • fredldotmeF 離線
        fredldotme
        最後由 fredldotme 編輯

        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

        libremaxL M c4pp4C P 5 條回覆 最後回覆 回覆 引用 22
        • libremaxL 離線
          libremax @fredldotme
          最後由 libremax 編輯

          @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/

          fredldotmeF 1 條回覆 最後回覆 回覆 引用 0
          • fredldotmeF 離線
            fredldotme @libremax
            最後由 編輯

            @libremax GitHub is fine for bug reports.

            1 條回覆 最後回覆 回覆 引用 0
            • B 離線
              bkos
              最後由 編輯

              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.

              fredldotmeF 1 條回覆 最後回覆 回覆 引用 0
              • fredldotmeF 離線
                fredldotme @bkos
                最後由 fredldotme 編輯

                @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 條回覆 最後回覆 回覆 引用 0
                • B 離線
                  bkos @fredldotme
                  最後由 編輯

                  @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 條回覆 最後回覆 回覆 引用 0
                  • S 離線
                    sonny @bkos
                    最後由 編輯

                    @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 條回覆 最後回覆 回覆 引用 1
                    • S 離線
                      sonny
                      最後由 編輯

                      @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.

                      libremaxL 1 條回覆 最後回覆 回覆 引用 0
                      • libremaxL 離線
                        libremax @sonny
                        最後由 編輯

                        @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 條回覆 最後回覆 回覆 引用 0
                        • D 離線
                          doniks @libremax
                          最後由 doniks 編輯

                          @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?

                          libremaxL 1 條回覆 最後回覆 回覆 引用 0
                          • libremaxL 離線
                            libremax @doniks
                            最後由 編輯

                            @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 條回覆 最後回覆 回覆 引用 0
                            • S 離線
                              sonny
                              最後由 編輯

                              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 條回覆 最後回覆 回覆 引用 0
                              • fredldotmeF 離線
                                fredldotme
                                最後由 編輯

                                @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 條回覆 最後回覆 回覆 引用 0
                                • LakotaubpL 離線
                                  Lakotaubp
                                  最後由 編輯

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

                                  NuffiN 1 條回覆 最後回覆 回覆 引用 3
                                  • NuffiN 離線
                                    Nuffi @Lakotaubp
                                    最後由 編輯

                                    @Lakotaubp

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

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

                                    1 條回覆 最後回覆 回覆 引用 1
                                    • S 離線
                                      sonny @fredldotme
                                      最後由 編輯

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

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • S 離線
                                        sahirul
                                        最後由 sahirul 編輯

                                        can i install it on a Sony xperia x compact ?

                                        fredldotmeF 1 條回覆 最後回覆 回覆 引用 0
                                        • fredldotmeF 離線
                                          fredldotme @sahirul
                                          最後由 編輯

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

                                          S H 2 條回覆 最後回覆 回覆 引用 0
                                          • K 離線
                                            kugiigi
                                            最後由 編輯

                                            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 條回覆 最後回覆 回覆 引用 0
                                            • N 離線
                                              Nikfrager
                                              最後由 編輯

                                              Yes, you can see it.

                                              1 條回覆 最後回覆 回覆 引用 0
                                              • 第一個貼文
                                                最後的貼文