R-Car/Boards/Yocto-Gen3-CommonFAQ/How to use latest Yocto Project on R-Car Gen3 Starter Kit.

From eLinux.org
< R-Car‎ | Boards/Yocto-Gen3-CommonFAQ
Revision as of 02:27, 18 September 2020 by Y.H. (talk | contribs) (Created page with "== How to use latest Yocto Project on R-Car Gen3 Starter Kit. == Please refer to the https://github.com/renesas-rcar/meta-renesas/wiki/R-Car-Gen3-Community-Yocto-BSP-Release-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to use latest Yocto Project on R-Car Gen3 Starter Kit.

Please refer to the https://github.com/renesas-rcar/meta-renesas/wiki/R-Car-Gen3-Community-Yocto-BSP-Release-Note.
Below is example of YP 3.1(dunfell) + Renesas Yocto BSP v3.21.0.

Setup repo

If you can already use repo, please go to "Build" section.
please refer to [1]] to install "repo".
Then, execute following commands:

git config --global user.name "Your Name"
git config --global user.email "you@example.com"

Build

Directry structure

.
|--build.sh
`--proprietary
   |--R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-westonN-yyyymmdd.zip
   `--R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-westonN-yyyymmdd.zip

build script example for YP3.1(dunfell)

#!/bin/bash

BOARD_LIST=("h3ulcb" "m3ulcb")
TARGET_BOARD=$1
PROPRIETARY_DIR=`pwd`/proprietary
MANIFEST=dunfell-dev_v3.21.0.xml
WORK=`pwd`/${TARGET_BOARD}

Usage () {
    echo "Usage: $0 \${TARGET_BOARD_NAME}"
    echo "BOARD_NAME list: "
    for i in ${BOARD_LIST[@]}; do echo "  - $i"; done
    exit
}

# Check Param.
if ! `IFS=$'\n'; echo "${BOARD_LIST[*]}" | grep -qx "${TARGET_BOARD}"`; then
    Usage
fi

mkdir -p ${WORK}
cd ${WORK}

# Clone basic Yocto layers
repo init -b master -m $MANIFEST -u https://github.com/renesas-rcar/rcar-manifest.git
repo sync

# Populate meta-renesas with proprietary software packages
cd $WORK/meta-renesas
sh meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh -f $WORK/../proprietary

cd ${WORK}
source poky/oe-init-build-env ${WORK}/build

cd ${WORK}/build
cp ${WORK}/meta-renesas/meta-rcar-gen3/docs/sample/conf/${TARGET_BOARD}/poky-gcc/mmp/*.conf ./conf/
cp conf/local-wayland.conf conf/local.conf

cat << EOS >> conf/local.conf
DISTRO_FEATURES_append = " use_eva_pkg"
EOS

bitbake core-image-weston