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

    Problem with magic-device-tool and Nexus 5

    Scheduled Pinned Locked Moved OS
    15 Posts 4 Posters 3.2k 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.
      • flohackF Offline
        flohack
        last edited by

        Hi,

        are you able to join the Telegram chat for magic device tool? Its made by people outside UBports and so we are not the primary resource for support her πŸ˜ƒ

        You can join the group from a desktop client by clicking on this link: https://t.me/joinchat/AAAAAAiC4TTYHRddjUbpXg

        BR Florian

        My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

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

          @Flohack
          Thanks, I will try as soon as possible.
          Which way of installation do you suggest? Via TWRP?

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

            @tH3f0rC3 Actually the mdt is my preferred way since you cannot to it wrong πŸ™‚ TWRP will not install UBports at all...

            My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

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

              @Flohack
              Thats right, but you can move the file structure of UT to the device and installing UT in this way. You can find a description here: https://askubuntu.com/questions/767323/how-to-install-ubuntu-on-meizu-pro-5-that-was-originally-with-android

              Unfortunately I don't know if this way still works with the UBports image.

              MDT might be the easiest way, but as soon as something goes wrong, you can't really figure out where the problem comes from.
              I followed the instruction without succeed. Maybe someone else knows more and can help me.

              Best Regards

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                doniks @tH3f0rC3
                last edited by

                @tH3f0rC3

                well it's not that difficult to pull the magic out of the tool ( πŸ˜› sorry )

                Read through from here

                https://github.com/MariusQuabeck/magic-device-tool/blob/master/launcher.sh

                to ... I don't know where it leads you, probably

                https://github.com/MariusQuabeck/magic-device-tool/blob/master/devices/nexus5/ubuntu/legacywipe.sh

                and execute the actual commands manually to narrow down what fails where.

                1 Reply Last reply Reply Quote 0
                • H Offline
                  hans1977se @tH3f0rC3
                  last edited by

                  @tH3f0rC3 Both the Canonical way and the MDT sometimes have problems due to the cache content. I have used this workaround for MDT with success:

                  1. Switching the device off and leave it off for a while (30 seconds or so).
                  2. Remove your ~/.cache/ubuntuimages and all its content.
                  3. Start up in fastboot mode.
                  4. Re-run the MDTool.

                  Repeat the steps if it fails a few times (5 times or so). Also make sure bootfast tells you that it is unlocked.

                  The same kind of workaround also worked for me with the Canonical procedure.

                  It's of course better to dig down to the actual problem, but sometimes saving some time is also very useful. πŸ™‚

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

                    @hans1977se

                    Two good ideas, thanks! I will first try hans idea than doinks
                    I will give an update afterwards.

                    Best Regards,
                    tH3f0rC3

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

                      @tH3f0rC3
                      I still get the error message:
                      err: fork/exec /usr/bin/xz: cannot allocate memory

                      Again and again after cleaning cache and running MDT. Bootloader is unlocked.

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

                        @tH3f0rC3

                        I just checked the MDT code. The installation sticks at the following line:

                        ubuntu-device-flash --server=http://system-image.ubports.com touch --channel=ubp
                        
                        • orts-touch/legacy --device=hammerhead --bootstrap

                        And now I found the solution. As simple as it is...
                        Using su not sudo...

                        Flashing successful πŸ™‚

                        H 1 Reply Last reply Reply Quote 0
                        • D Offline
                          doniks
                          last edited by

                          Good to hear that it worked!

                          I didn't really get what solved it now. In the command you posted there was neither a su nor a sudo.Would be nice if you feed back to mdt what they did wrong and what needs to change such that it just works for the next guy

                          1 Reply Last reply Reply Quote 0
                          • H Offline
                            hans1977se @tH3f0rC3
                            last edited by

                            @tH3f0rC3 It's very nice that you found a solution for you, but I don't really understand why that worked for you. πŸ™‚ I followed the instruction, with sudo, just a couple of weeks ago and the only problem I had was that I had to remove the cache a couple of times before it worked.

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

                              @hans1977se
                              Maybe it worked for me, because I used a Raspberry Pi with Ubuntu Mate. I'm not quite sure how the user and sudoers group management works there.

                              I'm pretty sure that by using a "fully prepared" working system, this error does not occur.

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