meta-xt-prod-devel-rcar
This repository contains Renesas RCAR Gen3-specific Yocto layers for
Xen Troops distro and moulin
project file to build it. Layers in this
repository provide final recipes to build meta-xt-prod-devel
distro. This distro is the main Xen Troops product, that we use to
develop and integrate new features
Those layers may be added and used manually, but they were written with Moulin build system, as Moulin-based project files provide correct entries in local.conf
Moulin project file
Work is still in progress, but right now the following features are tested and working:
- Renesas Salvator-XS M3 with 8GB memory is supported
- GPU sharing between domains
- 3 domains are being built: Linux based Dom0, DomD and DomU
- Graphics back-end in DomD
- Networking in DomD and DomU
- Network (NFS) boot for DomD and DomU
- OP-TEE client in DomU
- Virtualized OP-TEE build
- ARM-TF that boots into EL2
Features that are present but not tested:
- Renesas Salvator-XS M3 with 4GB memory
- Renesas Salvator-XS H3 with 8GB memory
- Renesas Starter Kit Premiere (H3ULCB)
- Renesas Starter Kit Premiere 8GB (H3ULCB)
- Renesas Starter Kit Pro (M3ULCB)
- Kingfisher with Starter Kit Premiere 8GB board
- AosBox with Starter Kit Premiere 8GB board
- Audio back-end
- SD or eMMC boot
- Android VM support
Features that are planned, but not present:
- AGL support
- Multimedia (HW-assisted video decoding/encoding) support
Building
Requirements
- Ubuntu 18.0+ or any other Linux distribution which is supported by Poky/OE
- Development packages for Yocto. Refer to Yocto manual.
- You need
Moulin
installed in your PC. Recommended way is to install it for your user only:pip3 install --user git+https://github.com/xen-troops/moulin
. Make sure that yourPATH
environment variable includes${HOME}/.local/bin
. - Ninja build system:
sudo apt install ninja-build
on Ubuntu
Fetching
You can fetch/clone this whole repository, but you actually need only
one file from it: prod-devel-rcar.yaml
. During build moulin
will
fetch this repository again into yocto/
directory. So, to reduce
possible confuse, we recommend to download only
prod-devel-rcar.yaml
:
# curl -O https://raw.githubusercontent.com/xen-troops/meta-xt-prod-devel-rcar/master/prod-devel-rcar.yaml
Building
Moulin is used to generate Ninja build file: moulin prod-devel-rcar.yaml
. This project have provides number of additional
options. You can use check them with --help-config
command line
option:
# moulin prod-devel-rcar.yaml --help-config
usage: moulin prod-devel-rcar.yaml
[--MACHINE {salvator-x-m3,salvator-xs-m3-2x4g,salvator-xs-h3}]
[--ENABLE_MM {no}] [--PREBUILT_DDK {no}]
Config file description: Xen-Troops development setup for Renesas RCAR Gen3
hardware
optional arguments:
--MACHINE {salvator-x-m3,salvator-xs-m3-2x4g,salvator-xs-h3}
RCAR Gen3-based device
--ENABLE_MM {no} Enable Multimedia support
--PREBUILT_DDK {no} Use pre-built GPU drivers
--ENABLE_ANDROID {no,yes}
Build Android as a guest VM
--ENABLE_DOMU {no,yes}
Build generic Yocto-based DomU
To built for Salvator XS M3 8GB with DomU (generic yocto-based virtual
machine) use the following command line: moulin prod-devel-rcar.yaml --MACHINE salvator-xs-m3-2x4g --ENABLE_DOMU yes
.
Moulin will generate build.ninja
file. After that - run ninja
to
build the images. This will take some time and disk space, as it will
built 3 separate Yocto images.
To built for Salvator XS H3 8GB with Android VM use the following
command line: moulin prod-devel-rcar.yaml --MACHINE salvator-xs-h3-4x2g --ENABLE_DOMU no --ENABLE_ANDROID yes
.
This will require even more time and space, as Android is quite big.
Creating SD card image
This repository includes mk_sdcard_image.sh
script that can be used
to create file with a full SD/eMMC image or to write image directly to
attached SD card. This is a temporary solution, till we introduce
moulin
-based image generator.
Use it by invoking ./mk_sdcard_image.sh -p . -d sd_image.bin -c devel
. -p
parameter should point to your build directory (where
build.ninja
lies). g-d
should be either path to /dev/sdX
or to a
file. -c
should always be equal to devel
for this particular product.
Please take care when pointing it to your /dev/sdX
. It will destroy
all data on provided storage.