Navigation

    UBports Robot Logo

    UBports Forum

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

    UNSOLVED Nexus 5 - can't enable developers mode due to bootloop.

    Support
    6
    19
    450
    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.
    • R
      Rondarius @capaterson last edited by

      @capaterson
      Ok, lets try this then:
      Download the latest Factory image from this site, not the OTA:

      https://developers.google.com/android/images#hammerhead

      Extract the file in an appropiate place.
      Open the folder, right click and open the terminal in the folder. Or type in the path manually in the terminal.

      Run in terminal:

      sudo ./flash-all.sh

      When it's done run:

      sudo fastboot reboot bootloader

      do not reboot your phone into android, it will encrypt your device.

      Install Ubuntu touch using the Ubports installer.

      I hope this will work.

      C 3 Replies Last reply Reply Quote 0
      • MrT10001
        MrT10001 @capaterson last edited by

        @capaterson From lots of experience splitting and repairing Nexus 5, what you are experiencing is most likely failure of the storage chip (eMMC). It looks like the boot sector is fine so you will get to recovery. However if won't install recovery or hangs, that part of the eMMC has failed. to make sure, install the latest version of TRWP if you can and see if you can format all the partitions. If you get that far, but it won't format all the partitions and gives errors, the motherboard is toast unless you have a re-flow machine that may repair bad solder contacts that is the usual cause after normal wear and tear. The caveat to this is when LineageOS is installed. This resizes the partition table and won't allow Ubuntu touch to be installed as it resizes one of the partitions too small. There is a way to resize the partitions found on the XDA Developers forums:
        [https://forum.xda-developers.com/t/repartition-nexus-5-repartition-hammerhead-16gb-32gb-ua-twrp.3844395/](link url)
        Then try again. It may work, but from experience not usually. Nexus 5 (Hammerhead) issues:
        Bootloop - bad power button, bad RAM, bad eMMC.
        Bootloader won't unlock, or unlocks and locks after a reboot - bad RAM, bad eMMC.
        Cannot Install a ROM, but can install recovery - if you can format the partitions and resize them.

        Most useful of tools:
        Nexus 5 repartition zip
        Nexus Root Toolkit (windows)
        Android Studio (windows and Linux, yet to try it on Mac)
        Ubuntu Touch Installer - if an issue arises you can decipher it usually and nail down the issue.

        Hardware wise - have a multitude of USB to micro USB cables to hand, that can cause issues, swapping them round can solve issues.
        Avoid USB 3 sometimes. Sometimes, esp on front ports of a desktop PC, can cause issues.

        Xiaomi Redmi Note 7.

        C 1 Reply Last reply Reply Quote 0
        • C
          capaterson @Rondarius last edited by

          @rondarius
          Thanks for your you instructions. Unfortunately it didn't work.
          I ran the first line of the script as you can see bellow:

          chris@christopher-System-Product-Name:~/hammerhead-m4b30z$ fastboot flash bootloader bootloader-hammerhead-hhz20h.img
          target reported max download size of 1073741824 bytes
          sending 'bootloader' (3124 KB)...
          OKAY [ 0.320s]
          writing 'bootloader'...
          FAILED (remote: flash write failure)
          finished. total time: 0.500s***

          And then, the second line:

          chris@christopher-System-Product-Name:~/hammerhead-m4b30z$ fastboot flash radio radio-hammerhead-m8974a-2.0.50.2.30.img
          target reported max download size of 1073741824 bytes
          sending 'radio' (45489 KB)...
          OKAY [ 1.690s]
          writing 'radio'...
          FAILED (remote: flash write failure)
          finished. total time: 1.870s

          And finally, the third line:

          chris@christopher-System-Product-Name:~/hammerhead-m4b30z$ fastboot -w update image-hammerhead-m4b30z.zip
          extracting android-info.txt (0 MB)...
          extracting boot.img (8 MB)...
          target reported max download size of 1073741824 bytes
          archive does not contain 'boot.sig'
          archive does not contain 'dtbo.img'
          archive does not contain 'dt.img'
          extracting recovery.img (9 MB)...
          archive does not contain 'recovery.sig'
          extracting system.img (996 MB)...
          archive does not contain 'system.sig'
          archive does not contain 'vbmeta.img'
          archive does not contain 'vendor.img'
          wiping userdata...
          Couldn't parse erase-block-size '0x'.
          Couldn't parse logical-block-size '0x'.
          mke2fs 1.45.5 (07-Jan-2020)
          /tmp/TemporaryFile-bYaV2x: Função de biblioteca ext2 não implementada durante configuração de superbloco
          /usr/lib/android-sdk/platform-tools/mke2fs failed with status 1
          mke2fs failed: 1
          error: Cannot generate image for userdata

          I had the fastboot unlocked but it seems that it still requires that I enable the developers mode witch I can’t do because of the bootloop.
          Any idea on how to enable the developers mode from my computer.

          1 Reply Last reply Reply Quote 0
          • C
            capaterson @Rondarius last edited by

            @rondarius

            I ran the UBports installer:
            Got this first mesage:Error: fastboot:flash: Error: Flashing failed: {"error":{"code":1},"stderr":"FAILED (remote: 'flash write failure')fastboot: error: Command failed"}
            I clicked on "ignore" and got this message: Error: fastboot:format: Error: formatting failed: Error: {"error":{"code":1,"cmd":"fastboot format cache"},"stdout":"Creating filesystem with 179200 4k blocks and 44832 inodes\nFilesystem UUID: 1b2fac8d-da28-402d-911a-7799676ee8fe\nSuperblock backups stored on blocks: \n\t32768, 98304, 163840\n\nAllocating group tables: 0/6\b\b\b \b\b\bdone \nWriting inode tables: 0/6\b\b\b \b\b\bdone \nCreating journal (4096 blocks): done\nWriting superblocks and filesystem accounting information: 0/6\b\b\b \b\b\bdone","stderr":"mke2fs 1.45.4 (23-Sep-2019)\nSending 'cache' (76 KB) OKAY [ 0.220s]\nWriting 'cache' FAILED (remote: 'flash write failure')\nfastboot: error: Command failed"}
            Ignored again and then the UBports Recovery window opens with several options. The installer believes Ubuntu Touch was installed but the phone returns to the google start window and stays in loop.

            1 Reply Last reply Reply Quote 0
            • C
              capaterson @Rondarius last edited by

              @rondarius
              I tried also: sudo magic-device-tool.
              It recognizes the device and then got the following execution:
              Flashing legacy channel

              Creating filesystem with parameters:
              Size: 734003200
              Block size: 4096
              Blocks per group: 32768
              Inodes per group: 7472
              Inode size: 256
              Journal blocks: 2800
              Label:
              Blocks: 179200
              Block groups: 6
              Reserved block group size: 47
              Created filesystem with 11/44832 inodes and 5813/179200 blocks
              target reported max download size of 1073741824 bytes
              erasing 'cache'...
              OKAY [ 0.200s]
              sending 'cache' (13348 KB)...
              OKAY [ 0.650s]
              writing 'cache'...
              FAILED (remote: flash write failure)
              finished. total time: 1.031s
              Creating filesystem with parameters:
              Size: 29236371456
              Block size: 4096
              Blocks per group: 32768
              Inodes per group: 8192
              Inode size: 256
              Journal blocks: 32768
              Label:
              Blocks: 7137786
              Block groups: 218
              Reserved block group size: 1024
              Created filesystem with 11/1785856 inodes and 156120/7137786 blocks
              target reported max download size of 1073741824 bytes
              erasing 'userdata'...
              FAILED (remote: failed to erase partition)
              finished. total time: 0.162s
              rebooting into bootloader...
              OKAY [ 0.083s]
              finished. total time: 0.133s

              2021/09/01 18:41:37 Device is |hammerhead|
              Cannot parse channel information for device on http://system-image.ubports.com/ubports-touch/15.04/devel/hammerhead/index.json

              Move to your device to finish the setup.

              Cleaning up..

              Exiting magic-device-tool. Bye Bye

              1 Reply Last reply Reply Quote 0
              • C
                capaterson @MrT10001 last edited by

                @mrt10001
                Thanks for your instructions. Unfortunately the problem persists.

                I'm unable to install TRWT because it requires in addition to unlock, which I did, that I enable developers mode, that I can't because of the bootloop.

                I tried also the XDA link but it didn't work. See the transcript below:
                chris@christopher-System-Product-Name:~/hammerhead-m4b30z$ sudo fastboot flash bootloader hammerhead-recovery.img
                target reported max download size of 1073741824 bytes
                sending 'bootloader' (15358 KB)...
                OKAY [ 0.710s]
                writing 'bootloader'...
                FAILED (remote: invalid bootloader image)
                finished. total time: 0.890s
                chris@christopher-System-Product-Name:~/hammerhead-m4b30z$ sudo fastboot flash bootloader transformer-recovery.img
                target reported max download size of 1073741824 bytes
                sending 'bootloader' (6180 KB)...
                OKAY [ 0.420s]
                writing 'bootloader'...
                FAILED (remote: invalid bootloader image)
                finished. total time: 0.600s

                Do you have any clue on how to enable developers mode from my computer?

                Flohack 1 Reply Last reply Reply Quote 0
                • Flohack
                  Flohack @capaterson last edited by

                  @capaterson Either the bootloader image is really invalid or your device has physical damage. Plase try to reset to stock ROM from here: https://developers.google.com/android/images#hammerhead - 6.0.1 could be ok, if you want to be safest take 5.1.1 - Install according to their descriptions.

                  If this does not work your device might be damaged.

                  My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    capaterson @Flohack last edited by

                    @flohack
                    Thanks for your suggestion. I already tried it but it requires that I first enable developers mode which I can't do because of the bootloop.

                    Flohack 1 Reply Last reply Reply Quote 0
                    • Flohack
                      Flohack @capaterson last edited by

                      @capaterson So you are saying that the device wont stay in fastboot mode?

                      My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

                      1 Reply Last reply Reply Quote 0
                      • MrT10001
                        MrT10001 last edited by

                        It looks like the phone has a hardware issue with the eMMC (Solid state drive). If you have tried multiple USB cables and the device won't allow writing to certain sectors, the storage has failed.

                        Xiaomi Redmi Note 7.

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