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

    Manual install since ubports is failing

    Scheduled Pinned Locked Moved UBports Installer
    2 Posts 2 Posters 3.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.
      • V Offline
        vualeks
        last edited by

        Hi,

        I'm trying to install Ubuntu Touch on my old Xiaomi Mi6 (that is not supported anymore, but the last version should be able to work) but it seems that UBports installer is not able to install it. The phone is unlocked ofc, installer recognizes it properly, I chose all checkboxes from the options, installers reboots it fo fastboot and tries to format userdata partition, but that step gets stuck. I then tried to manually do all the steps that the config file for sagit (mi6) has listed:

        actions:
        - fastboot:format:
        partition: "userdata"
        type: "ext4"
        condition:
        var: "wipe"
        value: true
        - actions:
        - fastboot:flash:
        partitions:
        - partition: "recovery"
        file: "recovery.img"
        group: "firmware"
        - partition: "boot"
        file: "recovery.img"
        group: "firmware"
        - partition: "cust"
        file: "unpacked/vendor.img"
        group: "firmware"
        condition:
        var: "bootstrap"
        value: true
        - actions:
        - fastboot:reboot:
        fallback:
        - core:user_action:
        action: "recovery"
        condition:
        var: "bootstrap"
        value: true
        - actions:
        - systemimage:install:
        - actions:
        - adb:reboot:
        to_state: "recovery"

        I installed ubuntu recovery and it boot to it ok now, I also did flash vendor.img to cust partition as the config files suggests, but I don't understand what does this do:

        • actions:
          - systemimage:install:

        and can I do it manually?

        If I just flash vendor.img to cust partition and reboot, only the Recovery boots up, but no Ubuntu or any install option. Anyone can help?

        1 Reply Last reply Reply Quote 0
        • ikozI Offline
          ikoz
          last edited by

          The last step installs the rootfs usually in system partition, see the install section of the porting documention.
          Basically flash the latest xenial image from the CI to system. Alternatively push the image with adb to /data/system.img when booted to recovery.
          Otherwise you could try ubports installer with only the systemimage:install command.
          You can also see the halium-install source code, particularly these lines.

          Be sure to check if this partition exists as partition schemes can vary.

          May the source be with you

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post