Getting Started¶
This page explains how to start-up the Renesas RZ Linux BSP Plus.
Note
Hereafter, we use following terminology.
- EVK: Refers "Evaluation Board Kit".
Introduction¶
Getting Started explains the instruction to run the Renesas RZ Linux BSP Plus.
Common instructions are explained in this document.
Step 1: Obtain an evaluation board¶
Click the button below to get the board.
Board
Get the board for RZ MPUs.
Step 2: Obtain necessary environment¶
1. Necessary Equipment¶
Please prepare the following equipment for your EVK.
Equipment | Purpose | Remarks |
---|---|---|
RZ/G2L Module Board (SMARC2.1) + Common Carrier Board | It is used to evaluate not only Linux but also demo programs or | Included with RZ/G2L Evaluation Board Kit (EVK) |
USB serial cable | It is used to connect the PC and the EVK and get the console | Included with RZ/G2L Evaluation Board Kit (EVK) |
USB Power Delivery (PD) AC adapter + USB C PD cable | Used for power supply | |
PC | It can be used to operate the demo environment from a terminal | The OS of the PC is as follows. However, Windows PCs are for |
HDMI display monitor + HDMI cable | Used to display demo programs or applications provided by HMI | If you need a touch panel function, you need a panel that |
USB mouse | Used to operate demo programs and applications provided by | |
USB hub | Used when multiple USB devices are required for the demo | |
USB keyboard | Used to operate demo programs and applications provided by | |
USB touch screen | Used to operate demo programs and applications provided by | |
Audio speaker | Used to evaluate the audio output demo programs or applications | |
micro SD card | Linux and demo images provided by the HMI SDK are written and | Linux on the RZ/G2L EVK is booted from a micro SD card by eSD |
2. Necessary Software¶
Please install following software on Linux PC.
Step 3: Obtain and Build Renesas RZ Linux BSP Plus source code¶
Please refer to How To Build Linux BSP Plus.
Step 4: Deploy Renesas RZ Linux BSP Plus¶
You can prepare the microSD card by the following method. Please select one of them and follow the steps.
Below steps are for wic
image.
1. In case of Windows PC¶
- Download or copy the release package into your PC
- Unzip the release package and extract an image file
Write the image file to your micro SD card by using one of the following tool
Image file is:
<image name>-smarc-rzg2l.rootfs.wic.gz
Note
Where
<image name>
is one of the following:core-image-minimal
core-image-weston
Caution
Even if you see a message such as
you need to format the disk
before/after writing the image, do not format the SD card.
2. In case of Linux PC (Ubuntu)¶
- Download or copy the release package into your PC
- Unzip the release package and extract an image file
Insert the micro SD Card into your Linux PC and find the device name of the SD card
Use
lsblk
command to check the device name as follows.Before inserting the SD card
After inserting the SD card
Note
The device name is assigned to the SD card by Linux on your Host PC. It may be named
/dev/sd*
(*
is a letter representing the physical drive). It is/dev/sda
in this sample.Unmount the SD card if it is mounted
Use
umount
command with mount points that are displayed when you executedlsblk
command. For example:Write the image to the SD card
Use
bmaptool
command with device name of SD card is displayed when you executedlsblk
command. For example:Image file is:
<image name>-smarc-rzg2l.rootfs.wic.gz
Note
Additionally, the file below is also required:
<image name>-smarc-rzg2l.rootfs.wic.bmap
Note
Where
<image name>
is one of the following:core-image-minimal
core-image-weston
Step 5: Reference Board Setting¶
1. Setup EVK's peripheral¶
Please setup following below diagram.
2. EVK's DIP switch¶
EVK's DIP switch (SW1 and SW11) reference.
SW1
SW11
SCIF Download Mode
QSPI Boot Mode
eMMC Boot Mode
eSD Boot Mode
Note
Input voltage selection
SW11-4 Input voltage selection OFF Input 9V ON Input 5V
3. Prepare for Flashing Boot Loader into EVK¶
Connect the board to the programing PC by using the USB serial cable.
Bring up TeraTerm and select the File > New Connection to set the connection on the software.
Select the Setup > Serial port to set the settings about serial communication protocol on TeraTerm.
Set the settings for the serial communication in TeraTerm as below:
Variable Value Baud rate 115200
bpsData 8 bit
Parity none
Stop 1 bit
Flow control none
Select the Setup > Terminal to set the new-line code.
Variable Value New-line CR
orAUTO
To set the board to SCIF Download mode, set the SW11 as below.
After finishing all settings, when the reset button SW10 is pressed, the message below will be displayed on the terminal.
4. Download Flash Writer to RAM¶
Flash Writer is a small program that is downloaded into internal RAM inside the target device to assist in programming the boot loader into Flash memory.
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
using the terminal software after the message please send ! is shown.
Flash Writer
image file is:
Flash_Writer_SCIF_RZG2L_SMARC_PMIC_DDR4_2GB_1PCS.mot
Below is a sample procedure with TeraTerm.
Open a Send file dialog by selecting File > Send file menu.
Select the image to be send and click Open button.
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.
5. Write the Bootloader¶
For the boot operation, two boot loader files need to be programming into the target board.
The corresponding bootloader files and specified address information depend on each target board.
Before writing the loader files, change the Flash Writer transfer rate from default (115200
bps) to high speed (921600
bps) with SUP
(speed up) command of Flash Writer.
After issuing the SUP
command, change the serial communication protocol speed from 115200
bps to 921600
bps as well, and push the enter key.
Next, use the XLS2
command of Flash Writer to write boot loader 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.
For example, this part describes how to write boot loader files:
>XLS2
===== Qspi writing of RZ/G2 Board Command =============
Load Program to Spiflash
Writes to any of SPI address.
Micron : MT25QU512
Program Top Address & Qspi Save Address
===== Please Input Program Top Address ============
Please Input : H'11E00
===== Please Input Qspi Save Address ===
Please Input : H'00000
Work RAM(H'50000000-H'53FFFFFF) Clear....
please send ! ('.' & CR stop load)
Send the data of bl2_bp_spi-smarc-rzg2l_pmic.srec
from terminal software after the message please send ! is shown.
After successfully downloading the binary, messages like below are shown on the terminal.
SPI Data Clear(H'FF) Check :H'00000000-0000FFFF Erasing..Erase Completed
SAVE SPI-FLASH.......
======= Qspi Save Information =================
SpiFlashMemory Stat Address : H'00000000
SpiFlashMemory End Address : H'00009A80
===========================================================
Note
In case a message to prompt to clear data like above, please enter Y.
Next, write another loader file by using XLS2
command again.
>XLS2
===== Qspi writing of RZ/G2 Board Command =============
Load Program to Spiflash
Writes to any of SPI address.
Micron : MT25QU512
Program Top Address & Qspi Save Address
===== Please Input Program Top Address ============
Please Input : H'00000
===== Please Input Qspi Save Address ===
Please Input : H'1D200
Work RAM(H'50000000-H'53FFFFFF) Clear....
please send ! ('.' & CR stop load)
Send the data of fip-smarc-rzg2l_pmic.srec
from terminal software after the message please send ! is shown.
After successfully downloading the binary, messages like below are shown on the terminal.
SPI Data Clear(H'FF) Check :H'00000000-0000FFFF Erasing..Erase Completed
SAVE SPI-FLASH.......
======= Qspi Save Information =================
SpiFlashMemory Stat Address : H'0001D200
SpiFlashMemory End Address : H'000CC73F
===========================================================
Note
In case a message to prompt to clear data like above, please enter Y.
After writing the two loader files normally, change the serial communication protocol speed from 921600
bps to 115200
bps.
At last, turn off the power of the board by pressing SW9.
Note
Address for sending each loader binary file for QSPI boot
File name Address to load to RAM Address to save to ROM bl2_bp_spi-smarc-rzg2l_pmic.srec
11E00
00000
fip-smarc-rzg2l_pmic.srec
00000
1D200
Step 6: Run RZ Linux BSP Plus¶
1. Setup EVK's DIP switch to Normal Boot¶
In this case use QSPI boot and SD card.
Note
For eMMC and/or eSD Boot, please refer to Appendix.
2. Turn on EVK and start Linux BSP Plus¶
- Insert the bootable SD card created at Step 4 into the microSD card slot on SMARC module board as illustrated in the figure at "1. Setup EVK's peripheral".
- Connect a USB cable to CN6 for power supply.
Press and hold power button (SW9) for 1 second to turn on the EVK.
Note
Press and hold the button for 2 seconds when you turn off the EVK.