RENESAS RZ-G2L Microprocessor User Guide

June 11, 2024
RENESAS

RENESAS RZ-G2L Microprocessor

RENESAS-RZ-G2L-Microprocessor-PRODUCT

This document provides a guide to prepare RZ/G2L, RZ/G2LC and RZ/V2L reference boards to boot up with the RZ/G2L and RZ/V2L Group Board Support Package. This includes procedures to write the bootloaders to each board.

Product Information

The RZ/G2L, RZ/G2LC, and RZ/V2L are reference boards that require bootloaders to be written to the Flash ROM on the board using the Flash Writer tool provided by Renesas through the mini monitor utility. The RZ/G2L Evaluation Board Kit PMIC includes the RZ/G2L SMARC Module Board and the RZ SMARC Series Carrier Board. The RZ/G2LC Evaluation Board Kit PMIC includes the RZ/G2LC SMARC Module Board and the RZ SMARC Series Carrier Board. The RZ/V2L Evaluation Board Kit PMIC includes the RZ/V2L SMARC Module Board and the RZ SMARC Series Carrier Board. These reference boards require the RZ/G2L and RZ/V2L Group Board Support Package version 1.3 or later.

Product Usage Instructions

Preparing Flash Writer

To prepare Flash Writer, you can build it automatically using the bitbake command or obtain a binary file of Flash Writer from the Release Note of the RZ/G2L and RZ/V2L Group Board Support Package. If you need the latest version, get the source code from the GitHub repository and build it as per the instructions provided in this document. A new revision of reference boards requires the latest Flash Writer.

Product Preparing cross compiler

FlashWriter runs on target boards. Please get cross compiler built by Linaro or set up a Yocto SDK.

ARM toolchain: $ cd ~/ $ wget https://developer.arm.com/-/media/Files/downloads/gnu-a/10.2-2020.11/binrel /gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf.tar.xz $ tar xvf gcc- arm-10.2-2020.11-x86_64-aarch64-none-elf.tar.xz

Product Renesas Evaluation kit

Renesas SMARC RZ/G2L Evaluation kit PMIC, RZ/G2LC Evaluation kit PMIC, and RZ/V2L Evaluation kit PMIC

Follow the procedures mentioned in this document to write the bootloaders to the Flash ROM on the board using the Flash Writer tool provided by Renesas through the minimonitor utility. This includes booting Flash Writer, writing bootloader, and setting U-boot.

Booting Flash Writer

  • Refer to the instructions in this document to boot Flash Writer.

Writing Bootloader

  • Refer to the instructions in this document to write the bootloader to the Flash ROM on the board.

Setting U-boot

  • Refer to the instructions in this document to set U-boot.

Revision History

  • Refer to the Revision History section of this document for details on any updates made to this guide.

Introduction

This document provides a guide to prepare RZ/G2L, RZ/G2LC and RZ/V2L reference boards to boot up with the RZ/G2L and RZ/V2L Group Board Support Package. Especially, procedures to write the bootloaders to each board are explained. Bootloaders are written to the Flash ROM on the board using the Flash Writer tool provided by Renesas through the minimonitor utility. This document explains the way to write these files using the Flash Writer.

Target

RZ/G2L reference board

  • • RZ/G2L Evaluation Board Kit PMIC version (smarc-rzg2l-pmic) (*)
    • RZ/G2L SMARC Module Board
    • RZ SMARC Series Carrier Board

RZ/G2LC reference board

  • RZ/G2LC Evaluation Board Kit PMIC version (smarc-rzg2lc-pmic) (**)
    • RZ/G2LC SMARC Module Board
    • RZ SMARC Series Carrier Board

RZ/V2L reference board

  • RZ/V2L Evaluation Board Kit PMIC version (smarc-rzv2l-pmic) (***)
    • RZ/V2L SMARC Module Board
    • RZ SMARC Series Carrier Board

() “RZ/G2L Evaluation Board Kit PMIC” includes the RZ/G2L SMARC Module Board and the RZ SMARC Series Carrier Board.
() “RZ/G2LC Evaluation Board Kit PMIC” includes the RZ/G2LC SMARC Module Board and the RZ SMARC Series Carrier Board.
(
) “RZ/V2L Evaluation Board Kit PMIC” includes the RZ/V2L SMARC Module Board and the RZ SMARC Series Carrier Board.

RZ/G2L and RZ/V2L Group Board Support Package version 1.3 or later.

Preparing Flash Writer

Flash Writer is built automatically when building BSP by bitbake command. Please refer to the Release Note of the RZ/G2L and RZ/V2L Group Board Support Package to obtain a binary file of Flash Writer. If you need latest one, please get source code from the GitHub repository and build it according to the following instructions. In general, new revision of reference boards requires latest Flash Writer.

