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.20 AI SDK Source Code v6.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.20 AI SDK Source Code v6.00 |
D4 | How to boot from eMMC | RZ/V2N | AI SDK Source Code v6.00 |
D5 | How to modify the memory map |
RZ/V2H RZ/V2N |
AI SDK Source Code v5.20 AI SDK Source Code v6.00 |
D6 | How to change the DDR size |
RZ/V2H RZ/V2N |
AI SDK Source Code v5.20 AI SDK Source Code v6.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.Device | SD card image size (Gbytes) |
Setting values in the "local.conf" file (Kbytes) |
---|---|---|
RZ/V2H | 4 | 1048576 |
8 | 4194304 | |
16 | 8388608 (default) | |
RZ/V2N | 8 | 1048576 |
16 | 6291456 (default) | |
32 | 16777216 |
*.exe
file extracted to install the serial port driver.
Path | File name | Description |
---|---|---|
${WORK}/board_setup/QSPI/bootloader |
Flash_Writer_SCIF_RZV2L_SMARC_PMIC_DDR4_2GB_1PCS.mot bl2_bp-smarc-rzv2l_pmic.srec fip-smarc-rzv2l_pmic.srec |
Directory path and files when using files included with RZ/V2L AI SDK |
${YOCTO_WORK}/build/tmp/deploy/images/smarc-rzv2l | Directory path and files when using files generated with How to build RZ/V2L AI SDK Source Code |
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
${WORK}/board_setup/xSPI
directory.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 | Description |
---|---|---|---|
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 |
Directory path and files when using files generated with How to build RZ/V AI SDK Source Code |
${WORK}/board_setup/xSPI/bootloader | Directory path and files when using files included with RZ/V AI SDK | ||
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 |
Directory path and files when using files generated with How to build RZ/V AI SDK Source Code |
${WORK}/board_setup/xSPI/bootloader | Directory path and files when using files included with RZ/V AI SDK |
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] = 0x02
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] = 0x09
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'0001E81F
===========================================================
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'0011AD3E
===========================================================
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.rootfs.tar.bz2 /mnt/sd/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.39.3).
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: 0x1363dee0
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 partition table.[ 189.289424] mmcblk0: p1 p2
Syncing disks.
mkfs.ext4
" command as shown below.
root@rzv2n-evk:~# mkfs.ext4 /dev/mmcblk0p1
mke2fs 1.47.0 (5-Feb-2023)
Discarding device blocks: done
Creating filesystem with 512000 1k blocks and 128016 inodes
Filesystem UUID: b27e380a-d095-4482-ad91-b1ffe4493c59
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.47.0 (5-Feb-2023)
Discarding device blocks: done
Creating filesystem with 15411968 4k blocks and 3858432 inodes
Filesystem UUID: c790440c-9550-4f09-9d7e-4ab3b05077e5
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 /root/core-image-weston-rzv2n-evk.rootfs.tar.bz2 -C /mnt/
root@rzv2n-evk:~# sync
root@rzv2n-evk:~# umount /dev/mmcblk0p2
env default -a
saveenv
boot
rzv2n-evk login:
root
Device | Path | Device tree file |
---|---|---|
RZ/V2H | ${YOCTO_WORK}/build/tmp/work-shared/rzv2h-evk-ver1/kernel-source/arch/arm64/boot/dts/renesas | r9a09g057h4-evk-ver1.dts |
RZ/V2N | ${YOCTO_WORK}/build/tmp/work-shared/rzv2n-evk/kernel-source/arch/arm64/boot/dts/renesas | r9a09g056n44-evk.dts |
Device | DDR Configuration |
---|---|
RZ/V2H |
ch0: 0x40000000-0x23FFFFFFF ch1: 0x240000000-0x43FFFFFFF |
RZ/V2N | ch0: 0x40000000-0x23FFFFFFF |
Memory region name on memory map | Memory region name on device tree | Description |
---|---|---|
Linux CMA | global_cma |
We recommend that you do not change it. If you make it smaller, be sure to test it thoroughly. If you change this memory region, you will also need to change the u-boot device tree. |
CMA for Codec | mmp_reserved |
It depends on the resolution and number of channels used by the Codec. On the condition that mmp_reserved is not used for anything other than Codec Library and that responsibility is taken by the party making the changes, mmp_reserved can be reduced to 256MB. |
CMA for ISP(1) | isp_reserved |
It depends on the resolution and number of channels used by the ISP. isp_reserved assumes 4K, 30fps, and 2 channels. Reducing isp_reserved will allow for proportional reduction. For example, if you only use 4K, 30fps, and 1 channel, you can reduce half. |
CMA for ISP(2) | cru_func | Cannot be changed when using ISP. |
OpenCVA | opencva_reserved | Cannot be changed when using OpenCVA. |
DRP-AI/DRP | shared_drp_reserved | Cannot be changed when using OpenCVA, Codec and DRP-AI. |
DRP for Codec | drp_codec | drp_codec cannot be changed when using Codec. |
udmabuf | image_buf0 | image_buf0 is for backwards compatibility, you can remove it. |
DRP-AI | drp_reserved | A quantity that can be loaded into the AI model is required. |
drp_reserved: DRP-AI@D0000000 {
reusable;
reg = <0x0 0xD0000000 0x0 0x10000000>;
};
File | Path | Description |
---|---|---|
d005-device-tree-for-RZV2H-AI_SDK-v5.20.patch |
${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-kernel/linux/linux-renesas/
|
Patch file for modifying device tree |
d005-linux-renesas_5.10.bbappend |
${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-kernel/linux/
|
bbappend file for modifying device tree |
cd ${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-kernel/linux/linux-renesas/
sudo cp <Path to the file>/d005-device-tree-for-RZV2H-AI_SDK-v5.20.patch ./
cd ${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-kernel/linux/
sudo mv linux-renesas_5.10.bbappend linux-renesas_5.10.bbappend_backup
sudo cp <Path to the file>/d005-linux-renesas_5.10.bbappend ./linux-renesas_5.10.bbappend
cd ${YOCTO_WORK}/build
MACHINE=rzv2h-evk-ver1 bitbake core-image-weston -c cleanall
MACHINE=rzv2h-evk-ver1 bitbake linux-renesas -c compile -f
MACHINE=rzv2h-evk-ver1 bitbake linux-renesas -c deploy
MACHINE=rzv2h-evk-ver1 bitbake core-image-weston
cd ${YOCTO_WORK}/build
MACHINE=rzv2n-evk bitbake core-image-weston -c cleanall
MACHINE=rzv2n-evk bitbake linux-renesas -c compile -f
MACHINE=rzv2n-evk bitbake linux-renesas -c deploy
MACHINE=rzv2n-evk bitbake core-image-weston
DDR parameter generation tool
included in the Application Note to the file listed in the table below.Device | Path | file | Application Note |
---|---|---|---|
RZ/V2H | ${YOCTO_WORK}/build/tmp/work/rzv2h_evk_ver1-poky-linux/trusted-firmware-a/ v2.7+git-r0/git/plat/renesas/rz/soc/v2h/drivers/ddr |
ddr_param_def_lpddr4.c | RZ/V2H DDRTOP Application Note |
RZ/V2N | ${YOCTO_WORK}/build/tmp/work/rzv2n_evk-poky-linux/trusted-firmware-a/ 2.10+git/git/plat/renesas/rz/soc/v2n/drivers/ddr |
ddr_param_def_lpddr4.c | RZ/V2N DDRTOP Application Note |
Device | Path | file |
---|---|---|
RZ/V2H | ${YOCTO_WORK}/build/tmp/work/rzv2h_evk_ver1-poky-linux/u-boot/1_v2021.10+gitAUTOINC+31d53b8f6f-r0/git/include/configs | rzv2h-dev.h |
${YOCTO_WORK}/build/tmp/work/rzv2h_evk_ver1-poky-linux/trusted-firmware-a/v2.7+git-r0/git/plat/renesas/rz/soc/v2h/include | rz_soc_def.h | |
RZ/V2N | ${YOCTO_WORK}/build/tmp/work/rzv2n_evk-poky-linux/u-boot/v2021.10+git/git/include/configs | rzv2n-evk.h |
${YOCTO_WORK}/build/tmp/work/rzv2n_evk-poky-linux/trusted-firmware-a/2.10+git/git/plat/renesas/rz/soc/v2n/include | rz_soc_def.h |
Device | Path | Device tree file |
---|---|---|
RZ/V2H | ${YOCTO_WORK}/build/tmp/work-shared/rzv2h-evk-ver1/kernel-source/arch/arm64/boot/dts/renesas | r9a09g057h4-evk-ver1.dts |
${YOCTO_WORK}/build/tmp/work/rzv2h_evk_ver1-poky-linux/u-boot/1_v2021.10+gitAUTOINC+31d53b8f6f-r0/git/arch/arm/dts | rzv2h-evk-ver1.dts | |
RZ/V2N | ${YOCTO_WORK}/build/tmp/work-shared/rzv2n-evk/kernel-source/arch/arm64/boot/dts/renesas | r9a09g056n44-evk.dts |
${YOCTO_WORK}/build/tmp/work/rzv2n_evk-poky-linux/u-boot/v2021.10+git/git/arch/arm/dts | rzv2n-evk.dts |
#define CONFIG_SYS_SDRAM_SIZE (0x100000000u - DRAM_RSV_SIZE) //total 4GB
rz_soc_def.h#define RZV2H_DDR0_SIZE ULL(0x100000000)
#define RZV2H_DDR1_SIZE ULL(0x100000000)
r9a09g057h4-evk-ver1.dts and rzv2h-evk-ver1.dtsmemory@48000000 {
device_type = "memory";
/* first 128MB is reserved for secure area. */
reg = <0x0 0x48000000 0x0 0xF8000000>;
};
memory@240000000 {
device_type = "memory";
reg = <0x2 0x40000000 0x1 0x00000000>;
};
File | Path | Description |
---|---|---|
d006-u-boot-for-RZV2H-AI_SDK-v5.20.patch |
${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-bsp/u-boot/files/
|
Patch file for modifying u-boot |
d006-u-boot_2021.10.bbappend |
${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-bsp/u-boot/
|
bbappend file for modifying u-boot |
d006-tfa-for-RZV2H-AI_SDK-v5.20.patch |
${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-bsp/trusted-firmware-a/files/
|
Patch file file for modifying TF-A |
d006-trusted-firmware-a.inc |
${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-bsp/trusted-firmware-a/
|
inc file for modifying TF-A |
d006-device-tree-for-RZV2H-AI_SDK-v5.20.patch |
${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-kernel/linux/linux-renesas/
|
Patch file for modifying device tree |
d006-linux-renesas_5.10.bbappend |
${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-kernel/linux/
|
bbappend file for modifying device tree |
# Copy patch file and bbappend file for u-boot
cd ${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-bsp/u-boot/
sudo mkdir ./files
sudo cp <Path to the file>/d006-u-boot-for-RZV2H-AI_SDK-v5.20.patch ./files/
sudo mv u-boot_2021.10.bbappend u-boot_2021.10.bbappend_backup
sudo cp <Path to the file>/d006-u-boot_2021.10.bbappend ./u-boot_2021.10.bbappend
# Copy patch file and inc file for TF-A
cd ${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-bsp/trusted-firmware-a/
sudo mkdir ./files
sudo cp <Path to the file>/d006-tfa-for-RZV2H-AI_SDK-v5.20.patch ./files/
sudo mv trusted-firmware-a.inc trusted-firmware-a.inc_backup
sudo cp <Path to the file>/d006-trusted-firmware-a.inc ./trusted-firmware-a.inc
# Copy patch file and bbappend file for device tree
cd ${YOCTO_WORK}/meta-renesas/meta-rzv2h/recipes-kernel/linux/
sudo cp <Path to the file>/d006-device-tree-for-RZV2H-AI_SDK-v5.20.patch ./linux-renesas/
sudo mv linux-renesas_5.10.bbappend linux-renesas_5.10.bbappend_backup
sudo cp <Path to the file>/d006-linux-renesas_5.10.bbappend ./linux-renesas_5.10.bbappend
SRC_URI_append += "\
file://0001-rollback-cru.patch \
file://d005-device-tree-for-RZV2H-AI_SDK-v5.20.patch \
file://d006-device-tree-for-RZV2H-AI_SDK-v5.20.patch \
"
cd ${YOCTO_WORK}/build
MACHINE=rzv2h-evk-ver1 bitbake core-image-weston -c cleanall
MACHINE=rzv2h-evk-ver1 bitbake trusted-firmware-a -c compile -f
MACHINE=rzv2h-evk-ver1 bitbake u-boot -c compile -f
MACHINE=rzv2h-evk-ver1 bitbake linux-renesas -c compile -f
MACHINE=rzv2h-evk-ver1 bitbake linux-renesas -c deploy
MACHINE=rzv2h-evk-ver1 bitbake core-image-weston
cd ${YOCTO_WORK}/build
MACHINE=rzv2n-evk bitbake core-image-weston -c cleanall
MACHINE=rzv2n-evk bitbake trusted-firmware-a -c compile -f
MACHINE=rzv2n-evk bitbake u-boot -c compile -f
MACHINE=rzv2n-evk bitbake linux-renesas -c compile -f
MACHINE=rzv2n-evk bitbake linux-renesas -c deploy
MACHINE=rzv2n-evk bitbake core-image-weston