Geniatech RS-G2L100 User manual

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
1
RS-G2L100 User Guide

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
2
Content
1. Yocto on the RS-G2L100.................................................................................. 3
2. Installing Yocto..................................................................................................3
2.1 Hardware tools required:............................................................................3
2.2 Software tools required:............................................................................. 3
2.3 Step 1. Download the Yocto images and Tools from the website............ 3
2.4 Step 2. Bring the board into burn mode.....................................................4
2.5 Step 3. Flash the Yocto image................................................................... 5
2.6 step 4. Reboot and enjoy !........................................................................10
3. G2L00 Yocto Introduction...............................................................................11
3.1 Building Environment..............................................................................11
3.2 Building Instructions of a BSP................................................................ 12

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
3
1. Yocto on the RS-G2L100
RS-G2L100 currently supports the system:Yocto.
2. Installing Yocto
2.1 Hardware tools required:
1USB to TTL
2HOST PC
3The RS-G2L100 Board
412V power supply
2.2 Software tools required:
5Tera Term
2.3 Step 1. Download the Yocto images and Tools from the website
1) Download the Yocto images from below website:
https://mega.nz/file/CMwCkRoK#Ylf3IwSvw3KNjDOKR7en-
ZMISkghy4wfRHxKOmYJBCg
2) Please download the Tera Term then install it in your computer from below
website:
https://www.filehorse.com/download-tera-term/

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
4
2.4 Step 2. Bring the board into burn mode
1) Set the start switch to: 1-off 2-on 3-off 4-off
2) USB to TTL :USB port is connected to the computer, and one end can be
connected to the board through a DuPont cable, the serial port interface of the
board is defined as follows:

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
5
2.5 Step 3. Flash the Yocto image
1) Connect the RS-G2L100 to the computer via USB to TTL.Open Tera Term,
select Serial -> port: select the Port recognized by the computer to the USB to
TTL;
2) Unzip the Yocto images file.Set baud rate: Tera Term ->Setup->Serial port

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
6
3) When everything is ready, plug in the device. Tera Term will display the
message:
4) Send the
Flash_Writer_SCIF_RZG2L_SMARC_PMIC_DDR4_2GB.mot file to the
system.

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
7
5) Write to file.(The red font is the input command)
6) Send the bl2_bp-smarc-rzg2l_pmic.srec file to the system.
”SPI Data Clear(H'FF) Check : H'00000000-0000FFFF,Clear OK?(y/n)”
When you see the following prompt, please enter yand continue to execute.
>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'0
Work RAM(H'50000000-H'53FFFFFF) Clear....
please send ! ('.' & CR stop load)

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
8
7) Write to file.(The red font is the input command)
8) Send the fip-smarc-rzg2l_pmic.srec file to the system.Wait for the file
upload to finish and the device is powered off.
9) Put the board into boot mode: 1-off 2-off 3-on 4-off..Put the core-image-
>xls2
===== Qspi writing of RZ/G2 Board Command =============
Load Program to Spiflash
Writes to any of SPI address.
Adesto : AT25SF128A
Program Top Address & Qspi Save Address
===== Please Input Program Top Address ============
Please Input : H'1d200
===== Please Input Qspi Save Address ===
Please Input : H'0
Work RAM(H'50000000-H'53FFFFFF) Clear....
please send ! ('.' & CR stop load)

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
9
weston-smarc-rzg2l.ext4 file on the server.
10) RS-G2L100 to the computer via USB to TTL.Open Tera Term,after
connecting to the power supply, keep pressing Enter on the keyboard to make
the device enter uboot mode.
11) RS-G2L100 access network and set IP under uboot mode.(Please use this
network port : J8)
12) Write to mmc .
setenv ipaddr 10.168.4.104
setenv ethaddr 88:33:14:f6:c0:d4
setenv serverip 10.168.4.204
setenv gatewayip 10.168.4.1
saveenv
tftpboot 0x58000000 core-image-weston-smarc-
rzg2l.ext4
mmc write 0x58000000 0 0x1317E4

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
10
Note:0x1317E4 is the changed value. The value of the size of ore-image-weston-smarc-rzg2l.ext4 needs to be
divided by 512 and then converted to hexadecimal.
For example, the file size in the figure: 640665600 bytes /512=1251300 is converted to hexadecimal 1317e4.
2.6 step 4. Reboot and enjoy !
After completing the programming, power off and restart the device.(login:root)

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
11
3. G2L00 Yocto Introduction
This section provides instructions for building and Yocto systems on the
G2L100. If you need the source code, please contact us and we will publish the
source code. Let's use our server as an example to compile.
3.1 Building Environment
This release note describes the contents, building procedures and important points of the G2L Board
Support Package (hereinafter referred to as “BSP”)
The recommended environment for BSP is shown below. The equipment and
software used in this environment are listed in the following table.

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
12
3.2 Building Instructions of a BSP
3.2.1 Building images to run on the board
This section describes the instructions to build the BSP. Before starting the
build, run the command below on the
Linux Host PC to install packages used for building the BSP.
Please refer to the URL below for detailed information:
•https://docs.yoctoproject.org/3.1.5/brief-yoctoprojectqs/brief-
yoctoprojectqs.html
Run the commandsbelow and set the user name and email address before
starting the build procedure. Without this setting, an error occurs when
building procedure runs git command to apply patches.
1) Create a working directory (user_work) at your home directory, and
decompress Yocto recipe package
Run the commands below. Copy the compressed Yocto recipe package files
(rzg2l_bsp_v1.0.tar.gz) into your home directory prior to this step.
Note) When you use the WS1 version of the G2L LSI, please refer to the Section 3.2.3 Notes - (1) and apply the
patches before the step (4) in the section 3.2.1.
2) Setup a build environment
Run the commands below. The environment to build is set by the source
command.
$ sudo apt-get update
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils \
debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm
$ git config --global user.email "you@example.com"
$ git config --global user.name "Your Name"
$ mkdir ~/user_work
$ cd ~/user_work
$ tar zxvf ~/rzg2l_bsp_v1.0.tar.gz

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
13
3) Prepare the default configuration files for the target board
Run the commands below.
4) Start a build
Run the commands below to start a build. Please connect the Linux Host PC to
the network when building. Building an image can take up to a few hours
depending on the user’s host system performance.
After the build is successfully completed, a similar output will be seen, and the
command prompt will return.
3.2.2 Building SDK
To build Software Development Kit (SDK), run the commands below after the
steps (1) – (4) of section 3.2.1 are finished.
The SDK allows you to build custom applications outside of the Yocto
environment, even on a completely different PC. The results of the commands
below are ‘installer’ that you will use to install the SDK on the same PC, or a
completely different PC.
For building general applications:
The resulting SDK installer will be located in build/tmp/deploy/sdk/
The SDK installer will have the extension .sh
To run the installer, you would execute the following command:
$ cd ~/user_work
$ source poky/oe-init-build-env
$ cd ~/user_work/build
$ cp ../meta-rzg2/docs/template/conf/minimal/smarc-rzg2l/*.conf ./conf/
$ bitbake core-image-minimal
NOTE: Tasks Summary: Attempted 7427 tasks of which 16 didn't need to be rerun
and al l succeeded.
$ cd ~/user_work/build
$ bitbake core-image-minimal -c populate_sdk

Spec V1.0
Contact us for more details:
https://www.geniatech.com/
14
3.2.3 Notes
Early version of G2L Evaluation Board Kit
When you use the WS1 version of the G2L LSI, please run the commands
below to apply the patches before the step (4) in the section 3.2.1. When you
want to know the details of the LSI version, please contact Renesas.
$ sudo sh poky-glibc-x86_64-core-image-minimal-aarch64-smarc-rzg2l-toolchain-
\ 3.1.5.sh
$ cd ~/user_work/meta-rzg2
$ patch -p1 < ../extra/0001-linux-renesas-add-workaround-patch-for-gicv3.patch
$ patch -p1 < ../extra/0002-tf-a-add-rd-wr-64-bit-reg-workaround.patch
Table of contents
Other Geniatech Computer Hardware manuals
Popular Computer Hardware manuals by other brands

Texas Instruments
Texas Instruments TMS320C3x user guide

Innoveta Technologies
Innoveta Technologies Veta iHA Series Product brief

Cypress Semiconductor
Cypress Semiconductor CY8C22x13 supplementary guide

ANTAIRA
ANTAIRA MSC-208A2 installation guide

NKK SWITCHES
NKK SWITCHES IS-L0204-CS user manual

PCB Piezotronics
PCB Piezotronics Q353B34 Installation and operating manual