D1. For RZ/V2H: Change the size of the microSD card image in WIC format
This section explains how to change the microSD card image size by changing the build settings of the WIC file.
Open ${YOCTO_WORK}/build/conf/local.conf
file in a text editor.
Find the following text in the file and edit the highlighted value to define the disk space of the image in Kbytes.
...
# Support WIC images with default wks from WKS_DEFAULT_FILE
# Reupdate WKS_DEFAULT_FILE if want to support another wks file.
WKS_SUPPORT ?= "1"
WKS_DEFAULT_FILE_rzv2h-dev = "rz-image-bootpart-mmc.wks"
WKS_DEFAULT_FILE_rzv2h-evk-alpha = "rz-image-bootpart-esd_rzv2h.wks"
WKS_DEFAULT_FILE_rzv2h-evk-ver1 = "rz-image-bootpart-esd_rzv2h.wks"
# Defines additional free disk space created in the image in Kbytes.
IMAGE_ROOTFS_EXTRA_SPACE = "8388608 "
...
The table below shows examples of setting values written in local.conf
file.
Note
If you have customized Linux, the disk image size may differ from the table.
SD card image size (Gbytes)
Setting values in the "local.conf" file (Kbytes)
4
1048576
8
4194304
16
8388608 (default)
After this procedure, please proceed to
Step 3-11 in How to build RZ/V2H AI SDK Source Code to build the Linux kernel files.
D2. For RZ/V2H: How to boot from xSPI
This section explains how to boot from xSPI on RZ/V2H EVK.
Note
To perform this procedure, please prepare the following equipment in addition to the
1.Necessary Equipments .
Windows PC
MicroUSB to Serial Cable for serial communication (Included in RZ/V2H EVK)
Follow the instruction below to setup the board.
1. Install Terminal Emulator
Note
If you have already installed terminal emulator,
skip this step and proceed to
next procedure .
Install following software on Windows PC to be used as serial communication console.
Terminal emulator
Operating Environment: Tera Term
2. Install the serial port driver
Note
If you have already installed the serial port driver,
skip this step and proceed to
next procedure .
The serial communication between Windows PC and RZ/V2H EVK requires following driver.
https://ftdichip.com/drivers/vcp-drivers/
Download the software "Virtual COM port (VCP) driver" from the windows version "setup executable" on the download page and extract it.
Run the *.exe
file extracted to install the serial port driver.
3. Write bootloaders on the board
Copy following files in ${WORK}/build/tmp/deploy/images/rzv2h-evk-ver1
to your Windows PC.
Flash_Writer_SCIF_RZV2H_DEV_INTERNAL_MEMORY.mot
bl2_bp_spi-rzv2h-evk-ver1.srec
fip-rzv2h-evk-ver1.srec
Connect Windows PC and Board via Serial to MicroUSB Cable.
Change DSW1 setting to Boot mode 3 (SCIF download). See the figure below.
Connect the power cable to CN13 on the Board.
Turn the SW3 to ON.
On Windows PC, open the terminal emulator.
Here, we use Tera Term as an example.
Select "File" > "New Connection" and select "Serial" port as shown below.
Open the configuration window from the "Setup">"Terminal" and change the setting as follows.
Item
Value
New-line
Receive: Auto
Transmit: CR
Open the configuration window from the "Setup">"Serial port" and change the setting as follows.
Item
Value
Baud rate
115200
Data
8bit
Parity
none
Stop
1bit
Flow control
none
Transmit delay
0msec/char
Turn the SW2 to ON to power on the Board and following message will be displayed on the terminal.
SCI Download mode (Normal SCI boot)
-- Load Program to SRAM ---------------
Open "File" > "Send file..." and send the Flash Writer file (*.mot
) as a text.
If following message is displayed, the file transfer succeeded.
Flash writer for RZ/V2x Series Vx.xx xxx.xx,20xx
Product Code : RZ/V2x
>
Enter "XLS2
" on the terminal to get following messages.
> XLS2
===== Qspi writing of RZ/V2x Board Command =============
Load Program to Spiflash
Writes to any of SPI address.
Program size & Qspi Save Address
===== Please Input Program Top Address ============
Please Input : H'
Enter "8101e00
". The log continues.
Please Input : H'8101e00
===== Please Input Qspi Save Address ===
Please Input : H'
Enter "00000
". The log continues.
Please Input : H'00000
please send ! ('.' & CR stop load)
After the "please send!" message, open "File" > "Send file..." and send the bl2_bp_spi-rzv2h-evk-ver1.srec
file as a text from the terminal software.
In case a message to prompt to clear data like below, please enter "y
".
SPI Data Clear(H'FF) Check : H'00000000-0000FFFF,Clear OK?(y/n)
Following log will be displayed. The end address is depending on the version of AI SDK.
Write to SPI Flash memory.
======= Qspi Save Information =================
SpiFlashMemory Stat Address : H'00000000
SpiFlashMemory End Address : H'00036D17
===========================================================
Enter "XLS2
" on the terminal to get following messages.
> XLS2
===== Qspi writing of RZ/V2x Board Command =============
Load Program to Spiflash
Writes to any of SPI address.
Program size & Qspi Save Address
===== Please Input Program Top Address ============
Please Input : H'
Enter "00000
". The log continues.
Please Input : H'00000
===== Please Input Qspi Save Address ===
Please Input : H'
Enter "60000
". The log continues.
Please Input : H'60000
please send ! ('.' & CR stop load)
After the "please send!" message, open "File" > "Send file..." and send the fip-rzv2h-evk-ver1.srec
file as a text from the terminal software.
In case a message to prompt to clear data like below, please enter "y
".
SPI Data Clear(H'FF) Check : H'00000000-0000FFFF,Clear OK?(y/n)
Following log will be displayed. The end address is depending on the version of AI SDK.
Write to SPI Flash memory.
======= Qspi Save Information =================
SpiFlashMemory Stat Address : H'00060000
SpiFlashMemory End Address : H'0011C2EE
===========================================================
Power-off the board to change DSW1 for booting the board.
4. Setup U-boot setting
Follow the procedure below to set the booting configuration of the board.
Insert the microSD card to the Board .
Note
Use the microSD card slot SD1 as shown in the figure.
Change DSW1 setting to Boot mode 2 (xSPI boot) as shown in the right figure.
Connect the Board and Windows PC by the USB Serial to Micro USB cable.
Connect the power cable to the Board .
Turn the SW3 to ON.
Open the terminal emulator, i.e., Tera Term, and connect with COMS port.
Turn the SW2 to ON to power on the Board.
On the terminal emulator, keep pressing ENTER key.
U-boot console will be activated.
Run the following commands to set the booting configuration.
env default -a
saveenv
boot
After the boot-up, the login message will be shown on the console.
rzv2h-evk1 login:
Log-in to the system using the information below.
user: root
password: none
Shutdown the board to finish the U-boot setting.
Shutdown Procedures
This is the end of How to boot from xSPI on RZ/V2H EVK.