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

    Ubuntu Boot problems after install On A2

    Scheduled Pinned Locked Moved Xiaomi Mi A2
    29 Posts 9 Posters 4.9k Views 4 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.
      • MrT10001M Offline
        MrT10001 @Tinninator
        last edited by

        @Tinninator No, try this, boot TWRP and in Wipe, Advanced wipe, change the DATA partition to EXT4. Wipe the Cache as well. Then reboot to the boot loader and run it through the installer again, tick the wipe data box.

        I would install Focal (20.04), it seems to be working fine. (less apps, but it is catching up).

        Xiaomi Redmi Note 7.... And more...
        I have too many devices...

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          Tinninator @MrT10001
          last edited by

          @MrT10001 i've checked the partition and it was already EXT4.
          So it wasn't that the problem it seems

          MrT10001M 1 Reply Last reply Reply Quote 0
          • MrT10001M Offline
            MrT10001 @Tinninator
            last edited by

            @Tinninator Have you wiped the data, cache, dalvik/cache partitions? Try that and run the installer again.

            Xiaomi Redmi Note 7.... And more...
            I have too many devices...

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              Tinninator @MrT10001
              last edited by

              @MrT10001 it didn't work. it is still in the same loop

              MrT10001M 1 Reply Last reply Reply Quote 0
              • MrT10001M Offline
                MrT10001 @Tinninator
                last edited by

                @Tinninator Ok, go back to the beginning. Get the Android stock ROM back on the device, use the MiFlash tool, but DO NOT lock the bootloader - there is a drop down menu on the bottom right of MiFlash program - it defaults to locking the bootloader, enure it states not locking bootloader.

                If the MIFlash tool is a bit annoying and doesn't work, use the TWRP recovery and sideload the ROM onto the device.

                Once you are back up and running on stock, try the install again.

                Xiaomi Redmi Note 7.... And more...
                I have too many devices...

                T 1 Reply Last reply Reply Quote 0
                • T Offline
                  Tinninator @MrT10001
                  last edited by Tinninator

                  @MrT10001 i am trying with MIflash, but it give me error: Can not found file flash_all.bat.
                  Can you tell me the steps to use TWRP correctly? Last time i' ve tried it told me the files were corrupt and i was force to make a factory reset

                  MrT10001M 1 Reply Last reply Reply Quote 0
                  • MrT10001M Offline
                    MrT10001 @Tinninator
                    last edited by MrT10001

                    @Tinninator 1) Connect the the device to PC and Boot the device to fast boot. (make sure you have a command prompt open in your fastboot/adb folder on the PC)

                    1. Command:
                    fastboot flash recovery <location of your TWRP image>
                    
                    1. In TWRP goto WIPE, Advanced wipe, tick the boxes for Dalvick/cache, Cache, Data and system.

                    2. Go back to TWRP home and reboot recovery.

                    3. Once back in TWRP, go to Advanced and choose ADB sideload

                    4. on the PC type:

                    ./adb sideload <location of your ROM zipfile>
                    
                    1. on the phone swipe to sideload

                    This may not work as the zip file is not in a format to sideload
                    Also you need to read up on making the slots active here

                    Point 2 on the device page:

                    "Your device must be running a specific android 9 build before installing Ubuntu Touch. You can use the link below to download it. You can use either use stock recovery or TWRP recovery to flash it. Flash it to both slots to be safe"

                    Edit:

                    In essence don't use the MiFlash tool. Manually install Android 9 to both slots (A and B).

                    Xiaomi Redmi Note 7.... And more...
                    I have too many devices...

                    T 1 Reply Last reply Reply Quote 0
                    • T Offline
                      Tinninator @MrT10001
                      last edited by

                      @MrT10001 Hi, first, thanks for all the help.
                      Second,even in both side (a and b) your command didn't work. Screenshot 2023-05-10 112713.png
                      Using instead fastboot boot i managed to enter TWRP and do all your steps of point 1. (you need to start sideload and after launch the command otherwise it will give you error i saw).
                      Now I am withous OS, how do I install the rom on the 2 side?

                      MrT10001M 1 Reply Last reply Reply Quote 0
                      • MrT10001M Offline
                        MrT10001 @Tinninator
                        last edited by

                        @Tinninator you need to make slot b active and sideload the ROM. Then reboot to fastboot and make slot a active. Reboot to TWRP and sideload the ROM .

                        Xiaomi Redmi Note 7.... And more...
                        I have too many devices...

                        T 1 Reply Last reply Reply Quote 0
                        • T Offline
                          Tinninator @MrT10001
                          last edited by

                          @MrT10001 Same problem like last time i tried. I had there to choose the second option to let Android 9 start.

                          photo_2023-05-10_15-04-14.jpg

                          T 1 Reply Last reply Reply Quote 0
                          • T Offline
                            Tinninator @Tinninator
                            last edited by

                            @Tinninator follow up.
                            I've done the factory reset and tried again the installation.
                            I am back at the start. Boot and crash

                            MrT10001M 1 Reply Last reply Reply Quote 0
                            • MrT10001M Offline
                              MrT10001 @Tinninator
                              last edited by

                              @Tinninator On your PC in your ADB/Fastboot (see note at the bottom) folder command prompt:

                              ./fastboot flash recovery <location of your TWRP image file>
                              

                              In TWRP wipe Cache/Dalvik
                              In TWRP wipe data
                              In TWRP wipe system
                              In TWRP wipe internal storage

                              In TWRP reboot to the bootloader.

                              On your PC in your ADB/fastboot folder command prompt::

                              ./fastboot --set-active=b
                              

                              Then:

                              ./fastboot flash recovery <location of your TWRP image file>
                              

                              In TWRP:

                              Advanced, adb sideload, wait
                              and then go to your PC and type in the ADB/Fastboot command line:

                              ./adb sideload <location of your zipped Android ROM>
                              

                              Wait, set the slider to start the install and then hit enter on the PC. Once it has finished in TWRP, reboot to the bootloader and in your PC ADB/fastboot folder type in:

                              ./fastboot --set-active=a
                              

                              Then:

                              ./fastboot flash recovery <location of your TWRP image file>
                              

                              Then reboot to recovery and in TWRP, Advanced, adb sideload and then go to your PC and type in the ADB/Fastboot command line:

                              ./adb sideload <location of your zipped Android ROM>
                              

                              Wait, set the slider to start the install and then hit enter on the PC. Once it has finished in TWRP and the PC command line, reboot to the system.

                              If all goes well it will boot into Android.

                              Once in Android, set USB debugging once you have enabled developer options and follow the onscreen instructions on the Ubuntu Touch installer.

                              Points to note:

                              Have your vendor.img file downloaded and ready.

                              Install Android Studio - all of it.

                              Why?

                              It will give you the latest ADB and fastboot drivers which work. It works constantly on all my installs with no issues. This is on Windows (10 and 11), MacOS and Linux.

                              In Windows navigate to:

                              C:\Users\<yourname>\AppData\Local\Android\Sdk\platform-tools
                              

                              to access ADB and fastboot running the command line.

                              If the set active slot command fails, research for the commands, the syntax of the command gets tweaked and may be slightly different

                              Xiaomi Redmi Note 7.... And more...
                              I have too many devices...

                              T 1 Reply Last reply Reply Quote 0
                              • T Offline
                                Tinninator @MrT10001
                                last edited by

                                @MrT10001 Same problem.
                                Can't load Android system, your data may be corrupt

                                MrT10001M 1 Reply Last reply Reply Quote 0
                                • MrT10001M Offline
                                  MrT10001 @Tinninator
                                  last edited by

                                  @Tinninator You have formatted data in TWRP to EXT4? You have wiped in advanced wipe all above? You have tried another USB cable? You have redownloaded the correct ROM? The bootloader is unlocked?

                                  If so, then you are probably looking at a hardware fault, which basically means the device needs specialist repair.

                                  Xiaomi Redmi Note 7.... And more...
                                  I have too many devices...

                                  T 1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    Tinninator @MrT10001
                                    last edited by

                                    @MrT10001 do you know what Android version is the one inside website rom?
                                    I' ll try to download it from Xiaomi instead of the website.
                                    If even in that case it will not work i'll send it to repair

                                    MrT10001M 1 Reply Last reply Reply Quote 0
                                    • MrT10001M Offline
                                      MrT10001 @Tinninator
                                      last edited by

                                      @Tinninator The ROM that you download from the UT jasmine_sprout device list is the correct one.

                                      Point 2 as I said earlier is important:

                                      "Your device must be running a specific android 9 build before installing Ubuntu Touch. You can use the link below to download it. You can use either use stock recovery or TWRP recovery to flash it. Flash it to both slots to be safe."

                                      Also note the fastboot option on the device is buggy and may cause issues. I have two of these devices and have had no issues with the installs.
                                      I have flashed the above noted stock ROM to both slots, following the instructions I have stated using TWRP as the recovery.

                                      I cannot be there fully to help you, but you are either missing a step, your partitions are the incorrect size or you have hardware failure (hardware failure is usually a bootloop or a boot into what you are seeing, and the filed piece of hardware within the device is the storage chip (eMMC)).

                                      Set the b slot active and flash the ROM to that using TWRP.
                                      Before flashing, wipe the data partition in the wipe command (not the advanced wipe).

                                      Xiaomi Redmi Note 7.... And more...
                                      I have too many devices...

                                      T 1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        Tinninator @MrT10001
                                        last edited by Tinninator

                                        @MrT10001 ok.
                                        I've tried something different.
                                        I've done a factory reset of Android 9 and after flashed that rom (founded on Xiaomi website)with MIflash.
                                        No file corrupted, it worked nicely.
                                        And here is the but, after the installation it still boot and crash in loop

                                        arubislanderA 1 Reply Last reply Reply Quote 0
                                        • arubislanderA Offline
                                          arubislander @Tinninator
                                          last edited by

                                          @Tinninator OK, but did you try following @MrT10001 's instructions step by step?

                                          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                                          Happily running Ubuntu Touch
                                          Google Pixel 3a (20.04 DEV)
                                          JingPad (24.04 preview)
                                          Meizu Pro 5 (16.04 DEV)

                                          T 1 Reply Last reply Reply Quote 0
                                          • T Offline
                                            Tinninator @arubislander
                                            last edited by

                                            @arubislander yes i did

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