Reference Boards of RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E
Start-up Guide
R01US0555EJ0100 Rev.1.00
Page 3 of 13
Mar. 31, 2022
Preparing Flash Writer
Flash Writer is built automatically when building BSP by bitbake command. Please refer to the Release Note of the
Verified Linux 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.
1.1
Preparing cross compiler
FlashWriter runs on target boards. Please get cross compiler built by Linaro or setup a Yocto SDK.
Linaro toolchain:
$ cd ~/
$ wget https://releases.linaro.org/components/toolchain/binaries/7.3-2018.05/a
arch64-elf/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-elf.tar.xz
$ tar xvf gcc-linaro-7.3.1-2018.05-x86_64_aarch64-elf.tar.xz
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.14/environment-setup-aarch64-poky-linux
1.2
Building Flash Writer
Get source codes of Flash Writer from the GitHub repository and checkout the latest tag.
cd ~/
git clone https://github.com/renesas-rz/rzg2_flash_writer.git
cd rzg2_flash_writer
git checkout -b tmp 6606c4f4351f56fb3bd84d7836c01c8932a4f884
Build Flash Writer as an s-record file by the following commands. Please specify a target board by “
BOARD
” option.
Linaro toolchain:
$ make -f makefile.linaro clean
$ CROSS_COMPILE=~/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-elf/bin/aarch64-elf-
make -f makefile.linaro BOARD=
<board>
Yocto SDK:
$ make clean
$ make BOARD=
<board>
Please replace
<board>
to a proper option according to this table.
Target board
BOARD option
<board>
Image to be generated
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