Preparing cross compiler

FlashWriter runs on target boards. Please get cross compiler built by Linaro or setup a Yocto SDK.

ARM toolchain

Yocto SDK

Build an SDK according to Release Notes and install it to a Linux Host PC. Then, enable the SDK as below.

  • source /opt/poky/3.1.5/environment-setup-aarch64-poky-linux

Building Flash Writer

Get source codes of Flash Writer from the GitHub repository and checkout the branch rz_g2l.

Build Flash Writer as an s-record file by the following commands. Please specify a target board by “BOARD” option.

ARM toolchain

  • export PATH=$PATH:~/gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf/bin
  • export CROSS_COMPILE=aarch64-none-elf-
  • export CC=${CROSS_COMPILE}gcc
  • export AS=${CROSS_COMPILE}as
  • export LD=${CROSS_COMPILE}ld
  • export AR=${CROSS_COMPILE}ar
  • export OBJDUMP=${CROSS_COMPILE}objdump
  • export OBJCOPY=${CROSS_COMPILE}objcopy
  • make clean
  • make BOARD=

Yocto SDK

  • make clean
  • make BOARD=

Please replace to a proper option according to this table.

Target board BOARD option Image to be generated

smarc-

rzg2l-pmic

| RZG2L_SMARC_PMIC| Flash_Writer_SCIF_RZG2L_SMARC_PMIC_DDR4_2GB_1PCS.mot
smarc- rzg2lc- pmic| RZG2LC_SMARC_PMIC| Flash_Writer_SCIF_RZG2LC_SMARC_PMIC_DDR4_1GB_1PCS.mot
smarc-

rzv2l-pmic

| RZV2L_SMARC_PMIC| Flash_Writer_SCIF_RZV2L_SMARC_PMIC_DDR4_2GB_1PCS.mot

Renesas Evaluation kit

Renesas SMARC RZ/G2L Evaluation kit PMIC (smarc-rzg2l-pmic), RZ/G2LC Evaluation kit PMIC (smarc-rzg2lc-pmic) and RZ/V2L Evaluation kit PMIC (smarc- rzv2l-pmic)

Preparation before startup

Preparation

The following power supply environment is used in the evaluation.

Hardware preparation:

  • USB Type-C cable “AK-A8485011” (manufactured by Anker)
  • USB PD Charger Anker “PowerPort III 65W Pod” (manufactured by Anker)
  • USB Type-microAB cable (Any cables)
  • Micro HDMI cable (Any cables)
  • PC Installed FTDI VCP driver and Terminal software (Tera Term)

Note: Please install the FTDI driver that can be following website

