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

    Need help to flash Meizu5 pro originally on Android. Problem with the cache partition

    Scheduled Pinned Locked Moved Support
    meizu pro 5
    43 Posts 6 Posters 14.0k 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.
      • M Offline
        mlinodasilva @hans1977se
        last edited by mlinodasilva

        @hans1977se alright, decompressing the version1.tar.xz yields these files:

        720.0 # tree
        .
        |-- system
        |   `-- etc
        |       |-- system-image
        |       |   |-- channel.ini
        |       |   `-- config.d
        |       |       |-- 00_default.ini -> ../client.ini
        |       |       `-- 01_channel.ini -> ../channel.ini
        |       `-- ubuntu-build
        `-- version-1.tar.xz
        

        as for the keyring file:

        729.0 # tree
        .
        |-- device-60f53a5768e9340729d3a5ef9263bd3a9726792e7d0dbf830e5b124938dd419a.tar.xz
        |-- device-60f53a5768e9340729d3a5ef9263bd3a9726792e7d0dbf830e5b124938dd419a.tar.xz.asc
        |-- keyring-4c4e7ef380ebcfa2c31084efa199138e93bfed8fc58aa3eb06bdf75a78af9b57.tar.xz
        |-- keyring-4c4e7ef380ebcfa2c31084efa199138e93bfed8fc58aa3eb06bdf75a78af9b57.tar.xz.asc
        |-- system
        |   `-- usr
        |       `-- share
        |           `-- system-image
        |               |-- archive-master.tar.xz
        |               `-- archive-master.tar.xz.asc
        |-- ubports-d50c18b27590af5734a826c4f7857d8909b0e0f902d21af142a780620c8eb58b.tar.xz
        `-- ubports-d50c18b27590af5734a826c4f7857d8909b0e0f902d21af142a780620c8eb58b.tar.xz.asc
        

        In any case couldn't it be possible to manually download the kernel files and flash them like I did originally for the canonical ubuntu-touch? I used the method from this link: https://askubuntu.com/questions/767323/how-to-install-ubuntu-on-meizu-pro-5-that-was-originally-with-android

        I would need a kernel-OTA-15.zip (with boot.img, dtb, logo.bin, ldfw), ubuntu*.tar.xz, device*.tar.xz, custom*.tar.xz, version*.tar.xz. Basically doing whatever worked in the past with canonical...

        Anyway, there seems to be nothing wrong with my partition table as shown by the command below...

        746.0 # adb shell sgdisk --print /dev/block/sda | grep -v GUID
        Disk /dev/block/sda: 7633920 sectors, 29.1 GiB
        Logical sector size: 4096 bytes
        Partition table holds up to 128 entries
        First usable sector is 6, last usable sector is 7633914
        Partitions will be aligned on 64-sector boundaries
        Total free space is 11386 sectors (44.5 MiB)
        
        Number  Start (sector)    End (sector)  Size       Code  Name
           1            1024            1279   1024.0 KiB  0700  private
           2            1280            1343   256.0 KiB   0700  proinfo
           3            1344            1407   256.0 KiB   0700  misc
          21            2048            3071   4.0 MiB     0700  param
          22            3072            5119   8.0 MiB     0700  efs
          23            5120            5631   2.0 MiB     0700  pnv
          24            5632            6655   4.0 MiB     0700  ldfw
          25            6656            7679   4.0 MiB     0700  dtb
          26            7680           13823   24.0 MiB    0700  bootimg
          27           13824           22015   32.0 MiB    0700  recovery
          28           22016           30207   32.0 MiB    0700  bootlogo
          29           30208           35327   20.0 MiB    0700  rstinfo
          30           35328           40447   20.0 MiB    0700  mnv
          31           40448           45567   20.0 MiB    0700  reserved1
          32           45568           50687   20.0 MiB    0700  reserved2
          33           50688           55807   20.0 MiB    0700  reserved3
          41           65536          720895   2.5 GiB     0700  system
          42          720896          851967   512.0 MiB   0700  custom
          43          851968          983039   512.0 MiB   0700  cache
          44          983040         7633914   25.4 GiB    0700  userdata
        
        S 2 Replies Last reply Reply Quote 0
        • S Offline
          Stefano @mlinodasilva
          last edited by Stefano

          @mlinodasilva Ok, let's try something else here.
          Install TWRP recovery, wipe it all clean, download my backup of Ubports_ota1.zip from : https://drive.google.com/file/d/0B1z6xtxx8BDjVFQ4czZmbzhwWjg/view?usp=sharing
          unzip it, and restore it with TWRP.
          It's a fresh, clean, formated install of Ubports_ota1. Then just flash recovery-turbo.img. Then

          Hope it works. ( I did once the same time when I had a similar problem and then it all works like a charm) Fingers crossed.

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

            @mlinodasilva if you search xda site for multirom v33 ,there is a link for all the bits and pieces of pro 5 (when using fastboot i always have to use sudo , or nothing happens)

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

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • S Offline
                Stefano @mlinodasilva
                last edited by

                @mlinodasilva Just try to restore that backup of mine and let me know how it did go.

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  mlinodasilva @Stefano
                  last edited by mlinodasilva

                  @Stefano That worked thank God!! I had an additional difficulty the recovery couldn't flash the data partition for some reason so I reformated it, I suspect the issue might have been lying there. For the sake of it I tried ubuntu-device-flash and it still didn't work, but this time he got stuck on a progress bar.

                  Anyway I flashed all the partition images you sent me, and soon enough I had ubports booting!

                  I cannot state how much I am grateful for your help, you have been most kind in helping me, I was going nuts oer this. THANKS!

                  Now I just have to figure out how to make my SIM work again (I never could get it to work in anything else than the slim slot with the canonical image, and now it doesn't seem to recognize the sim in any of the two slots, but thats probably an hardware fault I have had since the beginning, these meizu 5 phones are known to have random hardware issues).

                  In any case, I have internet, camera, and hopefully GPS already working, so it's already a nice start. Thanks again Stefano!

                  H S 3 Replies Last reply Reply Quote 1
                  • H Offline
                    hans1977se @mlinodasilva
                    last edited by

                    @mlinodasilva Very nice indeed, that @Stefano was able to help you to get ubports onto your phone! 🙂

                    I'm thinking that it is probably not only you having this problem so now when you have both his working files and your non-working files in the cache, could you try to compare to see if you can find something that looks wrong about them? In particular the files keyring and image-master files that looked strange in your log print would be interesting i think.

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      mlinodasilva @hans1977se
                      last edited by

                      @hans1977se I can upload my /root/.cache/ubuntuimages I haven't deleted it yet, would that be of interest?

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

                        @mlinodasilva Sure. Why not. More people will be able to compare then. Could be a good idea to limit the size if there are obviously unrelated files, though. 🙂

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

                          Update: Don't try to rsync your old canonical home folder in ubports, everything gets stuck, I'm in the middle of wiping my data folder and reflashing again 😛

                          It's gonna be a pain in the ass re-importing the contacts, calendar, etc... is there a list of the relevant hidden folders anywhere?

                          H 2 Replies Last reply Reply Quote 0
                          • H Offline
                            hans1977se @mlinodasilva
                            last edited by

                            @mlinodasilva Copy the .local/share/history-service/history.sqlite, the .local/share/evolution/addressbook/system/contacts.db and your camera pictures. Should take you quite a step, hopefully.

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

                              @mlinodasilva 🙂

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

                                @mlinodasilva I would wipe all partitions apart from ExternalSD ( not rm -rf, but wipe in setting of TWRP)
                                Then I would do fastboot -w, reboot to recovery,
                                then I would flash Flyme - the one you flashed when converting from a to i/g firmware. IT might show some errors, but it will flash successfully.
                                Unlock the bootloader if it gets locked again.
                                Start the Flyme, enable the Developer options + Usb debbuging.
                                Reboot to fastboot, flash TWRP recovery.
                                Reboot to recovery, wipe ( not rm -rf ) all partitions apart from ExternalSD.
                                Now reboot to fastboot and flash recovery-turbo.img
                                Reboot to recovery
                                In terminal type: adb devices if it list your device.
                                Now try ubuntu-device-flash..... again.

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  mlinodasilva @Stefano
                                  last edited by

                                  @Stefano this is to try to solve the issue
                                  With the phone not detecting the SIM card? Did anyoneelse have this issue in the past?

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

                                    @mlinodasilva What happened that your phone doesn't recognise sim cards? In settings, are there an IMEI numbers or is it says None?
                                    This might help to fix the issues with the partitions on your phone, since you have some glitches there, so maybe a complete wipe + factory reset + flashing Flyme and later Ubports might be a sollution.
                                    Not sure about the recognising the SIM, but give it a shot.

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

                                      @mlinodasilva I forgot to tell that rsync between my Nexus 4 with Canonical image and Nexus 5 with ubports image works for me.

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

                                        Heh, it seems I have a string of bad luck regarding this phone (in between the hassle it was getting it from China, then flashing canonical ubuntu, then breaking the screen, trying to get a replacement one, the ubports).

                                        I tried anther chip and it works, so for some reason my SIM is malfunctioning, will get a replacement one...

                                        I've been slowly reinstalling stuff, I noticed that the GPS has trouble working, although it seems to be recognised, but I remember it was already difficult when indoors during the days of canonical. Accelerometer works, but the compass app doesn't seem to be working. Minor hurdles...

                                        Anyway, by request I uploaded my ubuntuimage folder from /root/.cache the link is below:
                                        https://www.dropbox.com/s/0464g6vpm6kzgsb/ubuntuimages.tar.gz?dl=0

                                        S 1 Reply Last reply Reply Quote 2
                                        • S Offline
                                          Stefano @mlinodasilva
                                          last edited by

                                          @mlinodasilva where would you get a replacement chip/motherboard from? I'm interested to buy one, if there is a good price? Let me know, please?

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

                                            Sorry for not being clear, by 'chip' I meant the SIM

                                            Anyway I can share my experience with ordering my spare screen: As you can imagine, it was not easy. First of all Meizuworld was a no go, they don't seem to accept orders from outside China. So I registered an account in aliexpress and made a search for a replacement screen. I was a bit weary from ordering from some random supplier there so I decided that I would pay through paypal to have some sort of protection. This already limited my options since most of these China suppliers don't accept paypal. Still I was left with about 10 stores with an acceptable range of prices. Then I put orders for the screen with int. Shipping and in 3 cases I got refunded and my order cancelled with no explanation. At the 4th attempt a supplier from Hong-Kong did ship it. 1week attempts at purchasing plus about 3weeks shipping (with very nice tracking and packaging). I also ordered a plastic case for my phone from another supplier using the same method. doing

                                            This is what I would suggest doing, but it takes time...

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

                                              I have some more questions regarding Meizu on ubports:

                                              1. If I place a phone call I cannot hear anything unless I plug the phones or put it on loudspeaker? Is this a bug or do I have to put some feature on somewhere in the options?

                                              2. The calls and ams scopes no longer exist? They were very useful... How can I get a listing of the phone calls history with ubports?

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