Skip to main content

AosCore on R-Car

Target Device

  • R-Car Starter Kit Premier (H3e/H3 model). see here.
  • R-Car S4 System Evaluation Board Spider (Version B0-2nd or later). see here.

Build image

#!/bin/bash -eu
SCRIPT_DIR=$(cd `dirname $0` && pwd)
AOS_VERSION="v2.0.0"
AOSEDGE_VERSION="v1.0.0"
# Download yaml file
cd ${SCRIPT_DIR}
rm -f aos-rcar-gen3.yaml
curl -O https://raw.githubusercontent.com/aoscloud/meta-aos-rcar-gen3/${AOS_VERSION}/aos-rcar-gen3.yaml
# Remove meta-aos-rcar-gen3 from repo list
cp aos-rcar-gen3.yaml aos-rcar-gen3.yaml.bak
cat aos-rcar-gen3.yaml.bak | sed -e '48,50d' >aos-rcar-gen3.yaml
rm aos-rcar-gen3.yaml.bak
# Prepare working directory
rm -rf ./work_h3_${AOSEDGE_VERSION}
mkdir -p ./work_h3_${AOSEDGE_VERSION}
cd ./work_h3_${AOSEDGE_VERSION}
# Prepare additional repo
git clone https://github.com/aoscloud/meta-aos-rcar-gen3.git yocto/meta-aos-rcar-gen3
cd ./yocto/meta-aos-rcar-gen3
git checkout ${AOS_VERSION}
# Change SD boot settings
sed -i "s|mmcblk0p3|mmcblk1p3|" ./meta-aos-rcar-gen3-domd/recipes-aos/aos-updatemanager/files/aos_updatemanager.cfg
sed -i "s|mmcblk0p1|mmcblk1p1|" ./meta-aos-rcar-gen3-domd/recipes-aos/aos-updatemanager/files/aos_updatemanager.cfg
sed -i "s|mmcblk0p2|mmcblk1p2|" ./meta-aos-rcar-gen3-domd/recipes-aos/aos-updatemanager/files/aos_updatemanager.cfg
cd ${SCRIPT_DIR}/work_h3_${AOSEDGE_VERSION}
moulin ../aos-rcar-gen3.yaml --MACHINE h3ulcb-4x2g
ninja
ninja image-full
echo "Build finished !

Execute the build script.

$ chmod +x build_h3_aosedge_v1.0.0.sh
$ ./build_h3_aosedge_v1.0.0.sh

You can check the "full.img" generated by the following command.

$ ls work_h3_v1.0.0/full.img

Target board setup

The recommended environment for building AosEdge is as follows.

Recommended setup