(https://www.ftdichip.com/Drivers/VCP.htm).

Software preparation

RZ/G2L Evaluation Board Kit PMIC version

  • Flash_Writer_SCIF_RZG2L_SMARC_PMIC_DDR4_2GB_1PCS.mot (flash writer)
  • bl2_bp-smarc-rzg2l_pmic.srec (boot loader)
  • fip-smarc-rzg2l_pmic.srec (boot loader)
  • Image-smarc-rzg2l.bin (Linux kernel)
  • r9a07g044l2-smarc.dtb (Device tree file)

RZ/G2LC Evaluation Board Kit PMIC version

  • Flash_Writer_SCIF_RZG2LC_SMARC_PMIC_DDR4_1GB_1PCS.mot (flash writer)
  • bl2_bp-smarc-rzg2lc_pmic.srec (boot loader)
  • fip-smarc-rzg2lc_pmic.srec (boot loader)
  • Image-smarc-rzg2lc.bin (Linux kernel)
  • r9a07g044c2-smarc.dtb (Device tree file)

RZ/V2L Evaluation Board Kit PMIC version

  • Flash_Writer_SCIF_RZV2L_SMARC_PMIC_DDR4_2GB_1PCS.mot (flash writer)
  • bl2_bp-smarc-rzv2l_pmic.srec (boot loader)
  • fip-smarc-rzv2l_pmic.srec (boot loader)
  • Image-smarc-rzv2l.bin (Linux kernel)
  • r9a07g054l2-smarc.dtb (Device tree file)

Hereafter, RZ/V2L Evaluation Board Kit PMIC version picture is used as a representative.If you will use RZ/G2L, RZ/G2LC Evaluation Board Kit PMIC version, Connectors on same location as RZ/V2L Evaluation Board Kit PMIC version can be used.

How to set boot mode and input voltage

Please set the SW11 settings as follows.

SW11-1 OFF
SW11-2 ON
SW11-3 OFF
SW11-4 ON
  • Pin no1 to no3 of the SW11 is used to control boot mode of RZ/G2L, RZ/G2LC and RZ/V2L.
  • Pin no4 of the SW11 is used to control the input voltage from power charger to 5V or 9V. Please use a 5V setting as initial setting.

Please select boot mode as below figures! Currently we support 2 modes in 4 modes: SCIF Download mode and QSPI Boot mode.

RENESAS-RZ-G2L-Microprocessor-FIG-2

Please select input voltage setting as below

SW1-4 Input voltage selection
OFF Input 9V
ON Input 5V

How to set SW1

Please set the SW1 settings to follows.

SW1-1 OFF
SW1-2 OFF
  • Pin no1 of the SW1 is used to select the JTAG debug mode or not.
  • JTAG is not used, so set SW1-1 to normal operation mode.
  • Pin no2 of the SW1 is used to select the eMMC or microSD mode. Please set SW1-2 to eMMC mode.
SW1-1 DEBUGEN
OFF JTAG debug mode
ON Normal operation
SW1-2 MicroSD/eMMC selection
OFF Select eMMC on RTK9744L23C01000BE
ON Select microSD slot on RTK9744L23C01000BE

The selection of microSD slot and eMMC on the SMARC module is exclusive

How to use debug serial (console ouput)

RENESAS-RZ-G2L-Microprocessor-FIG-4

Please connect USB Type-microAB cable to CN14.

Startup Procedure

Power supply

RENESAS-RZ-G2L-Microprocessor-FIG-5

  1. Connect USB-PD Power Charger to USB Type-C Connector (CN6).
  2. LED1(VBUS Power ON) and LED3 (Module PWR On) lights up.
  3. Press the power button(SW9) to turn on the power.
    • Note: When turn on the power, press and hold the power button for 1 second.
    • When turn off the power, press and hold the power button for 2 seconds
  4. LED4(Carrier PWR On) lights up.

Building files to write

This board uses the files below as a bootloader. Please build them according to the Release Note and copy these files to a PC which runs serial terminal software.

RZ/G2L Evaluation Board Kit PMIC version

  • bl2_bp-smarc-rzg2l_pmic.srec (boot loader)
  • fip-smarc-rzg2l_pmic.srec (boot loader)

RZ/G2LC Evaluation Board Kit PMIC version

  • bl2_bp-smarc-rzg2lc_pmic.srec (boot loader)
  • fip-smarc-rzg2lc_pmic.srec (boot loader)

RZ/V2L Evaluation Board Kit PMIC version

  • bl2_bp-smarc-rzv2l_pmic.srec (boot loader)
  • fip-smarc-rzv2l_pmic.srec (boot loader)

Settings

Connect between the board and a control PC by USB serial cable according to the Release Note.

RENESAS-RZ-G2L-Microprocessor-FIG-7

  1. Bring up the terminal software and select the “File” > “New Connection” to set the connection on the software.RENESAS-RZ-G2L-Microprocessor-FIG-8
  2. Select the “Setup” > “Serial port” to set the settings about serial communication protocol on the software. Set the settings about serial communication protocol on a terminal software as below:
    • Speed: 115200 bps
    • Data: 8bit
    • Parity: None
    • Stop bit: 1bit
    • Flow control: None
  3. To set the board to SCIF Download mode, set the SW11 as below (please refer 2.1.2):
    1| 2| 3| 4
    ---|---|---|---
    OFF| ON| OFF| ON
  4. After finished all settings, when pressed the reset button SW10, the messages below are displayed on the terminal.RENESAS-RZ-G2L-Microprocessor-FIG-10

Booting Flash Writer

Turn on the power of the board by pressing SW9. The messages below are shown on the terminal.

  • SCIF Download mode
    • (C) Renesas Electronics Corp.
  • — Load Program to SystemRAM —————
  • please send !

Send an image of Flash Writer (If you will use RZ/G2L Evaluation Board Kit PMIC version, “Flash_Writer_SCIF_RZG2L_SMARCPMIC DDR4_2GB_1PCS.mot” should be used. If you will use RZ/G2LC Evaluation Board Kit PMIC version, “Flash_Writer_SCIF_RZG2LC_SMARC_PMIC_DDR4_1GB_1PCS.mot” should be used. If you will use RZ/V2L

Evaluation Board Kit PMIC version, “Flash_Writer_SCIF_RZV2L_SMARC_PMIC_DDR4_2GB_1PCS.mot” should be used.) using terminal software after the message “please send !” is shown. Below is a sample procedure with Tera Term.

RENESAS-RZ-G2L-Microprocessor-FIG-11

  • Open a “Send file” dialog by selecting “File” → “Sendfile” menu.RENESAS-RZ-G2L-Microprocessor-FIG-12
  • Then, select the image to be send and click “Open” button.RENESAS-RZ-G2L-Microprocessor-FIG-13
  • The image will be sent to the board via serial connection.

After successfully downloading the binary, Flash Writer starts automatically and shows a message like below on the terminal.

  • Flash writer for RZ/V2 Series V1.00 Sep.17,2021
  • Product Code: RZ/V2L
Writing Bootloader

“XLS2” command of Flash Writer is used to write binary files. This command receives binary data from the serial port and writes the data to a specified address of the Flash ROM with information where the data should be loaded on the address of the main memory. This is an example of writing “bl2_bp-smarc- rzv2l_pmic.srec” which should be loaded to 11E00h of the main memory and 000000h of the Flash ROM.

RENESAS-RZ-G2L-Microprocessor-FIG-14

Send the data of “bl2_bp-smarc-rzv2l_pmic.srec” (If you are using RZ/G2L Evaluation Board Kit PMIC version, “bl2_bp-smarc-rzg2l_pmic.srec” should be used. If you are using RZ/G2LC Evaluation Board Kit PMIC version, “bl2_bp- smarc-rzg2lc_pmic.srec” should be used. If you are using RZ/V2L Evaluation Board PMIC version, “bl2_bpsmarc- rzv2l_pmic.srec” should be used.) from terminal software after the message “please send !” is shown.

After successfully download the binary, messages like below are shown on the terminal.

RENESAS-RZ-G2L-Microprocessor-FIG-15

  • In case a message to prompt to clear data like above, please enter “y”.
  • Write all necessary files using the addresses listed at Table 1 and turn off the power of the board by changing the SW11.

Table 1. Addresses for each file

RZ/G2L Evaluation Board Kit PMIC version

File name Address to load to RAM Address to save to ROM
bl2_bp-smarc-rzg2l_pmic.srec 0001_1E00 00000
fip-smarc-rzg2l_pmic.srec 0000_0000 1D200

RZ/G2LC Evaluation Board Kit PMIC version

File name Address to load to RAM Address to save to ROM
bl2_bp-smarc-rzg2lc_pmic.srec 0001_1E00 00000
fip-smarc-rzg2lc_pmic.srec 0000_0000 1D200

RZ/V2L Evaluation Board Kit PMIC version

File name Address to load to RAM Address to save to ROM
bl2_bp-smarc-rzv2l_pmic.srec 0001_1E00 00000
fip-smarc-rzv2l_pmic.srec 0000_0000 1D200
Setting U-boot

To set the board to SPI Boot mode, set the SW11 as below:

1 2 3 4
OFF OFF OFF ON

Note

  • Set the SW1 on SoM module to eMMC mode.

Turn on the power of the board by pressing the reset button SW10.

RENESAS-RZ-G2L-Microprocessor-FIG-18

Following the messages above, many warning messages will be shown. These warnings are eliminated by setting correct environment variables. Please set default value and save them to the Flash ROM.

  • => env default -a
  • Resetting to default environment

  • => saveenv
  • Saving Environment to MMC… Writing to MMC(0)….OK
  • =>

In case booting from micro SD card on SMARC carrier board, set environment variables using the commands below. The commands below are for the RZ/V2L board. Please replace the file names in “bootcmd” according to the Release Note when you use other boards.

  • setenv bootargs ‘root=/dev/mmcblk1p2 rootwait’
  • setenv bootcmd ‘mmc dev 1;fatload mmc 1:1 0x48080000 Image-smarc-rzv2l.bin; fatload mmc 1:1 0x48000000 r9a07g054l2-smarc.dtb; booti 0x48080000 – 0x480000 00’
  • saveenv
  • Saving Environment to MMC… Writing to MMC(0)….OK

Note

  • The setting above assumes the SD card has two partitions and stores data as below:
    • First partition: formatted as FAT, includes Image-smarc-rzv2l.bin and r9a07g054l2-smarc.dtb
    • Second partition: formatted as ext4, rootfs image is expanded
  • Note: ) “saveenv” command on u-boot sometime fails.
    • Workaround: Turn off/on or reset the board and retry the command again.

Now the board can bootup normally. Please turn off and on the power again to boot up the board.

Website and Support

All trademarks and registered trademarks are the property of their respective owners.

Revision History

| | Description|
---|---|---|---
Rev.| Date| Page| Summary
1.00| Apr. 09, 2021| −| First edition issued.
1.01| Jul. 15, 2021| −| No modification, keep version to keep consistent with other documents.
1.02| Sep. 30, 2021| −| Add description about “RZ/G2LC Evaluation Board Kit”
1.03| Oct. 26, 2021| 7| Corrected description of SW1-1.
1.04| Nov. 30, 2021| −| Add description about “RZ/V2L Evaluation Board Kit”

References

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

Related Manuals