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

    Installation of Ubuntu Toch on Xiaomi Mi A2 doesn't work

    Scheduled Pinned Locked Moved Unsolved Support
    11 Posts 5 Posters 872 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.
      • F Offline
        Falconer78
        last edited by Falconer78

        I used the UB Ports Installer to install Ubuntu Touch on my Xiaomi Mi A2. I followed the steps in the installer, but I always get this message:

        Error: fastboot:format: Error: formatting failed: Error: {"error":{"code":1,"cmd":"fastboot format:ext4 system"},"stdout":"Creating filesystem with 786432 4k blocks and 196608 inodes\nFilesystem UUID: cd4fb2b7-b8ff-4418-ad08-292645e0c0f6\nSuperblock backups stored on blocks: \n\t32768, 98304, 163840, 229376, 294912\n\nAllocating group tables: 0/24\b\b\b\b\b \b\b\b\b\bdone \nWriting inode tables: 0/24\b\b\b\b\b \b\b\b\b\bdone \nCreating journal (16384 blocks): done\nWriting superblocks and filesystem accounting information: 0/24\b\b\b\b\b \b\b\b\b\bdone","stderr":"< waiting for any device >\nmke2fs 1.45.4 (23-Sep-2019)\nSending 'system_b' (92 KB) OKAY [ 0.006s]\nWriting 'system_b' FAILED (remote: 'Flashing is not allowed in Lock State')\nfastboot: error: Command failed"}

        Can someone tell me what I need to do to install Ubuntu Touch? The Phone is on Android 10, maybe this is the problem?

        stanwoodS KenedaK 2 Replies Last reply Reply Quote 0
        • stanwoodS Offline
          stanwood @Falconer78
          last edited by

          @falconer78 Did you first unlock the bootloader?
          Also, use the 0.8.8 installer version as the newest versions seem to not work well...

          Redmi Note 9S Stable
          If God has a computer, it must be a GNU/Linux

          1 Reply Last reply Reply Quote 1
          • KenedaK Offline
            Keneda @Falconer78
            last edited by

            @falconer78 said in Installation of Ubuntu Toch on Xiaomi Mi A2 doesn't work:

            remote: 'Flashing is not allowed in Lock State'

            That sounds like a locked bootloader.
            And yes, android 10 is not the right one to start with, android 9 is the basis for halium 9 ports.

            2015-2023 : Meizu MX4 ☠️⚰️✝️
            2023-2024 : Nexus 5 ☠️⚰️✝️
            2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
            🇲🇫🇬🇧

            1 Reply Last reply Reply Quote 0
            • F Offline
              Falconer78
              last edited by

              Hi, thank you for your respone. Although I'm in the developer options, the part "OEM unlocking is greyed out and I cannot change it to "on".

              Y 1 Reply Last reply Reply Quote 0
              • Y Offline
                Yoni @Falconer78
                last edited by

                @falconer78
                Turn on USB debugging, enter bootloader and through ADB execute:
                fastboot flashing unlock
                Should solve the issue hopefully.

                F 1 Reply Last reply Reply Quote 0
                • F Offline
                  Falconer78 @Yoni
                  last edited by

                  @yoni said in Installation of Ubuntu Toch on Xiaomi Mi A2 doesn't work:

                  @falconer78
                  Turn on USB debugging, enter bootloader and through ADB execute:
                  fastboot flashing unlock
                  Should solve the issue hopefully.

                  Thank you. Is there a guide or manual how to do the things you suggested?

                  Y 1 Reply Last reply Reply Quote 0
                  • Y Offline
                    Yoni @Falconer78
                    last edited by

                    @falconer78
                    Too many but there always seem to be specific issues related, I learned from researching, but if you're stuck I can try and help.. Did my suggestion work even work for you and did you get UT working?

                    F 1 Reply Last reply Reply Quote 0
                    • F Offline
                      Falconer78 @Yoni
                      last edited by Falconer78

                      @yoni I'm not quit sure if I got all your steps correctly.

                      1. Turn on USB debugging --> done
                      2. Enter bootloader --> how do I do that? Edit: it turns out that the phone has to be connected to the wifi, so OEM unlocking is on now

                      But when starting the phone with Powerbutton+Volume down I only get a screen that says "Fastboot", but nothing happens, so I can't execute your third advice

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

                        @falconer78 If you have unlocked the phone and USB Debugging you should be able to use the installer again IIRC you can leave the phone in fastboot.

                        1 Reply Last reply Reply Quote 1
                        • Y Offline
                          Yoni @Falconer78
                          last edited by

                          @falconer78
                          XDA is probebly the right place to get your phone prepared for UbuntuTouch, here's a guide:
                          https://forum.xda-developers.com/t/guide-how-to-unlock-bootloader-xiaomi-mi-a2.3831484/
                          Once you'll get past the unlocking, you can start here: https://ubuntu-touch.io/get-ubuntu-touch and here: https://docs.ubports.com/en/latest/userguide/install.html

                          F 1 Reply Last reply Reply Quote 1
                          • F Offline
                            Falconer78 @Yoni
                            last edited by

                            @yoni Thank you, I will give it a try.

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