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 1.3k 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
          • First post
            Last post
            OSZAR »