Getting Started for RZ/T,N¶
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.
The RZ/T2H Evaluation Board Kit (EVK) is the ideal board kit for RZ/T2H evaluation.
Following items are included in the RZ/T2H Evaluation Board Kit.
| Equipment | Details |
|---|---|
| RZ/T2H Evaluation | Evaluation board itself |
| USB Mini B Cable | For serial communication between PC and the board |
| USB Type C Cable | For Power supply (15V) |
| USB Micro B Cable | For on-board emulator connection |
The RZ/N2H Evaluation Board Kit (EVK) is the ideal board kit for RZ/N2H evaluation.
Following items are included in the RZ/N2H Evaluation Board Kit.
| Equipment | Details |
|---|---|
| RZ/N2H Evaluation | Evaluation board itself |
| USB Mini B Cable | For serial communication between PC and the board |
| USB Type C Cable | For Power supply (15V) |
| USB Micro B Cable | For on-board emulator connection |
Step 2: Obtain necessary environment¶
1. Necessary Equipment¶
Please prepare the following equipment for your EVK.
Equipment | Purpose | Remarks |
|---|---|---|
RZ/T2H Module Board (SMARC2.1) + Common Carrier Board | It is used to evaluate Linux boot. | Included with RZ/T2H Evaluation Board Kit (EVK) |
USB serial cable | It is used to connect the PC and the EVK and get the console | Included with RZ/T2H 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 |
micro SD card | Linux and demo images provided by the HMI SDK are written and | Linux on the RZ/T2H EVK is booted from a micro SD card by eSD |
Equipment | Purpose | Remarks |
|---|---|---|
RZ/N2H Module Board (SMARC2.1) + Common Carrier Board | It is used to evaluate Linux boot. | Included with RZ/N2H Evaluation Board Kit (EVK) |
USB serial cable | It is used to connect the PC and the EVK and get the console | Included with RZ/N2H 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 |
micro SD card | Linux and demo images provided by the HMI SDK are written and | Linux on the RZ/N2H 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:
core-image-minimal-rzt2h-dev.rootfs.wic.gz
Caution
Even if you see a message such as
you need to format the diskbefore/after writing the image, do not format the SD card.Image file is:
core-image-minimal-rzn2h-dev.rootfs.wic.gz
Caution
Even if you see a message such as
you need to format the diskbefore/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
lsblkcommand 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/sdain this sample.Unmount the SD card if it is mounted
Use
umountcommand with mount points that are displayed when you executedlsblkcommand. For example:Write the image to the SD card
Use
bmaptoolcommand with device name of SD card is displayed when you executedlsblkcommand. For example:Image file is:
core-image-minimal-rzt2h-dev.rootfs.wic.gz
Note
Additionally, the file below is also required:
core-image-minimal-rzt2h-dev.rootfs.wic.bmap
Image file is:
core-image-minimal-rzn2h-dev.rootfs.wic.gz
Note
Additionally, the file below is also required:
core-image-minimal-rzn2h-dev.rootfs.wic.bmap
Step 5: Reference Board Setting¶
1. Setup EVK's peripheral¶
Please setup following below diagram.
2. EVK's DIP switch¶
EVK's DIP switch (SW14) and jumper(CN77 and CN78) reference.
jumper
SW14
SCIF Download Mode
SW14-1 SW14-2 SW14-3 SW14-4 SW14-5 SW14-6 SW14-7 SW14-8 OFF ON OFF OFF OFF ON ON OFF xSPI Boot Mode
SW14-1 SW14-2 SW14-3 SW14-4 SW14-5 SW14-6 SW14-7 SW14-8 ON ON ON OFF OFF OFF ON OFF eMMC Boot Mode
SW14-1 SW14-2 SW14-3 SW14-4 SW14-5 SW14-6 SW14-7 SW14-8 ON ON OFF OFF OFF ON ON OFF eSD Boot Mode
SW14-1 SW14-2 SW14-3 SW14-4 SW14-5 SW14-6 SW14-7 SW14-8 OFF OFF ON OFF OFF OFF ON OFF
EVK's DIP switch (DSW3) and jumper(JP23) reference.
jumper
DSW3
SCIF Download Mode
DSW3-1 DSW3-2 DSW3-3 DSW3-4 DSW3-5 DSW3-6 DSW3-7 DSW3-8 OFF ON OFF OFF OFF OFF ON OFF xSPI Boot Mode
DSW3-1 DSW3-2 DSW3-3 DSW3-4 DSW3-5 DSW3-6 DSW3-7 DSW3-8 ON ON ON OFF OFF OFF ON OFF eMMC Boot Mode
DSW3-1 DSW3-2 DSW3-3 DSW3-4 DSW3-5 DSW3-6 DSW3-7 DSW3-8 ON ON OFF OFF OFF ON ON OFF eSD Boot Mode
DSW3-1 DSW3-2 DSW3-3 DSW3-4 DSW3-5 DSW3-6 DSW3-7 DSW3-8 OFF OFF ON OFF OFF OFF ON OFF
3. Prepare for Flashing Boot Loader into EVK¶
Connect the board to the programing PC by using the USB serial cable.
To set the board to SCIF Download mode, set the SW14 as below.
SW14-1 SW14-2 SW14-3 SW14-4 SW14-5 SW14-6 SW14-7 SW14-8 OFF ON OFF OFF OFF ON ON OFF Turn ON the power switch (SW16) to supply the power.
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 115200bpsData 8 bitParity noneStop 1 bitFlow control noneSelect the Setup > Terminal to set the new-line code.
Variable Value New-line CRorAUTOAfter finishing all settings, when the reset button is pressed, the message below will be displayed on the terminal.
To set the board to SCIF Download mode, set the DSW3 as below.
DSW3-1 DSW3-2 DSW3-3 DSW3-4 DSW3-5 DSW3-6 DSW3-7 DSW3-8 OFF ON OFF OFF OFF OFF ON OFF Turn ON the power switch (SW1) to supply the power.
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 115200bpsData 8 bitParity noneStop 1 bitFlow control noneSelect the Setup > Terminal to set the new-line code.
Variable Value New-line CRorAUTOAfter finishing all settings, when the reset button 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. The messages below are shown on the terminal.
Send an image of Flash Writer using the terminal software after the message please send ! is shown.
Flash Writer image file is:
HDR_NM(firstly send)Flash_Programmer_SCIF_CR52_RZT2H_EVK.mot(secondary send)
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 in the Tera Term: Send file dialog box.
The image will be sent to the board via serial connection.
After successfully downloading the binary,
Flash Writerstarts automatically and shows a message like below on the terminal.
When the transfer is complete, please transfer the file of "Flash_Programmer_SCIF_CR52_RZT2N_EVK.mot" using the same procedure within 30 seconds. If not completed within 10 seconds, please restart the transfer from the "HDR NM" file.
Flash Writer image file is:
HDR_NM(firstly send)Flash_Programmer_SCIF_CR52_RZT2H_EVK.mot(secondary send)
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 in the Tera Term: Send file dialog box.
The image will be sent to the board via serial connection.
After successfully downloading the binary,
Flash Writerstarts automatically and shows a message like below on the terminal.
When the transfer is complete, please transfer the file of "Flash_Programmer_SCIF_CR52_RZT2N_EVK.mot" using the same procedure within 30 seconds. If not completed within 10 seconds, please restart the transfer from the "HDR NM" file.
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.
use the XSPIW 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:
Send the data of bl2_bp_xspi0-rzt2h-dev.srec from terminal software after the message send file is shown.
After successfully downloading the binary, messages like below are shown on the terminal.
Next, write another loader file by using XSPIW command again.
Send the data of fip-rzt2h-dev.srec from terminal software after the message send file is shown.
After successfully downloading the binary, messages like below are shown on the terminal.
At last, turn off the power of the board.
For example, this part describes how to write boot loader files:
Send the data of bl2_bp_xspi0-rzn2h-dev.srec from terminal software after the message send file is shown.
After successfully downloading the binary, messages like below are shown on the terminal.
Next, write another loader file by using XSPIW command again.
Send the data of fip-rzn2h-dev.srec from terminal software after the message send file is shown.
After successfully downloading the binary, messages like below are shown on the terminal.
At last, turn off the power of the board.
Step 6: Run RZ Linux BSP Plus¶
1. Setup EVK's DIP switch to Normal Boot¶
In this case use xSPI boot and SD card.
Set up jumper and DIP switch SW14 as follows.
CN77
SW14
SW14-1 SW14-2 SW14-3 SW14-4 SW14-5 SW14-6 SW14-7 SW14-8 ON ON ON OFF OFF OFF ON OFF
Note
For eMMC and/or eSD Boot, please refer to Appendix.
Set up jumper and DIP switch SW14 as follows.
JP23
DSW3
DSW3-1 DSW3-2 DSW3-3 DSW3-4 DSW3-5 DSW3-6 DSW3-7 DSW3-8 ON ON ON OFF OFF OFF ON OFF
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 board as illustrated in the figure at "1. Setup EVK's peripheral".
- Connect a USB cable to the connector for power supply.
Press and hold power button for 1 second to turn on the EVK.
Note
Press and hold the button for 2 seconds when you turn off the EVK.
- Insert the bootable SD card created at Step 4 into the microSD card slot on board as illustrated in the figure at "1. Setup EVK's peripheral".
- Connect a USB cable to the connector for power supply.
Press and hold power button for 1 second to turn on the EVK.
Note
Press and hold the button for 2 seconds when you turn off the EVK.











