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

    MX4 Ubuntu Edition: FAILED (remote: unknown command)

    Scheduled Pinned Locked Moved Support
    42 Posts 4 Posters 11.0k 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.
      • jamiewebJ Offline
        jamieweb @AlainW94
        last edited by

        @AlainW94 Thanks for this. Will it prevent me from having to do the restore to the original Canonical UT like @Lakotaubp has detailed? Or do I still need to do that, and then patch ubports-installer with your code afterwards?

        AlainW94A 1 Reply Last reply Reply Quote 0
        • AlainW94A Offline
          AlainW94 @jamieweb
          last edited by AlainW94

          @jamieweb Good question, I don't know why we have to step first into the installation of Canonical version. If I was you (easy to say), I tried first to flash the ubuntu recovery, then I start the phone on it, and try to use ubports-installer, if that works, you have gain a lot of time, if not.... You will have to reinstall it. During my issue with my IMEI, I played a lot with the phone by switching between Flyme and UT, all the time, the only thing I did was to flash the ubuntu recovery, start on it and run the modified ubports-installer to get UT back (without having to re-install the original Canonical first).

          Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
          Never forget that they are much more ideas inside two heads than in one...

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

            @jamieweb Don't take this as gospel but Flyme has a locked bootloader you can't get in. UBports is not a standard ROM you need UBports Recovery for the installation so you cannot just flash it. You need the original UT first or UBports will not install on the MX4. As far as I know you will not have any insecure/untrusted stuff left. That is what UBports is after all. Safe and secure. The exact technical reason for this method is above my knowledge.
            I did exactly what you have UT to Flyme back to UT then to UBports UT using the tools mentioned.

            Please someone correct anything that is wrong in what I have said.

            jamiewebJ 1 Reply Last reply Reply Quote 1
            • jamiewebJ Offline
              jamieweb @Lakotaubp
              last edited by

              @Lakotaubp Ok thanks, I'll see if I can give this a go tonight. To confirm, once I've done this, I won't have to do it again as long as I stick with UBports?

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

                @jamieweb Yes that's right, but once you've got UBports you will not want to change ☺

                jamiewebJ 1 Reply Last reply Reply Quote 0
                • jamiewebJ Offline
                  jamieweb @Lakotaubp
                  last edited by

                  @Lakotaubp That's the idea! 🙂 Will this also resolve the FAILED (remote: unknown command) issue?

                  I think I'm actually going to try @AlainW94's modified code first, as as far as I can tell it seems like ubports-installer is just trying to reboot the phone into recovery, but Meizu phones don't support that in the way it's trying to do it.

                  AlainW94A 1 Reply Last reply Reply Quote 0
                  • AlainW94A Offline
                    AlainW94 @jamieweb
                    last edited by

                    @jamieweb said in MX4 Ubuntu Edition: FAILED (remote: unknown command):
                    it seems like ubports-installer is just trying to reboot the phone into recovery, but Meizu phones don't support that in the way it's trying to do it.

                    Exactly

                    Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
                    Never forget that they are much more ideas inside two heads than in one...

                    jamiewebJ 1 Reply Last reply Reply Quote 1
                    • jamiewebJ Offline
                      jamieweb @AlainW94
                      last edited by

                      @AlainW94 Just as a side note before I move forward with this - is there a way to download the source for a snap package, a bit like apt source? Or should I just pull it from GitHub?

                      AlainW94A 1 Reply Last reply Reply Quote 0
                      • AlainW94A Offline
                        AlainW94 @jamieweb
                        last edited by

                        @jamieweb pull it from github, here are my personal notes when I did it :

                        git clone https://github.com/ubports/ubports-installer.git
                        cd ubports-installer
                        npm run-script dist:linux
                        ./setup-dev.sh
                        npm start
                        

                        Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
                        Never forget that they are much more ideas inside two heads than in one...

                        jamiewebJ 1 Reply Last reply Reply Quote 3
                        • jamiewebJ Offline
                          jamieweb @AlainW94
                          last edited by

                          @AlainW94 Awesome, this has worked! I'm in Ubuntu Touch setting it up now! Thanks for your help, I thoroughly appreciate it.

                          AlainW94A LakotaubpL 2 Replies Last reply Reply Quote 2
                          • AlainW94A Offline
                            AlainW94 @jamieweb
                            last edited by

                            @jamieweb Awesome ! I'm happy for you.👍 🕺

                            Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
                            Never forget that they are much more ideas inside two heads than in one...

                            jamiewebJ 1 Reply Last reply Reply Quote 1
                            • jamiewebJ Offline
                              jamieweb @AlainW94
                              last edited by jamieweb

                              @AlainW94 Now I'm working on being able to use the device without using the lock button (https://forums.ubports.com/topic/2462/ut-on-meizu-mx4-without-using-physical-buttons/15). Just set up adb shell and monitoring dbus for the right commands to lock+sleep the phone using a launcher icon rather than the physical button.

                              Also @AlainW94, I'm working on a blog article about my whole UT setup experience. Would I be OK to include a section on your ubports-installer code change? I will give full and clear credit with your name, Twitter, own blog, whatever you want.

                              AlainW94A 1 Reply Last reply Reply Quote 2
                              • AlainW94A Offline
                                AlainW94 @jamieweb
                                last edited by

                                @jamieweb Of course, no problem at all if that can help other people experiencing this with their Meizu 😉 If you need help for your script, please post in your original thread and I will try to help you. Good job.

                                Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
                                Never forget that they are much more ideas inside two heads than in one...

                                jamiewebJ 1 Reply Last reply Reply Quote 2
                                • LakotaubpL Offline
                                  Lakotaubp @jamieweb
                                  last edited by Lakotaubp

                                  @jamieweb Glad it worked for you. Well done. Very interesting please let me know when your blog is ready i would like to have a read and thanks @AlainW94 for your input too.

                                  AlainW94A 1 Reply Last reply Reply Quote 1
                                  • AlainW94A Offline
                                    AlainW94 @Lakotaubp
                                    last edited by

                                    @Lakotaubp My pleasure

                                    Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
                                    Never forget that they are much more ideas inside two heads than in one...

                                    1 Reply Last reply Reply Quote 0
                                    • jamiewebJ Offline
                                      jamieweb @AlainW94
                                      last edited by

                                      @AlainW94 I'm just working on my article now. Which credit would you like me to give? Do you have a website, Twitter, etc that you'd like a link to? As well as a link to your forum profile?

                                      AlainW94A 1 Reply Last reply Reply Quote 1
                                      • AlainW94A Offline
                                        AlainW94 @jamieweb
                                        last edited by

                                        Hi @jamieweb I don't have twitter or a website so you can link my profile if you want. Many thanks to you and of course, I'm curious to read your article 😉

                                        Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
                                        Never forget that they are much more ideas inside two heads than in one...

                                        jamiewebJ 1 Reply Last reply Reply Quote 1
                                        • jamiewebJ Offline
                                          jamieweb @AlainW94
                                          last edited by

                                          @AlainW94 @Lakotaubp Hi, the article is now live!

                                          https://www.jamieweb.net/blog/installing-ubports-ubuntu-touch-on-the-meizu-mx4-ubuntu-edition/

                                          Thank you all for your help, I thoroughly appreciate it!

                                          AlainW94A LakotaubpL 2 Replies Last reply Reply Quote 2
                                          • AlainW94A Offline
                                            AlainW94 @jamieweb
                                            last edited by

                                            @jamieweb Nice article, it is clear and easy to understand. Thanks for your feedback and the mention !

                                            Meizu Pro 5, Meizu Pro 5, Meizu Pro 5, Meizu Pro 5 (Yes I have 4 of them)
                                            Never forget that they are much more ideas inside two heads than in one...

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

                                              @jamieweb Thanks Jamie good article, should prove very useful and helpful. Couple of very small things with my Ubports hat on that you are probably aware of, one that the UBports foundation is not yet incorporated into German law and that other versions of the installer are available https://github.com/ubports/ubports-installer. That aside once again thank you for your time and effort in writing the blog really enjoyed it.

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