This documentation provides instructions for building and flashing Oniro on the Volla X23 device.
Follow the steps below to prepare the build environment, compile the system image, and deploy Oniro on the Volla X23. Make sure you have completed the initial steps from the quick build documentation to set up your build environment.
First, apply the necessary system patches to your environment:
chmod +x device/board/oniro/system_patch/system_patch.sh
./device/board/oniro/system_patch/system_patch.sh
Next, compile the root filesystem (rootfs) for the Volla X23:
./build.sh --product-name x23 --ccache
This will generate the system image with ccache enabled for faster builds.
To run Oniro in an LXC container on the Volla X23, the device must be flashed with Ubuntu Touch. You can use the UBports Installer to flash Ubuntu Touch onto your device.
Once Ubuntu Touch is successfully booted on the device, connect the Volla X23 to your PC and verify that it is recognized using ADB:
adb devices
With a proper ADB connection, deploy the Oniro rootfs along with the LXC container configuration and systemd service using the following commands:
chmod +x ./device/board/oniro/x23/utils/deploy-lxc-container.sh
./device/board/oniro/x23/utils/deploy-lxc-container.sh
This script will transfer the rootfs to the device, configure the LXC container, and set up a systemd service to start Oniro automatically.