Page 1
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E R01US0555EJ0104 Rev.1.04 Linux Start-up Guide May 31, 2024 Introduction This document provides a guide to prepare RZ/G2 reference boards to boot up with the Verified Linux Package. This guide provides the following information: •...
Download Flash Writer to RAM ..................31 4.1.9 Writing Bootloader ......................32 4.1.10 Change Back to Normal Boot Mode .................. 34 4.1.11 Note for RZ/G2H, RZ/G2M, and RZ/G2N ................36 Silicon Linux RZ/G2E evaluation kit (EK874) ................. 37 4.2.1 Preparation of Hardware and Software ................37 4.2.2...
Page 3
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Building the SDK ......................48 Application Building and Running ................49 Make an application ........................49 7.1.1 How to extract SDK ......................49 7.1.2 How to build Linux application ..................50 Run a sample application ......................
A Windows PC can be used as the serial terminal interface with software such as TeraTerm. Figure 1. Recommend environment. Note: The board shown in Figure 1 is RZ/G2N, but RZ/G2H,M,E has the same structure. R01US0555EJ0104 Rev.1.04 Page 4 of 59...
Page 5
OSS except for the Linux kernel, VLP/G can always build images in this “offline” environment without affected from changes of repositories of OSS. Also, this “offline” environment reproduces the same images as the images which were verified by Renesas. Below images can be built “offline”.
$ git config --global user.email "you@example.com" $ git config --global user.name "Your Name" Copy all files obtained from Renesas into your Linux Host PC prior to the steps below. The directory which you put the files in is described as <package download directory>...
Page 7
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Enable Graphics and Video Codec If you want to enable the Graphics and the video codec on RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E when building core-image-weston, please copy the Multimedia package (RTK0EF0045Z0022AZJ-<version>_EN.zip or RTK0EF0045Z0022AZJ-<version>_JP.zip) to working directory and run the commands below.
Page 8
RZ/G2H, M, N, E Enable Qt LGPL version “RZ/G2H, M, N, E” means the devices of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E. After the build is successfully completed, a similar output will be seen, and the command prompt will return. NOTE: Tasks Summary: Attempted 7427 tasks of which 16 didn’t need to be rerun and all succeeded.
Page 9
Linux Start-up Guide All necessary files listed in the Table 4 will be generated by the bitbake command and will be located in the build/tmp/deploy/images directory. Table 4. Image files for RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E RZ/G2H Linux kernel Image-hihope-rzg2h.bin root filesystem <image...
Page 10
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Device tree files Type 1 Type 2 Type 3 Type 4 RZ/G2H Image-r8a774e1- Image-r8a774e1- Image-r8a774e1- Image-r8a774e1- hihope-rzg2h-ex-idk- hihope-rzg2h-ex-mipi- hihope-rzg2h.dtb hihope-rzg2h-ex.dtb 1110wr.dtb 2.1.dtb RZ/G2M Image-r8a774a1- Image-r8a774a1- Image-r8a774a1- Image-r8a774a1- hihope-rzg2m-ex-idk- hihope-rzg2m-ex- hihope-rzg2m.dtb...
After applying above patch, please note to below points. Audio In case 48kHz audio, please set SW2404 to P1 side in HiHope Rev4 Boards of RZ/G2H, M, and N. Bluetooth Firmware of Bluetooth is integrated into the kernel. Therefore, this step is not necessary.
Page 12
One camera input is enabled in default settings. Two camera inputs can be enabled in RZ/G2H, N and M v3.0. Please refer to the Video Capture Driver User’s Manual that is included in the RZ/G2 Group BSP Manual Set for more details.
Page 13
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide $ rfkill list If this command shows “Soft blocked: yes”, run “unblock” command like this. $ rfkill unblock wlan Then, continue below. $ connmanctl connmanctl> scan wifi connmanctl> services connmanctl>...
Page 14
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide USB Video Class (11) USB Video Class (UVC) driver is not installed with the default settings of VLP/G due to its large size. In case UVC devices such as USB cameras are necessary, please install the driver by adding the line below to local.conf.
Page 15
The name “WIC” is derived from OpenEmbedded Image Creator (oeic). It includes image that system can boot it in hardware device. WIC is supported and below guidelines are shown how to use it to boot Renesas RZ/G devices. Enable building WIC image in local.conf (default is enabled) by setting “WKS_SUPPORT” to 1: •...
Page 16
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide core-image-weston core-image-qt • There are 2 files *wic.bmap and *wic.gz in deploy folder after building successfully. Example: core-image-minimal-hihope-rzg2h.wic.bmap core-image-minimal-hihope-rzg2h.wic.gz Software bill of materials (SBoM) (14) Software package data exchange (SPDX) is an open standard for SBoM that identifies and catalogs components, licenses, copyrights, security references, and other metadata relating to software.
Page 17
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide To fix this, please apply below change in “poky/meta/classes/populate_sdk_base.bbclass”: -do_populate_sdk[cleandirs] = "${SDKDEPLOYDIR}" +do_populate_sdk[cleandirs] += "${SDKDEPLOYDIR}" R01US0555EJ0104 Rev.1.04 Page 17 of 59 May 31, 2024...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Preparing the SD Card You can prepare the microSD card by the following 2 methods. Please select one of them and follow the steps. - 3.1 Write files to the microSD card (used wic image) - 3.2 Write files to the microSD card (not used wic image)
Page 19
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Table 6. File and directory in the micro SD card Type/Number Contents Filesystem Primary #1 FAT32 <board> AArch64_Flash_writer_SCIF_DUMMY_CERT_E6300400_ .mot <board> u-boot-elf- .srec bootparam_sa0.srec <board> bl2- .srec <board> bl31- .srec cert_header_sa6.srec...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Write files to the microSD card (not used wic image) To boot from SD card, over 4GB capacity of blank SD card is needed. You can use Linux Host PC to expand the kernel and the rootfs using USB card reader or other equipment.
Page 21
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide (5) Change the partition table MicroSD card needs two partitions as listed in Table 7. Table 7. Partitions of microSD card Type/Number Contents Size Filesystem Primary #1 500MB (minimum 128MB) FAT32...
Page 22
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Disklabel type: dos Disk identifier: 0x6b6aac6e Device Boot Start Sectors Size Id Type /dev/sdb1 2048 1026047 1024000 500M 83 Linux /dev/sdb2 1026048 62333951 61307904 29.2G 83 Linux Filesystem/RAID signature on partition 1 will be wiped.
Page 23
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide mke2fs 1.45.5 (07-Jan-2020) Creating filesystem with 7663488 4k blocks and 1916928 inodes Filesystem UUID: 63dddb3f-e268-4554-af51-1c6e1928d76c Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,...
Page 24
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Table 8. File and directory in the microSD card Type/Number Contents Size Filesystem Primary #1 Size specified FAT32 Image-<board>.bin when the partition Image-<device>-<board type>.dtb was created. (minimum 128MB) Primary #2...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Reference Board Setting This section describes how to write Flash writer and bootloaders using Windows PC. For describes how to write using Linux PC, please refer to 8.3. 4.1 Hoperun Technology HiHope RZ/G2[HMN] platform (hihope-rzg2h, hihope-rzg2m, hihope-rzg2n) 4.1.1...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.1.2 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 the PC which runs a serial terminal software.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.1.4 How to use debug serial (console ouput) Please connect USB Type-microAB cable to CN201. Connect to PC CN201:USB Type-microAB Connector Figure 3. Connecting console for debug R01US0555EJ0104 Rev.1.04...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.1.5 Power supply Connect AC adapter to Connector (J2401). 1. Connect AC Adapter cable to J2401 Connect USB Type-microAB cable to CN2201 for SCI download Figure 4. Connecting Power Supply Slide the power switch (SW2402) to turn on the power.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.1.6 Building files to write The evaluation boards use the files in the Table 10 as the boot loaders. The boot loaders files are generated by the build instructions in the section 2. Please copy these files to a PC which runs serial terminal software.
Page 30
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 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 •...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Turn on the power of the board by changing the SW2402. Messages below are shown on the terminal. SCIF Download mode (w/o verification) (C) Renesas Electronics Corp. -- Load Program to SystemRAM --------------- please send ! 4.1.8...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide The image will be sent to the board via serial connection. After successfully download the binary, Flash Writer starts automatically and show a message like below on the terminal.
Page 33
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide “xls2” command of Flash Writer is used to write binary files. This command receives binary data from the serial port and write the data to specified address of the Flash ROM with information where the data should be loaded on the address of the main memory.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.1.10 Change Back to Normal Boot Mode To set the board to SPI Boot mode, set the SW1002 as below: Table 13. SW1002 Note) Be careful not to change the SW1001 and SW1003 Turn on the power of the board by changing the SW2402.
Page 35
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide If you created the microSD card according to the step 3.2, perform the following settings. If you created the microSD card according to the step 3.1, this setting is not required.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.1.11 Note for RZ/G2H, RZ/G2M, and RZ/G2N The dtb files listed in the Table 4 cannot be used for the early revision of Hoperun boards. If you are using revision 2 boards, please use below files.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.2 Silicon Linux RZ/G2E evaluation kit (EK874) 4.2.1 Preparation of Hardware and Software The following environment of Hardware and Software is used in the evaluation. Hardware preparation (Users should purchase the following equipment.): AC Adapter 12V2A with EIAJ3 connector (Any AC Adapter) •...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.2.2 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 the PC which runs a serial terminal software.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.2.4 How to use debug serial (console ouput) Please connect USB Type-microAB cable. Connect to PC Type-microAB Connector Figure 7. Connecting console for debug R01US0555EJ0104 Rev.1.04 Page 39 of 59...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.2.5 Power supply Connect AC adapter to Connector (CN36). 1. Connect AC Adapter cable to CN36 2. LED8 lights8 Connect USB Type-microAB cable to CN1 for SCI download Figure 8. Connecting Power Supply LED8 lights up.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.2.6 Building files to write The evaluation boards use the files in the Table 15 as the boot loaders. The boot loaders files are generated by the build instructions of the section 2. Please copy these files to a PC which runs serial terminal software.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Select the “Setup” > “Terminal” to set the new-line code. New-line:”CR” or “AUTO” To set the board to SCIF Download mode, set the SW11 as below: To set the board to SCIF Download mode, set the SW12 which is placed near the micro SD card slot as below: 4.2.8...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide please send ! Send an image of Flash Writer (AArch64_Flash_writer_SCIF_DUMMY_CERT_E6300400_ek874.mot) from terminal software after the message “please send !” is shown. After successfully download the binary, Flash Writer starts automatically and shows a message like below on the terminal.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 4.2.10 Setting U-boot To set the board to SPI Boot mode, set the SW12 which is placed near the micro SD card slot as below: Turn on the power of the board by changing the SW23.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Saving Environment to SPI Flash... SF: Detected w25m512jv with page size 256 B ytes, erase size 4 KiB, total 32 MiB Erasing SPI flash...Writing to SPI flash...done When you use the early version of EK874 (Revision A, B, C), please set “bootargs” as below.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Booting and Running Linux Set microSD card to slot on carry board. Figure 10. Set micro SD card to SMARC-EVK Now the board can bootup normally. Please turn off and on the power again to boot up the board.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide ## Resetting to default environment switch to partitions #0, OK mmc0 is current device 19778048 bytes read in 788 ms (23.9 MiB/s) 47293 bytes read in 5 ms (9 MiB/s)
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Building the SDK To build Software Development Kit (SDK), run the commands below after the steps (1) – (6) of section 2.1 are finished. The SDK allows you to build custom applications outside of the Yocto environment, even on a completely different PC.
Linux Start-up Guide Application Building and Running This chapter explains how to make and run an application for RZ/G2H,M,N,E with this package. 7.1 Make an application Here is an example of how to make an application running on VLP. The following steps will generate the “Hello World”...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 7.1.2 How to build Linux application Step 1. Make a work directory for the application on the Linux host PC. $ mkdir ~/hello_apl $ cd ~/hello_apl Step 2. Make the following three files (an application file, Makefile, and configure file) in the directory for the application.
Notes: 1. “sdb2” (above in red) may depend on using system. 2. is an optional directory name to store the application. 7.2 Run a sample application Power on the RZ/G2H,M,N,E Evaluation Board Kit and start the system. After booting, run the sample application with the following command. BSP: RZG2N/HIHOPE-RZG2N/3.0.6 LSI: RZG2N Version: 3.0.6...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Appendix 8.1 Preparing Flash Writer Flash Writer is built automatically when building VLP by bitbake command. Please refer to the Release Note of the Verified Linux Package to obtain a binary file of Flash Writer.
Page 53
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Target board BOARD option Image to be generated <board> HiHope RZ/G2H HIHOPE AArch64_Flash_writer_SCIF_DUMMY_CERT_E6300400_hihope.mot HiHope RZ/G2M HiHope RZ/G2N EK874 EK874 AArch64_Flash_writer_SCIF_DUMMY_CERT_E6300400_ek874.mot R01US0555EJ0104 Rev.1.04 Page 53 of 59 May 31, 2024...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 8.2 Docker This section explains how to build the VLP with Docker enabled and how to obtain and run the "hello-world" image. Add layers to enable Docker After completing the step (3) in the section 2, run the following commands. Once executed, proceed until step (6) in the section 2 to build the VLP with Docker enabled.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 8.3 Booting Setup with Ubuntu PC This section describes how to write Flash writer and bootloaders using Ubuntu PC. Here is an example using an Ubuntu PC and minicom.
Page 56
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide | lineWrap on/off..W local Echo on/off..E | Help screen..Z | | Paste file..Y Timestamp toggle...N | scroll Back..B | | Add Carriage Ret...U Select function or press Enter for none.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide 8.4 Device drivers The following drivers are supported: For detail information on how to use, please refer to these documents in the BSP manual set (RTK0EF0045Z9002AZJ-v3.0.x.zip). Table 17. Support device drivers...
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Revision History Description Rev. Date Page Summary 1.00 Mar. 31, 2022 − First edition issued. 1.01 Jun. 6, 2022 Add the instructions to format SD cards. Add the Notes section.
Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E Linux Start-up Guide Website and Support Renesas Electronics Website http://www.renesas.com/ Inquiries http://www.renesas.com/contact/ All trademarks and registered trademarks are the property of their respective owners. R01US0555EJ0104 Rev.1.04 Page 59 of 59 May 31, 2024...
Need help?
Do you have a question about the RZ/G2H and is the answer not in the manual?
Questions and answers