UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Re: OTA Updates not working

    Fairphone 3
    6
    31
    1965
    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.
    • L
      Luksus last edited by

      After cleaning up a bit, there is only one branch (master) left on Gitlab, which already includes the anbox patches (for the case, it gets available for arm64 some time).

      This is the latest bootimage, where I confirmed myself, that OTA updates work again:
      https://gitlab.com/ubports/community-ports/android9/fairphone-3/fairphone-fp3/-/jobs/970769389/artifacts/raw/out/boot.img

      @anditor , @Purplecroc89 :
      Please give it a try.

      Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605, Pinephone, Moto Z2 Force

      A 1 Reply Last reply Reply Quote 1
      • A
        anditor @Luksus last edited by

        @luksus

        Thats look good. 🙂

        Linux ubuntu-phablet 4.9.112-perf+ #1 SMP PREEMPT Mon Jan 18 19:48:19 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
        

        I didnt know that via OTA I will not get a new kernel. I'm sorry for that. 😞

        L 1 Reply Last reply Reply Quote 0
        • L
          Luksus @anditor last edited by

          @anditor 🙂

          Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605, Pinephone, Moto Z2 Force

          1 Reply Last reply Reply Quote 0
          • P
            Purplecroc89 last edited by

            Hi !
            In my case, after UT reboot to finish the lastest OTA update, my phone don't want boot to UT again. My FP3 reboot always on fastboot mode. 😕

            L 1 Reply Last reply Reply Quote 0
            • L
              Luksus @Purplecroc89 last edited by

              @purplecroc89 did you change the release channel in update settings?

              Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605, Pinephone, Moto Z2 Force

              P 1 Reply Last reply Reply Quote 0
              • P
                Purplecroc89 @Luksus last edited by

                @luksus i'm still on default channel "developpement". Do i have to change for "candidate" channel ?

                L 1 Reply Last reply Reply Quote 0
                • L
                  Luksus @Purplecroc89 last edited by Luksus

                  @purplecroc89 No, you don't have to and should not change. Channel-Switch is causing a full-update, which currently results in an unbootable device, that is why I was asking.

                  Did prior OTA-Updates work for you?
                  Can you boot manually into the recovery?

                  If you don't want to investigate this further, just try to flash the latest (master) boot and system image from gitlab again:
                  https://gitlab.com/ubports/community-ports/android9/fairphone-3/fairphone-fp3/-/jobs/1031850662/artifacts/download?file_type=archive
                  And give the OTA update another try.

                  Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605, Pinephone, Moto Z2 Force

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    Purplecroc89 @Luksus last edited by Purplecroc89

                    @luksus I don't now if prior OTA updates works, it's the first time i install UT on my FP3 since OTA updates works. I have try to boot manually on recovery mode but dosn't work. I have the message "error!" with android logo. After UT installation if i lock bootloader, i can't boot on the OS. Do you now if it's normal ?

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      Luksus @Purplecroc89 last edited by

                      @purplecroc89 uhhh, I never relocked my bootloader, because I wan't to be able to flash the device again, in case something went wrong.
                      And without a working android, we are not able to unlock the bootloader again, as far as I know... Please corect me if I am wrong.

                      So I would not recommend to lock the bootloader to you either.

                      So if you got the time:
                      Please unlock it again.
                      Flash the images I linked above.
                      Do not lock the bootloader.
                      Try an OTA update.

                      And if that works, perhaps try to lock the bootaloader again and give the OTA another try...

                      Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605, Pinephone, Moto Z2 Force

                      P 1 Reply Last reply Reply Quote 0
                      • Keneda
                        Keneda last edited by

                        Why would anyone want to lock bootloader?
                        Let it wide opened...

                        2015-Now : Meizu MX4 (Stable) for daily use
                        Spare : Nexus 5 (Stable)

                        L Flohack 2 Replies Last reply Reply Quote 0
                        • L
                          Luksus @Keneda last edited by Luksus

                          @keneda you have to consider the context.
                          We are in a development environment and afaik there is no way to lock/unlock it without wiping the data partition.
                          I am even not sure if one needs to do the oem unlock with some code again. Where would you enter the code on ubports?

                          But I also have to clarify, that I did not experiment a lot with locking and unlocking the bootloader.
                          So I would be more than happy, If another person could do this for me 🙂 .

                          I also think, that this is a general ubports/halium(?) issue/discussion.

                          Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605, Pinephone, Moto Z2 Force

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            Purplecroc89 @Luksus last edited by

                            @luksus I think you don't need to have Android to unlock bootloader. Without Android you can unlock bootloader with this adb command : "fastboot flashing unlock" and to lock fastboot "fastboot flashing lock".

                            1 Reply Last reply Reply Quote 0
                            • P
                              Purplecroc89 @Luksus last edited by

                              @luksus Ok, so i try again to install UT with images you give me in link.
                              I can boot on recovery manually. Just after installation i download and install lastest OTA update and after reboot, boot on UT again is impossible.
                              i don't know if i'm doing something wrong 😕

                              L 1 Reply Last reply Reply Quote 0
                              • L
                                Luksus @Purplecroc89 last edited by

                                @purplecroc89 Does not sound wrong to me.
                                What exactly is happening?

                                Does it automatically reboot to the recovery, when you hit "reboot & install" and do you see the the ubports mascot with a text "installing update"?
                                Or does it immediately fail to install the update?
                                What is displayed on the screen?

                                Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605, Pinephone, Moto Z2 Force

                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  Purplecroc89 @Luksus last edited by

                                  @luksus When i hit reboot After OTA update download is finish, device reboot automatically on recovery and UBports logo appears with the message "installing update". After that device reboot and it reboot automatically on bootloader again and again.

                                  L 1 Reply Last reply Reply Quote 0
                                  • L
                                    Luksus @Purplecroc89 last edited by

                                    @purplecroc89 ok, that sounds like the error I encountered, when doing a full update.

                                    What is happening here, is that the updater script formats the system partition and then reinstalls ubports on it. But that formatting somehow breaks something on the partition so, that the next reboot in the current slot fails, and the phone immediately reboots to the other slot, hoping there would be a bootable os...

                                    Can you tell me, which size the downloaded update has? If it is something abourt 500MB it is a full update.
                                    If it is lower, 100-250MB, it is an incremental update.

                                    Perhaps there is triggered a fullupdate even without channel-switch.

                                    Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605, Pinephone, Moto Z2 Force

                                    L P 2 Replies Last reply Reply Quote 0
                                    • L
                                      Luksus @Luksus last edited by Luksus

                                      @Purplecroc89 I rebuild the system image, that you can flash the current ubports dev version:
                                      https://gitlab.com/ubports/community-ports/android9/fairphone-3/fairphone-fp3/-/jobs/1051808201/artifacts/download?file_type=archive

                                      Then you could try another OTA Update tomorrow.

                                      If you want to keep a working OS on your phone, just flash both slots:

                                      • fastboot flash system_a system.img
                                      • fastboot flash system_b system.img
                                      • do the same for the bootimage

                                      Then on a failed OTA, the system should boot after automatically switching to the other slot.

                                      And for Reference:
                                      Switching the active slot:

                                      • fastboot --set-active=a

                                      Checking, which slot is active:

                                      • fastboot getvar slot-active:a

                                      Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605, Pinephone, Moto Z2 Force

                                      P 1 Reply Last reply Reply Quote 0
                                      • P
                                        Purplecroc89 @Luksus last edited by

                                        @luksus The downloaded update size something like 560Mb.

                                        L 1 Reply Last reply Reply Quote 0
                                        • L
                                          Luksus @Purplecroc89 last edited by Luksus

                                          @purplecroc89 Ok, then it is a full update and currently expected not to work until I solved this issue:
                                          https://forums.ubports.com/topic/5553/bringing-fp3-to-the-ubports-installer/19

                                          Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605, Pinephone, Moto Z2 Force

                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            Purplecroc89 @Luksus last edited by

                                            @luksus Ok, so, with yours steps and with dev system image version, latest OTA update work and i can use my phone normally. Thank a lot for your time and your help ! 😁

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