SMARC EVK of RZ/G2L, RZ/G2LC, RZ/G2UL, RZ/V2L, and RZ/Five
Start-up Guide
R01US0556EJ0102 Rev.1.02
Page 25 of 37
Jun. 17, 2022
2.1.2
Building Flash Writer
For SMARC Evaluation Board kit of RZ/G2L, RZ/G2LC, RZ/G2UL, and RZ/V2L
Get source codes of Flash Writer from the GitHub repository and checkout the branch rz_g2l.
$ cd ~/
$ git clone https://github.com/renesas-rz/rzg2_flash_writer.git
$ cd rzg2_flash_writer
$ git checkout -b tmp 4168466783f06fa7f2aa5782c597803a6882ed2f
Build Flash Writer as an s-record file by the following commands. Please specify a target board by “
BOARD
” option.
•
ARM toolchain:
$ export PATH=$PATH:~/gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf/bin
$ export CROSS_COMPILE=aarch64-none-elf-
$ export CC=${CROSS_COMPILE}gcc
$ export AS=${CROSS_COMPILE}as
$ export LD=${CROSS_COMPILE}ld
$ export AR=${CROSS_COMPILE}ar
$ export OBJDUMP=${CROSS_COMPILE}objdump
$ export OBJCOPY=${CROSS_COMPILE}objcopy
$ make clean
$ make BOARD=
<board>
•
Yocto SDK:
$ make clean
$ make BOARD=
<board>
Please replace
<board>
to a proper option according to this table.
Table 7. BOARD option
Target board
BOARD option
<board>
Image to be generated
smarc-rzg2l-
pmic
RZG2L_SMARC_PMIC
Flash_Writer_SCIF_RZG2L_SMARC_PMIC_DDR4_2GB_1PCS.mot
smarc-rzg2lc
RZG2LC_SMARC
Flash_Writer_SCIF_RZG2LC_SMARC_DDR4_1GB_1PCS.mot
smarc-rzg2ul
RZG2UL_SMARC
Flash_Writer_SCIF_RZG2UL_SMARC_DDR4_1GB_1PCS.mot
smarc-rzv2l-
pmic
RZV2L_SMARC_PMIC
Flash_Writer_SCIF_RZV2L_SMARC_PMIC_DDR4_2GB_1PCS.mot