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

    Flashing Ubuntu Touch to ZUK Z1

    Scheduled Pinned Locked Moved Porting
    15 Posts 4 Posters 9.9k 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.
      • C Offline
        ChrisLuck
        last edited by

        Part of my problem was, that the BoardConfig.mk form cyanogenmod declares the variables

        BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
        BOARD_RAMDISK_OFFSET := 0x02000000

        Those variables are not used by the ubuntu makefiles, so i changed those two lines to:

        BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01E00000

        Sadly, it still doesn't boot.

        Z 1 Reply Last reply Reply Quote 0
        • Z Offline
          zeeshanhyder
          last edited by

          can u send me link to last_kmsg? I am getting them now. When your device bootloops reboot back to bootloader directly and then boot (not flash) recovery.img from ubuntu build. Then get the last_kmsg and dmesg with following command:

          adb shell cat /proc/last_kmsg > last_kmsg

          And then pastebin it and send me link. I'll see if i can help.

          1 Reply Last reply Reply Quote 0
          • Z Offline
            zeeshanhyder @ChrisLuck
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • C Offline
              ChrisLuck
              last edited by

              I have no bootloop. The phone just gets stuck, showing me the vendor-logo (no lsusb entry and no adb).
              I can user power+volup+voldown to get into recovery but i never had the /proc/last_kmsg file.

              What i did so far:
              I unpacked my boot.img and double checked that all parameters (pagesize, base, ramdisk-offset, tags-offset) are exactly the same as in the boot.img from a recent cyanogenmod nightly.
              I also made sure that the dt.img is exactly the same by repacking my boot.img with the dt.img from cyanogenmod.

              Z 1 Reply Last reply Reply Quote 0
              • Z Offline
                zeeshanhyder @ChrisLuck
                last edited by

                @ChrisLuck Dont worry about lsusb. Even i am not getting that right now. Give me your github sources link. Let me look at that. I am getting recovery logs now. Thankfully. But unfortunately there's not much support out there so progress is very slow.

                1 Reply Last reply Reply Quote 0
                • F Offline
                  frantisheq
                  last edited by frantisheq

                  @ChrisLuck can you publish sources? i am porting CM to lenovo vibe z2 pro and i'd like to port ubuntu to it. thank you

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    ChrisLuck
                    last edited by ChrisLuck

                    @frantisheq That looks like a nice phone to me, never heard about it before. You might have more luck than me with this one as it is running KitKat 🙂
                    I got the Z1 booting into adb but that is all i achieved. Everything that relies on the vendor-blobs (like graphics, network ...) is not working. The reason for this is most likely the fact, that I only have vendor blobs for android 5.1.1 which don't match the Kitkat Android that is used in Ubuntu Touch.

                    I will not upload my sources as i don't know how to do that in a clean way but i would love to help you in getting your port booting to adb.

                    Since your phone is not supported by Cyanogenmod (that's where I got the kernel and device sources for mine) your best bet might be to use the device/kernel from the oneplus one. The SOC is the same, so booting (without graphics and so on) might work with those sources.

                    One problem you will have is, that you can't get the device tree sources for your device. One way to get around this is to dump your Android boot.img and extract the dt.img from there with the unpackbootimg tool.
                    Note: There is a difference between the 'device' folder in your build directory and the device-tree i am talking about right now. That is something that confused me in the beginning.
                    You can get an introduction to device trees here.

                    I am also a beginner at all of this but I would love to help, so let me know if you need help 🙂

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      frantisheq
                      last edited by

                      thanks, i have kernel sources for 4.4 nad 5.0 and already working CM12.1 here http://forum.xda-developers.com/t/k920
                      i'll just try to port cm11 first and then we'll see

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        Frano212
                        last edited by

                        Hi, I'd really love to have Ubuntu touch on my zuk but I know barely anything.
                        Can someone help me? Thanks

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          ChrisLuck
                          last edited by

                          Hi Frano212,
                          I stopped working on the port. It does boot up into adb but graphics and so on are not working. It is very hard to get help, so i will just buy the new meizu pro 5 ....

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