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
ID | Title | Device | Target |
---|---|---|---|
D1 | Change the size of the microSD card image in WIC format |
RZ/V2H RZ/V2N |
AI SDK Source Code v5.00 AI SDK Source Code v5.00 |
D2 | How to boot from QSPI | RZ/V2L | AI SDK Source Code v5.00 |
D3 | How to boot from xSPI |
RZ/V2H RZ/V2N |
AI SDK Source Code v5.00 AI SDK Source Code v5.00 |
D4 | How to boot from eMMC | RZ/V2N | AI SDK Source Code v5.00 |
${YOCTO_WORK}/build/conf/local.conf
file in a text editor.
...
# 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.SD card image size (Gbytes) |
Setting values in the "local.conf" file (Kbytes) |
---|---|
4 | 1048576 |
8 | 4194304 |
16 | 8388608 (default) |
*.exe
file extracted to install the serial port driver.
${WORK}/board_setup/QSPI/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
Item | Value |
---|---|
New-line | Receive: Auto |
Transmit: CR |
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)
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)
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
===========================================================
env default -a
saveenv
boot
smarc-rzv2l login:
root
Device | How to build RZ/V AI SDK Source Code | RZ/V EVK Getting Started |
---|---|---|
RZ/V2H | Step 3 | Step 7-1 |
RZ/V2N | Step 3 | Step 7-1 |
*.exe
file extracted to install the serial port driver.
Device | Path | File name |
---|---|---|
RZ/V2H | ${YOCTO_WORK}/build/tmp/deploy/images/rzv2h-evk-ver1 |
Flash_Writer_SCIF_RZV2H_DEV_INTERNAL_MEMORY.mot bl2_bp_spi-rzv2h-evk-ver1.srec fip-rzv2h-evk-ver1.srec |
RZ/V2N | ${YOCTO_WORK}/build/tmp/deploy/images/rzv2n-evk |
Flash_Writer_SCIF_RZV2N_DEV_LPDDR4X.mot bl2_bp_spi-rzv2n-evk.srec fip-rzv2n-evk.srec |
Item | Value |
---|---|
New-line | Receive: Auto |
Transmit: CR |
Item | Value |
---|---|
Baud rate | 115200 |
Data | 8bit |
Parity | none |
Stop | 1bit |
Flow control | none |
Transmit delay | 0msec/char |
SCI Download mode (Normal SCI boot)
-- Load Program to SRAM ---------------
*.mot
) as a text.Flash writer for RZ/V2x Series Vx.xx xxx.xx,20xx
Product Code : RZ/V2x
>
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'
8101e00
". The log continues.
Please Input : H'8101e00
===== Please Input Qspi Save Address ===
Please Input : H'
00000
". The log continues.
Please Input : H'00000
please send ! ('.' & CR stop load)
bl2_bp_spi-rzv2*.srec
file as a text from the terminal software.
y
".
SPI Data Clear(H'FF) Check : H'00000000-0000FFFF,Clear OK?(y/n)
Write to SPI Flash memory.
======= Qspi Save Information =================
SpiFlashMemory Stat Address : H'00000000
SpiFlashMemory End Address : H'00036D17
===========================================================
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'
00000
". The log continues.
Please Input : H'00000
===== Please Input Qspi Save Address ===
Please Input : H'
60000
". The log continues.
Please Input : H'60000
please send ! ('.' & CR stop load)
fip-rzv2*.srec
file as a text from the terminal software.
y
".
SPI Data Clear(H'FF) Check : H'00000000-0000FFFF,Clear OK?(y/n)
Write to SPI Flash memory.
======= Qspi Save Information =================
SpiFlashMemory Stat Address : H'00060000
SpiFlashMemory End Address : H'0011C2EE
===========================================================
env default -a
saveenv
boot
rzv2h-evk1 login:
root
Device | How to build RZ/V AI SDK Source Code | RZ/V EVK Getting Started |
---|---|---|
RZ/V2N | Step 3 | Step 7-1 |
*.exe
file extracted to install the serial port driver.
Device | Path | File name |
---|---|---|
RZ/V2N | ${YOCTO_WORK}/build/tmp/deploy/images/rzv2n-evk |
Flash_Writer_SCIF_RZV2N_DEV_LPDDR4X.mot bl2_bp_mmc-rzv2n-evk.srec bl2_bp_spi-rzv2n-evk.srec fip-rzv2n-evk.srec |
Item | Value |
---|---|
New-line | Receive: Auto |
Transmit: CR |
Item | Value |
---|---|
Baud rate | 115200 |
Data | 8bit |
Parity | none |
Stop | 1bit |
Flow control | none |
Transmit delay | 0msec/char |
SCI Download mode (Normal SCI boot)
-- Load Program to SRAM ---------------
*.mot
) as a text.Flash writer for RZ/V2x Series Vx.xx xxx.xx,20xx
Product Code : RZ/V2x
>
EM_W
" command and the following parameters in red.
> EM_W
EM_W Start -----------------------------------------------------------------------
Please select,eMMC Partition Area.
0:User Partition Area : 62160896 KBytes
eMMC Sector Cnt : H'0 -H'0768FFFF
1:Boot Partition 1 : 32256 KBytes
eMMC Sector Cnt : H'0 -H'0000FBFF
2:Boot Partition 2 : 32256 KBytes
eMMC Sector Cnt : H'0 -H'0000FBFF
---------------------------------------------------------
Select area(0-2)> 1
--Boot Partition 1 Program -----------------------------
Please Input Start Address in sector :1
Please Input Program Start Address : 8101E00
Work RAM (H'50000000-H'53FFFFFF) Clear....
please send ! ('.' & CR stop load)
bl2_bp_mmc-rzv2*.srec
file as a text from the terminal software. Following log will be displayed.
please send ! ('.' & CR stop load)
SAVE -FLASH.......
EM_W Complete!
EM_W
" command and the following parameters in red.
> EM_W
EM_W Start -----------------------------------------------------------------------
Please select,eMMC Partition Area.
0:User Partition Area : 62160896 KBytes
eMMC Sector Cnt : H'0 -H'0768FFFF
1:Boot Partition 1 : 32256 KBytes
eMMC Sector Cnt : H'0 -H'0000FBFF
2:Boot Partition 2 : 32256 KBytes
eMMC Sector Cnt : H'0 -H'0000FBFF
---------------------------------------------------------
Select area(0-2)> 1
--Boot Partition 1 Program -----------------------------
Please Input Start Address in sector :300
Please Input Program Start Address : 0
Work RAM (H'50000000-H'53FFFFFF) Clear....
please send ! ('.' & CR stop load)
fip-rzv2*.srec
file as a text from the terminal software. Following log will be displayed.
please send ! ('.' & CR stop load)
SAVE -FLASH.......
EM_W Complete!
em_secsd
" command and the following parameters in red.
> em_secsd
Please Input EXT_CSD Index(H'00 -H'1FF) :b1
EXT_CSD[B1] = 0x00
Please Input Value(H'00 -H'FF) :2
EXT_CSD[B1] = 0x02
> em_secsd
Please Input EXT_CSD Index(H'00 -H'1FF) :b3
EXT_CSD[B3] = 0x01
Please Input Value(H'00 -H'FF) :8
EXT_CSD[B3] = 0x08
XLS2
" command and the following parameters in red.
> XLS2
===== Qspi writing of RZ/G3S 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'8101E00
===== Please Input Qspi Save Address ===
Please Input : H'0
please send ! ('.' & CR stop load)
bl2_bp_spi-rzv2*.srec
file as a text from the terminal software.
please send ! ('.' & CR stop load)
Erase SPI Flash memory...
Erase Completed
Write to SPI Flash memory.
======= Qspi Save Information =================
SpiFlashMemory Stat Address : H'00000000
SpiFlashMemory End Address : H'00032BFF
===========================================================
XLS2
" command and the following parameters in red.
> XLS2
===== Qspi writing of RZ/G3S 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'0
===== Please Input Qspi Save Address ===
Please Input : H'60000
please send ! ('.' & CR stop load)
fip-rzv2*.srec
file as a text from the terminal software.please send ! ('.' & CR stop load)
Erase SPI Flash memory...
Erase Completed
Write to SPI Flash memory.
======= Qspi Save Information =================
SpiFlashMemory Stat Address : H'00060000
SpiFlashMemory End Address : H'0011B44E
===========================================================
sudo mkdir /mnt/sd -p
sudo mount /dev/sdb2 /mnt/sd
sudo cp ${YOCTO_WORK}/build/tmp/deploy/images/rzv2n-evk/core-image-weston-rzv2n-evk.tar.bz2 /mnt/sd/home/root/
sync
sudo umount /mnt/sd
/dev/sdb
to your microSD card device name.fdisk
" command as shown below.
root@rzv2n-evk:~# fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.35.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x7795745a.
Command (m for help): o
Created a new DOS disklabel with disk identifier 0x5ff48dd9.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):[Enter]
Using default response p.
Partition number (1-4, default 1):[Enter]
First sector (2048-124321791, default 2048):[Enter]
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-124321791, default 124321791): +500M
Created a new partition 1 of type 'Linux' and of size 500 MiB.
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p):[Enter]
Using default response p.
Partition number (2-4, default 2):[Enter]
First sector (1026048-124321791, default 1026048):[Enter]
Last sector, +/-sectors or +/-size{K,M,G,T,P} (1026048-124321791, default 124321791):[Enter]
Created a new partition 2 of type 'Linux' and of size 58.8 GiB.
Command (m for help): p
Disk /dev/mmcblk0: 59.29 GiB, 63652757504 bytes, 124321792 sectors
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: 0x5ff48dd9
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 1026047 1024000 500M 83 Linux
/dev/mmcblk0p2 1026048 124321791 123295744 58.8G 83 Linux
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read parti[ 189.289424] mmcblk0: p1 p2
tion table.
Syncing disks.
mkfs.ext4
" command as shown below.
root@rzv2n-evk:~# mkfs.ext4 /dev/mmcblk0p1
mke2fs 1.45.7 (28-Jan-2021)
Discarding device blocks: done
Creating filesystem with 512000 1k blocks and 128016 inodes
Filesystem UUID: 96fc4476-dd9f-49cc-8adf-78fefcd758ac
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
root@rzv2n-evk:~# mkfs.ext4 /dev/mmcblk0p2
mke2fs 1.45.7 (28-Jan-2021)
Discarding device blocks: done
Creating filesystem with 15411968 4k blocks and 3858432 inodes
Filesystem UUID: 913c536d-da51-47a8-8baa-393f68ddc6aa
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
Allocating group tables: done
Writing inode tables: done
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done
root@rzv2n-evk:~# mount /dev/mmcblk0p2 /mnt/
[ 357.263306] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
root@rzv2n-evk:~# tar xf /home/root/core-image-weston-rzv2n-evk.tar.bz2 -C /mnt/
root@rzv2n-evk:~# sync
root@rzv2n-evk:~# umount /dev/mmcblk0p2
env default -a
saveenv
boot
rzv2n-evk login:
root