Skip to end of metadata
Go to start of metadata

Under construction

The GDP team is currently prioritising code as we head towards the AMM. In the meantime here are some basic notes on deploying a GDP build to the R-Car M3 Starter Kit. Please correct any mistakes you find.

 Table of Contents

Introduction

The purpose of this document is to explain how to quickly setup the hardware and install the GENIVI Dev Platform (GDP) on the Renesas R-Car (Gen 3) M3 Starter Kit.

Renesas R-Car M3 Starter Kit

General hardware, setup and support information can be found on elinux.org.

 

 

Building

Installing the gfx/mmp packages into the Yocto BSP

Download the Click-through licenses Linux Drivers and Gfx/MMP packages for YBSP v2.17 from here. Each release has two ZIP files, one for the kernel space drivers (R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-*.zip), one for the userland drivers (R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-*.zip).

1) Unzip them into a folder for which you have write access:

$ cd <folder containing the two zip files>
$ unzip -o R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-*.zip
$ unzip -o R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-*.zip

2) To install them into the correct place in the Yocto BSP a copy script is used.

$ cd <path to Yocto BSP>/renesas-rcar-gen3

If you have the click-through packages (no NDA):

$ sh meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh -f <path to the folder containing the packages>

 

If you have the Evaluation packages (with NDA):

$ sh meta-rcar-gen3/docs/sample/copyscript/copy_proprietary_softwares.sh <path to the folder containing the packages>

Building GDP Master

Instructions for building GDP Master for the M3 Starter Kit can be found in the section for that board on the GDP Master wiki page.

Deployment

On the host

The built GDP files can be found in the directory gdp-src-build/tmp/deploy/images/<machine name>

  1. Format storage device (USB stick or SD card) in ext3 format.
  2. Mount storage device
  3. Expand the rootfs onto the storage device, e.g. from the USB root directory:
    sudo tar --numeric-owner --preserve-permissions --preserve-order --totals -xvf <path to genivi-dev-*.tar.bz2> .
  4. Copy the DTB to the rootfs boot directory on the storage device:

    cd boot
    sudo cp <path to GDP file>/Image-r8a7796-m3ulcb.dtb .

On the board

This section gives some example u-boot environments for different scenarios.

General settings:

setenv ipaddr 192.168.1.1
setenv serverip 192.168.1.2
setenv netmask 255.255.255.0
setenv gatewayip 192.168.1.1
setenv ethaddr <eth address from the label on the board, e.g. 2e:09:0a:01:99:07>

setenv dtb Image-r8a7796-m3ulcb.dtb

Boot from USB:

setenv bootargs_usb 'rw root=/dev/sda1 rootfstype=ext3 rootwait'
setenv bootcmd_usb 'usb start;ext4load usb 0:1 0x48080000 boot/Image;ext4load usb 0:1 0x48000000 /boot/${dtb};booti 0x48080000 - 0x48000000'
setenv bootcmd run bootcmd_usb

 

Boot from SD:

setenv bootargs_sd0 'rw root=/dev/mmcblk1p1 rootfstype=ext3 rootwait'
setenv booti_cmd 'booti 0x48080000 - 0x48000000'
setenv bootcmd_sd0 'set bootargs ${bootargs_sd0};ext2load mmc 0:1 0x48080000 /boot/Image;ext2load mmc 0:1 0x48000000 /boot/${dtb};run booti_cmd'
setenv bootcmd run bootcmd_sd0

 

Boot from NFS:

bootargs=root=/dev/nfs rw nfsroot=192.168.0.1:/export/rfs ip=192.168.0.20
bootcmd=tftp 0x48080000 Image; tftp 0x48000000 Image-r8a7796-m3ulcb.dtb; booti 0x48080000 - 0x48000000

Related articles

There is no content with the specified labels