Manual install since ubports is failing
-
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?
- actions:
-
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.