The best solution for
starting your AI applications.
Provided by Renesas Electronics Corporation
This project is maintained by renesas-rz
Hosted on GitHub Pages — Theme by orderedlist
Before booting up the board, you must write the latest bootloaders to the board.
Bootloaders are written to eMMC, which means that this procedures needs to be done only once as long as you use the same version of AI SDK.
Follow the instruction below to write bootloaders to the board.
${WORK}/board_setup/bootloader
to your Windows PC.Flash_Writer_SCIF_RZV2L_SMARC
_PMIC_DDR4_2GB_1PCS.mot
bl2_bp-smarc-rzv2l_pmic.srec
fip-smarc-rzv2l_pmic.srec
Connect PC and Board via Serial to MicroUSB Cable.
Change SW11 setting (see the figure below).
Press and hold the power button (SW9) for 1 second to turn on the power.
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 |
SCIF Download mode
(C) Renesas Electronics Corp.
-- Load Program to System RAM ---------------
please send !
*.mot
) as a text.Flash writer for RZ/V2 Series Vx.xx xxx.xx,20xx
Product Code : RZ/V2L
>
XLS2
” on the terminal to get following messages.
> 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
”. The log continues.
Please Input : H'11E00
===== Please Input Qspi Save Address ===
Please Input : H'
00000
”. The log continues.
Please Input : H'00000
Work RAM(H'50000000-H'53FFFFFF) Clear....
please send ! ('.' & CR stop load)
After the “please send!” message, open “File” > “Send file…” and send the bl2_bp-smarc-rzv2l_pmic.srec
file as a text from the terminal software.
y
”.
SPI Data Clear(H'FF) Check : H'00000000-0000FFFF,Clear OK?(y/n)
SAVE SPI-FLASH.......
======= Qspi Save Information =================
SpiFlashMemory Stat Address : H'00000000
SpiFlashMemory End Address : H'00009A80
===========================================================
XLS2
” on the terminal to get following messages.
> 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'
00000
”. The log continues.
Please Input : H'00000
===== Please Input Qspi Save Address ===
Please Input : H'
1D200
”. The log continues.
Please Input : H'1D200
Work RAM(H'50000000-H'53FFFFFF) Clear....
please send ! ('.' & CR stop load)
After the “please send!” message, open “File” > “Send file…” and send the fip-smarc-rzv2l_pmic.srec
file as a text from the terminal software.
y
”.
SPI Data Clear(H'FF) Check : H'00000000-0000FFFF,Clear OK?(y/n)
SAVE SPI-FLASH.......
======= Qspi Save Information =================
SpiFlashMemory Stat Address : H'0001D200
SpiFlashMemory End Address : H'000CC73F
===========================================================
After this procedure, you can create the SD card and boot the board.
Refer to the Getting Started: Setup the SD card to create the SD card for the board.
Refer to the Getting Started: Boot RZ/V2L Evaluation Board Kit to boot the board.
When writing the necessary files for the board, microSD card needs to have appropriate format.
Note that you need to run this procedure only once as long as you use the same microSD card.
Follow the instruction below to format the microSD card partitions.
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 30.9G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 30.3G 0 part /
sr0 11:0 1 1024M 0 rom
lsblk
Note: Be careful not to use the other device since it may destruct your computer filesystem.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 30.9G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 30.3G 0 part /
sdb 8:16 1 29.7G 0 disk
└─sdb1 8:17 1 29.7G 0 part
sr0 11:0 1 1024M 0 rom
/dev/sdb
: The device name for the entire microSD card./dev/sdb1
: The paritition name in microSD card. There may be multiple sdb*
depending on the microSD card. df
/media/user/A8D3-393D
” in the following example. Filesystem 1K-blocks Used Available Use% Mounted on
udev 745652 0 745652 0% /dev
:
snip
:
/dev/sdb1 511720 4904 506816 1% /media/user/A8D3-393B
sudo umount /media/user/A8D3-393B
fdisk
command as shown below to change the partition table according to the following table.Type/Number | Size | Filesystem | Contents |
---|---|---|---|
Primary #1 | 500MB (minimum 128MB) | FAT32 | Linux kernel Device tree |
Primary #2 | All remaining | Ext4 | Root filesystem |
sudo fdisk /dev/sdb
Note: Use device name. Do NOT use partition name such as
/dev/sdb1
.
Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help):
o
” to console. The log continues. Created a new DOS disklabel with disk identifier 0x6b6aac6e.
Command (m for help):
n
” to console. The log continues. Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):
p
” to console. The log continues. Partition number (1-4, default 1):
First sector (2048-62333951, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-62333951,
default 62333951):
+500M
” to console. The log continues. Created a new partition 1 of type 'Linux' and of size 500 MiB.
Partition #1 contains a vfat signature.
Do you want to remove the signature? [Y]es/[N]o:
Y
” to console. The log continues. The signature will be removed by a write command.
Command (m for help):
n
” to console. The log continues. Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p):
p
” to console. The log continues. Partition number (2-4, default 2):
First sector (1026048-62333951, default 1026048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (1026048-62333951,
default 62333951):
Created a new partition 2 of type 'Linux' and of size 29.2 GiB.
Command (m for help):
p
” to console. The log continues. Disk /dev/sdb: 29.74 GiB, 31914983424 bytes, 62333952 sectors
Disk model: Transcend
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6b6aac6e
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 1026047 1024000 500M 83 Linux
/dev/sdb2 1026048 62333951 61307904 29.2G 83 Linux
Filesystem/RAID signature on partition 1 will be wiped.
Command (m for help):
t
” to console. The log continues. Partition number (1,2, default 2):
1
” to console. The log continues. Hex code (type L to list all codes):
b
” to console. The log continues. Changed type of partition 'Linux' to 'W95 FAT32'.
Command (m for help):
w
” to console. The fdisk
interface will end. The partition table has been altered.
Syncing disks.
partprobe
sudo fdisk -l /dev/sdb
Disk /dev/sdb: 29.74 GiB, 31914983424 bytes, 62333952 sectors
Disk model: Maker name etc.
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6b6aac6e
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 1026047 1024000 500M b W95 FAT32
/dev/sdb2 1026048 62333951 61307904 29.2G 83 Linux
Note: If the partitions were automatically mounted after the step 6, please unmount them again.
sudo mkfs.vfat -v -c -F 32 /dev/sdb1
mkfs.fat 4.1 (2017-01-24)
/dev/sdb1 has 64 heads and 32 sectors per track,
hidden sectors 0x0800;
logical sector size is 512,
using 0xf8 media descriptor, with 1024000 sectors;
drive number 0x80;
filesystem has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 1000 sectors, and provides 127746 clusters.
There are 32 reserved sectors.
Volume ID is a299e6a6, no volume label.
Searching for bad blocks 16848... 34256... 51152... 68304... 85072... 10209
6... 119376... 136528... 153552... 170576... 187472... 204624... 221648... 238
928... 256208... 273744... 290768... 308048... 325328... 342480... 359504... 3
76656... 393680... 410576... 427216... 444624... 462032... 479184... 495952...
sudo mkfs.ext4 -L rootfs /dev/sdb2
mke2fs 1.45.5 (07-Jan-2020)
Creating filesystem with 7663488 4k blocks and 1916928 inodes
Filesystem UUID: 63dddb3f-e268-4554-af51-1c6e1928d76c
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
After this procedure, you can write the necessary data for the board into microSD card.
Refer to the Getting Started: Setup the SD card to write files to the microSD card.
This step can set the booting configuration of the board.
When you obtained the board, this procedure must be done at least once.
You can use this option for running the application or Boot Option 2.
However, please note that AI applications provided on GitHub assume that user runs the application with the Boot Option 2.
Follow the instruction below to boot-up the board.
env default -a
setenv bootargs 'root=/dev/mmcblk1p2 rootwait'
setenv bootcmd 'mmc dev 1;fatload mmc 1:1 0x48080000 Image-smarc-rzv2l.bin; fatload mmc 1:1 0x48000000 Image-r9a07g054l2-smarc.dtb; booti 0x48080000 - 0x48000000'
saveenv
boot
smarc-rzv2l login:
root
After this procedure, you can run the AI application on the board.
Refer to the Getting Started: Run the Application to run the AI applications.