The Ubuntu Touch Install documentation shows how to flash Ubuntu Touch to a supported device using the ubuntu-device-flash command. Let’s have a look at what else this command can do.
Query the image server
List available channels for the bq Aquaris E4.5 Ubuntu Edition (krillin):
List available images for the ubuntu-touch/rc/bq-aquaris.en channel:
Show information about the most recent image in the ubuntu-touch/rc/bq-aquaris.en channel:
Show information about an older image (r16) on the ubuntu-touch/rc/bq-aquaris.en channel, notice that the --revision=16 parameter goes before the query command:
The links can be used to download individual parts of an image, the number after the link is the file size in bytes and the string at the end is the SHA256 hash of the file:
Flash/Download Ubuntu Touch images
Download and flash an image to an attached device which is in fastboot mode (--bootstrap), clear all data after flashing (--wipe). If --revision (see previous examples) is omitted, the most recent image will be flashed. --channel can be used to select a different channel than the default one.
The following example has been adapted for the bq Aquaris E4.5 Ubuntu Edition, which ships with a recovery image that does NOT enable ADB by default, leading to a “Failed to enter Recovery” error message. It is necessary to temporarily use a different recovery image, e.g. this one, and pass the --recovery-image parameter. This is usually not necessary with Nexus devices.
Flash a device that is in fastboot mode (--bootstrap) with the most recent image from the default channel, clear all data after flashing (--wipe), automatically enable developer mode after flashing (--developer-mode), set a PIN (--password=). After the device has been flashed, use phablet-config to bypass the welcome wizard and edges intro, completing a fully automated device install e.g. for continuous integration.
NOTE: This does currently not seem to work on the bq Aquaris E4.5 Ubuntu Edition. When the welcome wizard pops up after flashing, the device is not in developer mode and ADB is not enabled.
Download image revision 1 for device flo (Nexus 7) and channel ubuntu-touch/vivid, do not flash.
Ubuntu Snappy Core mode
ubuntu-device-flash core creates Ubuntu Snappy Core images for different devices, look here. This has currently nothing to do with phones, so it is out of the scope of this series.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.I agreeRead more