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

    Booting twrp freezes

    Scheduled Pinned Locked Moved Oneplus 5/5T
    17 Posts 3 Posters 1.5k Views 2 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.
      • P Offline
        PauloAugusto
        last edited by PauloAugusto

        From other sources online, I downloaded the img twrp-3.4.0-1-cheeseburger.img and used fastboot to flash that img into the phone:

        • fastboot flash recovery twrp-3.4.0-1-cheeseburger.img
        • Boot into recovery mode,
        • TWRP opens then I followed manually the instructions that ubports-installer was telling me:
        • I navigated to "Advanced", "ADB Sideload", checked "Wipe Dalvik Cache" and checked "Wipe Cache" and then "Swipe to Start Sideload".

        Once that was completed, I went to check the partitions and /data and /system were already ext4 (even though /system is almost full <- is this a problem?).

        So, I tried to manually do the TWRP actions that I am assuming would be done as part of the ubports-installer installation.
        However, upon re-attempting installation with ubports-installer still tries to boot up TWRP and freezes in the same place.

        Is there a way for me to complete the installation manually instead of relying on ubports-installer, which is apparently attempting to boot up TWRP and freezing the mobile?

        LakotaubpL 1 Reply Last reply Reply Quote 0
        • P Offline
          PauloAugusto
          last edited by

          I hope someone can help me :crossed_fingers: - I bought 1 of the original Ubuntu Phones, Aquaris 4.5, and I loved it.

          I eventually bought a new phone 3~4 years later but there were no longer any Ubuntu phones on sale, so I thought I was doomed and relegated myself to a OnePlus 5.

          One of my long time regrets was not having purchased a better model which came out some time later (Meizu?). I miss my trusted Ubuntu Touch so much...

          I have been accompanying the UBports project and Librem phone for a long time and now finally decided to try out something. I considered trying to buy a mobile coming pre-instaled with Ubuntu Touch but there aren't many options (.. any options at all except Volla, whose website-checkout is entirely in German o_O?), so I thought of repurposing my old but still just-fine OnePlus 5 riddled with malware...

          1 Reply Last reply Reply Quote 0
          • LakotaubpL Offline
            Lakotaubp @PauloAugusto
            last edited by

            @pauloaugusto Try looking here https://forums.ubports.com/topic/6227/installer-configs-beta-test if you have not already. Not sure from your post if you are just trying the installer (0.8.8), which I don't think is ready yet.

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              PauloAugusto @Lakotaubp
              last edited by

              @lakotaubp said in Booting twrp freezes:

              Not sure from your post if you are just trying the installer (0.8.8), which I don't think is ready yet.

              Indeed I am using "ubports-installer_0.8.8-beta_linux_amd64.deb", which is the version I downloaded this morning from UBports - it is the latest, I think?

              @lakotaubp said in Booting twrp freezes:

              @pauloaugusto Try looking here https://forums.ubports.com/topic/6227/installer-configs-beta-test if you have not already.

              👀 :crossed_fingers:

              (thanks for the quick reply and mega kudos for UBports overall)

              P 1 Reply Last reply Reply Quote 0
              • P Offline
                PauloAugusto @PauloAugusto
                last edited by

                @pauloaugusto said in Booting twrp freezes:

                @pauloaugusto Try looking here https://forums.ubports.com/topic/6227/installer-configs-beta-test if you have not already.

                👀 :crossed_fingers:

                Nope, mostly the same. The only thing different in those instructions was to specify the config file with the "-f" flag. I tried it anyway, just in case, even though I suspected the installer was already using that same config file.

                There was 1 thing different this time, though - ubports-installer downloaded some files. I haven't yet quite figured out when the installer downloads files and when it doesn't... Finding it a bit strange.

                P 1 Reply Last reply Reply Quote 0
                • P Offline
                  PauloAugusto @PauloAugusto
                  last edited by PauloAugusto

                  When the installer was waiting for the mobile to reboot but is actually frozen, I tried:

                  • Forcefully stop the mobile;
                  • Restarted it into the «regular» Android/Oxygen;
                  • Restarted to bootloader;
                  • Used fastboot to inject twrp-3.4.0-1-cheeseburger.img
                  • The issued a fastboot boot twrp-3.4.0-1-cheeseburger.img

                  It then fired up TWRP and the ubports-installer then reacted, it recognized it - that must be what the installer was waiting on.
                  Once it recognized the mobile / that the mobile was in the desired state, it started trying to upload something,
                  However, it is now failing to upload. When I retry the upload progress goes close to the beginning (though not entirely) and then fails again at about 3/4 of the progress, always:

                  e4194196-fd84-4cf7-acf6-6203222d71db-image.png

                  LakotaubpL 2 Replies Last reply Reply Quote 0
                  • LakotaubpL Offline
                    Lakotaubp @PauloAugusto
                    last edited by

                    @pauloaugusto I have managed ton get as far as UBports recovery but thats it. out of time for today.

                    1 Reply Last reply Reply Quote 0
                    • LakotaubpL Offline
                      Lakotaubp @PauloAugusto
                      last edited by

                      @pauloaugusto Tried again this morning. Got connection lost message, changed cable and all went well. So keep trying and change the usb cable and you should be ok. Good luck

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        PauloAugusto
                        last edited by

                        It is still failing for me and I don't think it is the cable. This is a screengrab sequence of everything I did on my latest attempt:

                        There's a slight mistake with the instructions - to invoke the special boot menu it is holding Power + VolumeDown. The combo Power + VolumeUp does nothing on my OnePlus 5:
                        980b2391-36ad-4bf9-8e30-2ff4e99fb898-image.png

                        93d6278d-32fc-4687-8a65-5bf1b1992a4e-image.png

                        Then finally in Fastboot mode:
                        e069ec70-f733-4c4e-a3f1-506c209e70cb-image.png

                        Started ub-ports as root + sspecifying the OnePlus5 config file, Justin Case,

                        # ubports-installer -f /home/paulo/Desktop/cheeseburger.yml
                        

                        Installer automatically detects the mobile, I check all checkboxes:
                        910b89d6-a6f7-40d9-aad4-1fc963d33e77-image.png

                        Installer asks me to continue (and gives me the wrong? instruction to Power+VolumeUp):
                        aa7f05fe-93ef-4bd3-a33d-7e51d78c05cf-image.png

                        After reboot the mobile just hangs:
                        ec3378b6-893f-4d0d-8424-0a570c1113fc-image.png

                        I notice that the mobile is still responsive and is in "fastboot" (whatever that means), so I make is boot up the latest TWRP:

                        root@paulo-B450-AORUS-ELITE:~/.cache/ubports# fastboot devices
                        957ec7db	fastboot
                        root@paulo-B450-AORUS-ELITE:~/.cache/ubports# fastboot flash recovery /home/paulo/Desktop/twrp-3.4.0-1-cheeseburger.img
                        target reported max download size of 536870912 bytes
                        sending 'recovery' (33412 KB)...
                        OKAY [  0.792s]
                        writing 'recovery'...
                        OKAY [  0.314s]
                        finished. total time: 1.106s
                        root@paulo-B450-AORUS-ELITE:~/.cache/ubports# fastboot boot /home/paulo/Desktop/twrp-3.4.0-1-cheeseburger.img
                        downloading 'boot.img'...
                        OKAY [  0.797s]
                        booting...
                        OKAY [ 10.094s]
                        finished. total time: 10.891s
                        

                        Once TWRP boots up, the installer recognizes it and reacts:
                        9655c758-2257-4316-b2cc-964b6766c49e-image.png

                        Following the instructions:
                        e35fe2ac-3446-4556-8a91-933c334ca8fe-image.png

                        601d8dc4-be6c-4642-8ca6-9c4bdb6d4ea6-image.png

                        28e21695-332a-4801-a018-9fe289260e8d-image.png

                        Instead of following directly the instructions, I pressed back, back, then Reboot, then Bootloader:
                        709f55b4-abe6-4d81-81ec-b91c525aa4ad-image.png

                        Installer recognizes the mobile in the Boot menu and issues a reboot:
                        0733c87b-7515-4626-b22f-08ca8f02ebee-image.png
                        c5fbe94e-f0a6-4d1f-8bed-49d3cb8d287f-image.png

                        However, once again the mobile doesn't progress from the Bootup image:
                        d3fcbf82-fd0e-40e8-b80c-3c76fdc4711d-image.png

                        Once again I detect that the mobile is recognized by Fastboot, so I reboot it to boot loader then start in Recovery Mode:

                        root@paulo-B450-AORUS-ELITE:~/.cache/ubports# fastboot devices
                        957ec7db	fastboot
                        root@paulo-B450-AORUS-ELITE:~/.cache/ubports# fastboot reboot-bootloader
                        rebooting into bootloader...
                        OKAY [  0.000s]
                        finished. total time: 0.050s
                        root@paulo-B450-AORUS-ELITE:~/.cache/ubports#
                        

                        Installer recognizes the mobile after restarting in Recovery Mode:
                        17776f81-7a3a-4212-99f0-f9222aea0411-image.png

                        However now it always fails with something which I'm suspecting is not the cable (and UBports is now loaded):
                        6128cdf9-7b5c-4729-8073-9c15428c0cad-image.png

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          PauloAugusto
                          last edited by

                          In the UBports menu I saw it mentions 2 log files:
                          6e3a694a-9a33-4a64-b08f-27d94505e68e-image.png

                          So I downloaded them with the Fastboot command:
                          I cannot paste files into here, it tells me I'm not authorized...

                          LakotaubpL 2 Replies Last reply Reply Quote 0
                          • LakotaubpL Offline
                            Lakotaubp @PauloAugusto
                            last edited by

                            @pauloaugusto The third picture up is where I got to before I changed the cable. Also to reboot using vol up and power i had to disconnect the OP5 to get it to work so that button press can be awkward. You could try just unplugging, replugging and pressing try again. Also on my last attempt I did not pick wipe data or firmware update but that probably was just coincidence.

                            1 Reply Last reply Reply Quote 0
                            • flohackF Offline
                              flohack
                              last edited by

                              Please try to use the installer now without -f, the yml file might have changed after we released it, and so if you keep using the local one you might not get important updates.

                              My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

                              1 Reply Last reply Reply Quote 0
                              • LakotaubpL Offline
                                Lakotaubp @PauloAugusto
                                last edited by

                                @pauloaugusto The connection lost message seems to appear across a few devices here and in the Install group on TELEports so not sure what the reason is. You are very close now so it should just be a matter of re-trying. You could just unplug and replug the same cable and try again or any other you have to hand. The newness of the cable seems not to matter. I also did not use the -f for the yml just the installer as Flohack suggested.

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  PauloAugusto
                                  last edited by

                                  I tried again, with a new cable, without the "-f" option, and without checking the "Update Firmware" or "Wipe user data".

                                  Everything ran perfectly smoothly this time and I now have Ubuntu Touch UBports-version running. Can't say for sure, but I suspect the cause of the issues was the checkboxes I was ticking before. This time I left them unticked, since Lakotaubp mentioned that's how s/he was doing it successfully. (looking back, don't know why I didn't try that before - a couple of good night's sleep are good advisors)

                                  Alas I'm finally free from the unbelievable level of T&C abuse and Orwellian level of spying and am now free again to turn on mobile data, location, have maps, etc. Finally, ffs! Been waiting years since Canonical unfortunately (though understandably) dropped Ubuntu Phone.

                                  What a marvelous feeling of renewed freedom.
                                  Thank you for the help.

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    PauloAugusto
                                    last edited by PauloAugusto

                                    I had a slight issue with the OnePlus 5, though - it didn't recognize the SIM card.

                                    I rebooted <- nothing
                                    Took the SIM card off, put it on again and rebooted <- nothing
                                    | The mobile is Dual-SIM, so: |
                                    Took the SIM card off from the outermost slot and changed it to the innermost slot <- recognized <- rebooted and now everything ok.

                                    (the SIM card is Lycamobile Portugal and I'm currently residing in Finland, though I suspect that doesn't affect anything, but still FYI)

                                    LakotaubpL 1 Reply Last reply Reply Quote 1
                                    • LakotaubpL Offline
                                      Lakotaubp @PauloAugusto
                                      last edited by

                                      @pauloaugusto Great your up and running and yes I am using the first sim slot too. Not sure that the dual sim works on any device yet.

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