R-Car/Boards/Yocto-Gen3/Docker

Introduction
This page contains information to use the Docker engine with Yocto on:
 * Renesas R-Car-H3 Starter Kit Premier (unofficial name - H3ULCB), https://www.renesas.com/us/en/solutions/automotive/adas/solution-kits/r-car-starter-kit.html
 * Renesas R-Car-M3 Starter Kit Pro (unofficial name - M3ULCB), https://www.renesas.com/us/en/solutions/automotive/adas/solution-kits/r-car-starter-kit.html

Yocto versions
Poky-2.4.3 is supported with Yocto v3.21.0. Specific commits of meta-openembedded and meta-virtualization are required.

Host PC
Ubuntu 16.04 LTS (64bit) is recommended as OS. 32bit version is not supported.

Required packages

 * 1) Install required packages
 * Ubuntu and Debian
 * Fedora
 * Refer to Yocto Project Quick Start for more information.
 * Refer to Yocto Project Quick Start for more information.
 * Refer to Yocto Project Quick Start for more information.

Build using manual steps

 * 1) Create a directory and switch to it
 * Warning! Yocto builds require a lot of disk space (up to 100 GB). Make sure you have got enough before starting the build.
 * 1) Clone basic Yocto layers:
 * 2) Switch to proper branches/commits
 * 3) Prepare Kernel configuration files.
 * Download [[File:docker-config_R-Car_v3.21.0.txt]] and copy it into meta-renesas (with renaming *.txt to *.cfg).
 * Add the following lines to linux-renesas_4.14.bb.
 * 1) Setup build environment
 * 2) Prepare default configuration files.
 * 3) Edit local.conf for the docker requirements:
 * 4) Add meta-virtualization layer and dependent layers to bblayers.conf
 * 5) Start the build
 * 6) Building image can take up to a few hours depending on your host system performance. After the build has been completed successfully, you should see the output similar to:
 * and the command prompt should return.
 * 1) Bitbake has generated all the necessary files in ./tmp/deploy/images directory. You can verify its content:
 * Image is a Kernel image, *.dtb is a blob file, core-image-minimal-h3ulcb.tar.bz2 is the rootfs, modules-h3ulcb.tgz are kernel modules.
 * 1) You can now proceed with  "Running Yocto images"
 * 1) Add meta-virtualization layer and dependent layers to bblayers.conf
 * 2) Start the build
 * 3) Building image can take up to a few hours depending on your host system performance. After the build has been completed successfully, you should see the output similar to:
 * and the command prompt should return.
 * 1) Bitbake has generated all the necessary files in ./tmp/deploy/images directory. You can verify its content:
 * Image is a Kernel image, *.dtb is a blob file, core-image-minimal-h3ulcb.tar.bz2 is the rootfs, modules-h3ulcb.tgz are kernel modules.
 * 1) You can now proceed with  "Running Yocto images"
 * and the command prompt should return.
 * 1) Bitbake has generated all the necessary files in ./tmp/deploy/images directory. You can verify its content:
 * Image is a Kernel image, *.dtb is a blob file, core-image-minimal-h3ulcb.tar.bz2 is the rootfs, modules-h3ulcb.tgz are kernel modules.
 * 1) You can now proceed with  "Running Yocto images"
 * 1) You can now proceed with  "Running Yocto images"