...
This document outlines the steps of setting up and running Android Automotive images on Linaro’s Trusted Reference Stack (TRS) using prebuilt images. When completed, you will be able to boot the Android Automotive OS (AAOS) image in a DomU (aka VM) running on top of the Xen Hypervisor using TRS in the Dom0. The AAOS image will utilize the AVA platform's frame buffer (unaccelerated) and use VirtIO serial device to enable keyboard and mouse in order to interact with OS.
If interested in building from source please refer to the following documents [1][2] for details.
...
You will need the following to run this demo
ADLink AVA Platform
Display connected to the VGA interface
Enough disk space
x86 Linux desktop (Tested on Ubuntu 22.04.3 LTS and Debian GNU/Linux 12 (bookworm), x86 is fine)
Prebuilt images
Prebuilt images can be pre- downlaoded as follows:
The TRS prebuilt image is:
https://people.linaro.org/~leo.yan/arm_blueprint/aaos_on_xen/trs-image-trs-qemuarm64.wic.The prebuilt Android automotive image is: https://people.linaro.org/~leo.yan/arm_blueprint/aaos_on_xen/cuttlefish.tgz.
...
TRS image can be flashed on either an NVME or a USB stick. The below script flash_trs.sh
is for flashing TRS wic image onto a block device, the block device can be either a an NVMe or USB stick, it also extends the root file system partition to the end of the device to provide sufficient disk space for storing the Android Automotive OS image.
...
By following below steps, you can firstly download the prebuilt TRS wic image and then flash it to NVMe or USB stick.
...
Note 1: The shell script requires the e2fsck
and resize2fs
utilities to be at least version 1.47.0 or newer. if not available, please download the e2fsprogs
source and build it and install itfrom source.
Run Android Automotive in a Xen virtual machine
Once TRS system booted up, you need to download Android Cuttlefish image and uncompress it into the folder (/home/leoy/android-cf-mainline/cf
), this is because the overlay images contains the absolute path so we must uncompress the Cuttlefish image into an absolut absolute path. The commands are:
Code Block | ||
---|---|---|
| ||
# wget https://people.linaro.org/~leo.yan/arm_blueprint/aaos_on_xen/cuttlefish.tgz # wget https://people.linaro.org/~leo.yan/arm_blueprint/aaos_on_xen/aaos_vm.cfg # wget https://people.linaro.org/~leo.yan/arm_blueprint/aaos_on_xen/u-boot.bin # mkdir -p /home/leoy/android-cf-mainline/cf/ # tar zxvf cuttlefish.tgz -C /home/leoy/android-cf-mainline/cf/ |
...