SMARC EVK of RZ/G2L, RZ/G2LC, RZ/G2UL, RZ/V2L, and RZ/Five
Start-up Guide
R01US0556EJ0102 Rev.1.02
Page 24 of 37
Jun. 17, 2022
2. Appendix
2.1
Preparing Flash Writer
Flash Writer is built automatically when building BSP by bitbake command. Please refer to the Release Note of the
RZ/G2L BSP Group, the RZ/V2L BSP, and the RZ/Five BSP 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.
2.1.1
Preparing cross compiler
For SMARC Evaluation Board kit of RZ/G2L, RZ/G2LC, RZ/G2UL, and RZ/V2L
FlashWriter runs on target boards. Please get cross compiler built by Linaro or setup a Yocto SDK.
•
ARM toolchain:
$ cd ~/
$ wget https://developer.arm.com/-/media/Files/downloads/gnu-a/10.2-2020.11/bi
nrel/gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf.tar.xz
$ tar xvf gcc-arm-10.2-2020.11-x86_64-aarch64-none-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
For SMARC Evaluation Board kit of RZ/Five
FlashWriter runs on target boards. Please get cross compiler built by GNU toolchain or setup a Yocto SDK.
•
GNU toolchain:
$ git clone https://github.com/riscv/riscv-gnu-toolchain
$ cd riscv-gnu-toolchain
$ ./configure --prefix=/opt/riscv
$ sudo make linux -j
•
Yocto SDK:
Build an SDK according to Release Notes and install it to a Linux Host PC. Then, enable the SDK as below.
$ source /usr/local/oecore-x86_64/environment-setup-riscv64-oe-linux