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

    Meizu pro 5 From ubuntu OTA15 to last ubports

    Scheduled Pinned Locked Moved Support
    11 Posts 4 Posters 734 Views 1 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.
      • pgpP Offline
        pgp
        last edited by pgp

        Hello -all,
        I installed ubuntu 15.04 on a Meizu pro 5 Flyme 64 Go, years ago with this method :
        https://forum.xda-developers.com/meizu-pro-5/development/tool-ubuntu-touch-installer-t3469304
        Now I'm interested to migrate to the latest stable UbPorts release.
        Can I do that just changing the repositorys in the phone?

        1C82 5449 6B10 0D60 AD69 952C 111A D422 2FD7 CF02

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

          The pro5 is on the installer now try that first.

          pgpP 1 Reply Last reply Reply Quote 0
          • pgpP Offline
            pgp @Lakotaubp
            last edited by pgp

            thank you @Lakotaubp, for development, (the short story). I tried the installer UBports Installer 0.4.14-beta. First time it failed to flash the microcode with fastboot. I tested adb : I see the device, I log in a terminal. But fastboot don't see any device. Test done after :

            $ adb reboot bootloader
            

            After that the meizu Ubuntu boot screen appear (like @ every reboot).

            But the "fastboot device" command executed in root don't show anything. Even after the command :

            fastboot oem unlock
            

            So, I tested without the option "flashing the microcode" and the installer said "OK it works" but the phone screen said approximatively "error, contact meizu", in several languages. The phone reboot with no issue on the older UbuntuTouch sytem like nothing happens.

            First time I installed ubuntu, (phone was flyme) it was with a script found on a forum, I don't still have.

            Here is the code :

            #!/sbin/sh
            
            #This file is part of Universal Systemless Installer
            #
            #    The Universal Systemless Installer scripts are free software: you can redistribute
            #    it and/or modify it under the terms of the GNU General Public License as published
            #    by the Free Software Foundation, either version 2 of the License, or
            #    (at your option) any later version, w/Systemless Xposed installable zip exception.
            #
            #    These scripts are distributed in the hope that it will be useful,
            #    but WITHOUT ANY WARRANTY; without even the implied warranty of
            #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
            #    GNU General Public License for more details.
            sleep 2
            ##########################################################################################
            # Changelog
            ##########################################################################################
            #
            # v0.1b - beta, first public release
            #       -
            # v0.1a - alpha tested and working
            #       -
            
            ##########################################################################################
            # Variables
            ##########################################################################################
            OUTFD="/proc/self/fd/$2"
            ZIPDIR="${3%/*}"
            APP="Ubuntu-Touch Installer"
            AUT="st0rm77"
            VER="0.1b"
            LIC="GPLv2"
            
            ##########################################################################################
            # Cleaning up
            ##########################################################################################
            trap '
            ui_print " "
            ui_print "***********"
            ui_print "Cleaning up"
            ui_print "***********"
            
            ui_print "- Reverting library path"
            PATH=$PATH_ORG
            LD_LIBRARY_PATH=$LD_LIBRARY_PATH_ORG
            
            ui_print "- Unmounting"
            mountpoint -q /system && umount /system
            
            sync
            
            cat /tmp/recovery.log|grep -v "^GR "|grep -v "^EV: ">/external_sd/recovery.log
            
            ui_print " "
            exit
            ' 0 1 2 3 15
            
            ##########################################################################################
            # Functions
            ##########################################################################################
            ui_print(){ printf "ui_print $*\nui_print \n">$OUTFD;}
            
            write_and_verify(){
              target=`find /dev/block/platform -type l -path '*by-name*' -name "$2"`
              ui_print "- Flashing $2"
              dd bs=4096 if=$1 of=$target conv=fsync
              checksum=`md5sum $1|cut -d' ' -f1`
              flashsum=`dd if=$target bs=$(wc -c <$1) count=1|md5sum|cut -d' ' -f1`
              [ "${flashsum:=1}" == "${checksum:=2}" ] \
                && ui_print "- Verifying $2: ok" \
                || { ui_print "! Failed, verify error on $2";exit 1;}
            }
            
            ##########################################################################################
            # Banner
            ##########################################################################################
            ui_print " "
            ui_print "******************************"
            ui_print "    $APP"
            ui_print "        for Meizu Pro 5"
            ui_print "          ver: $VER"
            ui_print " "
            ui_print "      written by: $AUT"
            ui_print "    Licensed under: $LIC"
            ui_print "******************************"
            ui_print " "
            
            ##########################################################################################
            # Formatting and mounting /system
            ##########################################################################################
            #target=`find /dev/block/platform -type l -path '*by-name*' -name 'system'`
            #/sbin/mke2fs -t ext4 -b 4096 "$target"
            #/sbin/e2fsck -y "$target"
            
            ui_print "- Mounting /system (rw)"
            mountpoint -q /system || mount -o rw /system \
             || ui_print_exit "! Failed, unable to mount /system"
            
            ##########################################################################################
            # Updating paths
            ##########################################################################################
            PATH_ORG=$PATH
            PATH=/sbin:/system/bin:/system/xbin
            
            LD_LIBRARY_PATH_ORG=$LD_LIBRARY_PATH
            LD_LIBRARY_PATH=.:../lib64:../lib
            
            ui_print "- Updating library path"
            
            ##########################################################################################
            # Unpack & Flash
            ##########################################################################################
            
            #mount /system
            mountpoint -q /system || mount /system
            
            #unpack
            for file in ${ZIPDIR}/*.xz;do
             filename=${file##*/};filename=${filename%-*}-*.xz
             ui_print "- Unpacking ${filename}";
             tar -xf "$file" -C "/"
            done
            
            #write partitions
            write_and_verify "/partitions/logo.bin" bootlogo
            write_and_verify "/partitions/dtb" dtb
            write_and_verify "/partitions/boot.img" bootimg
            
            exit 0
            

            A question is : If it works a first time, It means my phone must be international and fastboot unlocked? No?

            So I will try to investigate why fastboot don't see my device.

            1C82 5449 6B10 0D60 AD69 952C 111A D422 2FD7 CF02

            LakotaubpL S 2 Replies Last reply Reply Quote 0
            • LakotaubpL Offline
              Lakotaubp @pgp
              last edited by

              @pgp Remind me what OS you are using on pc

              pgpP 1 Reply Last reply Reply Quote 0
              • pgpP Offline
                pgp @Lakotaubp
                last edited by

                @Lakotaubp I use ubuntu LTS and debian, but under my debian (buster), ubports-installer don't works.

                1C82 5449 6B10 0D60 AD69 952C 111A D422 2FD7 CF02

                pgpP 1 Reply Last reply Reply Quote 0
                • pgpP Offline
                  pgp @pgp
                  last edited by pgp

                  I still don't understand why is my fastboot seems locked. I hope I'll don't have to re-install flymeOS to unlock that.
                  I maye just don't have the good drivers on my laptop : I just install adb and fastboot like this :

                  # apt install fastboot adb
                  

                  Same result after :

                  apt install android-tools-adb android-tools-fastboot
                  

                  Any idea?

                  1C82 5449 6B10 0D60 AD69 952C 111A D422 2FD7 CF02

                  1 Reply Last reply Reply Quote 0
                  • pgpP Offline
                    pgp
                    last edited by

                    Maybe a indication here : https://forum.xda-developers.com/meizu-pro-5/development/recovery-twrp3-0m86patchedst0rm77-t3469296/post68868682#post68868682

                    In the end they write :

                    Warning:
                    ** If you flash an official update.zip from Flyme, remove bootloader, ldfw & recovery from ZIP
                    *
                    ** Otherwise you'll find yourself with a locked bootloader ** *

                    If it is my case (I don't remeber the details of my first ubuntu touch istall) It means I'm fucked ?

                    1C82 5449 6B10 0D60 AD69 952C 111A D422 2FD7 CF02

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Marathon2422
                      last edited by

                      Sounds like your PC is not seeing fastboot, are you using sudo for all fastboot commands

                      Could you put an earlier unbuntu in a VM or on a thumb drive.

                      I had an Android device recently , win 10 would see Adb but not Fastboot, had to switch OS's in the middle of it ( to Deepin)

                      pgpP 1 Reply Last reply Reply Quote 0
                      • pgpP Offline
                        pgp @Marathon2422
                        last edited by pgp

                        Thnk you @Marathon2422 . Yes all commands are done with root on debian (buster), and sudo su on ubuntu (18.04 LTS).
                        Next step, I think I will try this from this post : https://forums.ubports.com/topic/2755/meizu-pro-5-flyme-os-to-ubuntu-touch-modem-update-fingerprint-function

                        **Step 1:Unlock Bootloader
                        Download: https://drive.google.com/file/d/1SpPqSFQ0b7thvs_f2VqexDxQTBK6bQP5/view?usp=sharing
                        Rename to update.zip and put inside your device storage.
                        Rebooot to recovery pressing Volume up + Power and choose "System Upgrade"
                        Unlock Bootloader 2nd Method: https://drive.google.com/file/d/1U09dVhiBJebPMwQ1q99R2RzBC8hErLuI/view?usp=sharing
                        Just rename the file to update.zip put in your internal storage go to recovery and update.
                        Now your device has an unlocked bootloader.

                        Step 2: Flash TeamwinRecovery
                        Download: https://drive.google.com/file/d/1T30ug5TQqzRxZiKsFk3IhpR5c218N4Pc/view?usp=sharing
                        Reboot the device to fastboot pressin Volume Down + Power
                        Open a terminal and do the command:

                        fastboot flash recovery TWRP_3.0_m86.img*
                        *

                        1C82 5449 6B10 0D60 AD69 952C 111A D422 2FD7 CF02

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          Stefano @pgp
                          last edited by Stefano

                          @pgp You would need to resize the .cache partition on your phone. It's too smalll to contain all the files needed to flash 16.04
                          Search Increase Cache Partition on this forum, you'll find the answers.

                          Official Ubports won't work, install it with ubuntu-device-flash from Terminal.

                          Edit: also need to remove all files from .cache/recovery as it is now full of files from unsuccessful instalation.

                          pgpP 1 Reply Last reply Reply Quote 0
                          • pgpP Offline
                            pgp @Stefano
                            last edited by

                            @Stefano Thank you for the advice. I'll try asap.

                            1C82 5449 6B10 0D60 AD69 952C 111A D422 2FD7 CF02

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