在 Halium 上构建 Ubuntu Touch 16.04 镜像

警告

这些步骤将清除设备上的**所有**数据。 如果您有任何需要保留的内容,请确保在继续之前将其备份并从设备上复制下来。

Now that you’ve built halium-boot, we’re ready to install Ubuntu Touch on your device.

为了安装 Ubuntu Touch,您需要在手机上安装带有 Busybox 的 Recovery (比如 TWRP)。 您还需要确保 /data 分区使用 ext4 文件系统格式化,并且没有任何进行加密。

安装 halium-boot

我们需要在安装镜像之前安装 halium-boot 镜像。 重新启动手机进入 fastboot 模式,然后在 Halium 树中执行以下操作:

cout
fastboot flash boot halium-boot.img

下载 rootfs 文件系统

Next we’ll need to download the rootfs (root filesystem) that’s appropriate for your device. Right now, we only have one available. Simply download ubports-touch.rootfs-xenial-armhf.tar.gz from our CI server. If you have a 64-bit ARM (aarch64) device, this same rootfs should work for you. If you have an x86 device, let us know. We do not have a rootfs available for these yet.

安装 system.img 和 rootfs 文件系统

待处理

Change the rootstock link to point to UBports once the actuallyfixit PR is merged.

Download the halium-install-standalone script from jbbgameich/halium-install’s releases (direct link to download). Boot your device into recovery and run the script as follows:

halium-install-standalone.sh -p ut path/to/rootfs.tar.gz path/to/system.img

The script will copy and extract the files to their proper places, then allow you to set the phablet user’s password.

获得 SSH 访问权限

当您的设备启动时,它可能会卡在引导界面上。 但是,您还应该在插入设备的计算机上获得新的网络连接。 我们将使用它来调试系统。

To confirm that your device has booted correctly, run dmesg -w and watch for “GNU/Linux device” in the output. If you instead get something similar to “Halium initrd Failed to boot”, please get in contact with us so we can find out why.

Similar to the Halium reference rootfs, you should set your computer’s IP on the newly connected RNDIS interface to 10.15.19.100 if you don’t get one automatically. Then, run the following to access your device:

ssh phablet@10.15.19.82

密码将是您在运行 halium-install 时设置的密码。

常见问题

If you have any errors while performing these steps, check see if any of the following suggestions match what you are seeing. If you have installed successfully, skip down to Continue on.

继续

Congratulations! Ubuntu Touch has now booted on your device. Move on to 运行 Ubuntu Touch to learn about more specific steps you will need to take for a complete port.