Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 44 additions & 36 deletions v2/devices/X605.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,31 @@ user_actions:
description: "Please make sure, that your device is a Lenovo Smart Tab M10 X605L or X605F with at least 3GB RAM. For the 2GB/16GB models, the installer won't work!"
confirm_os:
title: "Confirm OS version"
description: "Your device must be running Android 9 before installing Ubuntu Touch. This seems to be already the case for the most devices of this type. But if you still need to flash the Android 9 stock rom, please see the install section in the link below:"
description: >

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any specific reason for the formatting change? Does it display differently in the installer?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to read the whole text in my code-editor, without scrolling horizontally.
And yes, I tried different variants of formatting the text, bot none work.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, > doesn't preserve newline so this should look the same. I don't think we parse these as markdown anyway so newlines would probably be removed though.

Please do refactors in separate commits though (can be same PR ofc).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do refactors in separate commits though (can be same PR ofc).

done

Your device must be running Android 9 before installing Ubuntu Touch. This seems to be already the case for the most devices of this type.
But if you still need to flash the Android 9 stock rom, please see the install section in the link below:
link: "https://gitlab.com/ubports/porting/community-ports/android9/lenovo-tab-m10-fhd/lenovo-x605#install-first-time"
bootloader:
title: "Reboot to Bootloader"
description: "With the device powered off, press and hold the VOLUME DOWN and POWER buttons at the same time until the device turns on. The bootloader mode is indicated by the red 'Fastboot Mode' text in the left down corner."
description: >
With the device powered off, press and hold the VOLUME DOWN and POWER buttons at the same time until the device turns on.
The bootloader mode is indicated by the red 'Fastboot Mode' text in the left down corner.
image: "phone_power_down"
button: true
recovery:
title: "Reboot to Recovery"
description:
"Booting to recovery is not a very reliable process on this device. So you need to turn off the device first:
description: >
Booting to recovery is not a very reliable process on this device. So you need to turn off the device first:
Unplug USB-cable and press and hold the POWER button until display turns off. If it is rebooting, repeat this until the device stays off!
If it is off, press and hold the VOLUME UP, VOLUME DOWN and the POWER buttons at the same time until it boots.
Then only release the POWER button and keep holding the VOLUME buttons until the UBports recovery appears."
Then only release the POWER button and keep holding the VOLUME buttons until the UBports recovery appears.
button: true
lvm-migration:
title: "LVM Migration"
description: >
On first install of the new recovery, we need to increase the available size for the rootfs.
When recovery is booted, wait until "lvm-migration" is finished. Watch the log output in the bottom of the device.
If there is no output at all or when it displays, that it is finished, push the "Continue"-Button in the installer.
button: true
unlock:
- "confirm_model"
Expand All @@ -33,7 +44,7 @@ handlers:
- fastboot:flashing_unlock:
operating_systems:
- name: "Ubuntu Touch"
compatible_installer: ">=0.9.2-beta"
compatible_installer: ">=0.9.4-beta"
options:
- var: "channel"
name: "Channel"
Expand All @@ -54,24 +65,27 @@ operating_systems:
prerequisites: []
steps:
- actions:
# latest artifacts from https://gitlab.com/ubports/porting/community-ports/android9/lenovo-tab-m10-fhd/lenovo-x605
- core:download:
group: "firmware"
files:
- url: "https://gitlab.com/ubports/porting/community-ports/android9/lenovo-tab-m10-fhd/lenovo-x605/-/jobs/6057055401/artifacts/raw/out/boot.img"
checksum:
sum: "8036c26af66f5e42f891c7bb280e389771bfaa2118b1632b430a3c6c5c096fc3"
algorithm: "sha256"
condition:
var: "bootstrap"
value: true
- actions:
- core:download:
- url: "https://gitlab.com/api/v4/projects/27989875/jobs/artifacts/focal/download?job=build"
name: "artifacts.zip"
- core:unpack:
group: "firmware"
files:
- archive: "artifacts.zip"
dir: "unpacked"
- core:unpack:
group: "firmware"
files:
- url: "https://gitlab.com/ubports/porting/community-ports/android9/lenovo-tab-m10-fhd/lenovo-x605-assets/-/raw/main/recovery.img"
checksum:
sum: "67808f905623a208c702879085bdc83eb0d3b8332a57689764249ca1d800fa9e"
algorithm: "sha256"
- archive: "unpacked/out/device_X605.tar.xz"
dir: "unpacked"
- core:unpack:
group: "firmware"
files:
- archive: "unpacked/device_X605.tar"
dir: "unpacked"
condition:
var: "bootstrap"
value: true
Expand All @@ -81,24 +95,15 @@ operating_systems:
fallback:
- core:user_action:
action: "bootloader"
condition:
var: "bootstrap"
value: true
- actions:
- fastboot:flash:
partitions:
- partition: "boot"
file: "boot.img"
- partition: "recovery"
file: "unpacked/partitions/recovery.img"
group: "firmware"
raw: true
condition:
var: "bootstrap"
value: true
- actions:
- fastboot:flash:
partitions:
- partition: "recovery"
file: "recovery.img"
- partition: "boot"
file: "unpacked/partitions/boot.img"
group: "firmware"
raw: true
condition:
Expand All @@ -112,20 +117,23 @@ operating_systems:
var: "wipe"
value: true
- actions:
- core:user_action:
action: "recovery"
- fastboot:erase:
partition: "userdata"
condition:
var: "bootstrap"
var: "wipe"
value: true
- actions:
- adb:reboot:
to_state: "recovery"
fallback:
- core:user_action:
action: "recovery"
- actions:
- core:user_action:
action: "lvm-migration"
condition:
var: "bootstrap"
value: false
value: true
- actions:
- systemimage:install:
- actions:
Expand Down
Loading