How To Build Linux BSP Plus for RZ/T,N¶
Introduction¶
This page explains how to build Linux BSP Plus source code.
Requirement
To build Linux BSP Plus (Yocto Linux), the equipment below should be prepared.
Equipment
Details
Linux PC
Approximately 100GB free space is necessary.
OS
Ubuntu 22.04 LTS
64bit OS must be used.
Requirement
To build Linux BSP Plus (Yocto Linux), the equipment below should be prepared.
Equipment
Details
Linux PC
Approximately 100GB free space is necessary.
OS
Ubuntu 22.04 LTS
64bit OS must be used.
Requirement
To build Linux BSP Plus (Yocto Linux), the equipment below should be prepared.
Equipment
Details
Linux PC
Approximately 100GB free space is necessary.
OS
Ubuntu 22.04 LTS
64bit OS must be used.
Note
A pre-built Linux image generated using the same procedure is provided.
If you wish to use it, please download it from the link below.
Both Realtime Linux Kernel and Non-Realtime Linux Kernel images are available.
The pre-built Linux images may occasionally fail to boot due to an issue in the USB2 PHY driver.
A fix is already available in the source code. If this issue affects your evaluation, please rebuild the image with the fix applied by following the build procedure below.
Step 1: Build Renesas RZ Linux BSP Plus source code¶
This step explains how to build Linux environment with Renesas RZ Linux BSP Plus source code.
Note
In the following instructions, text in angle brackets should be replaced with a character string that depends on your environment.
The brackets < and > are unnecessary in the text.
Install the required packages
Install some packages into your Linux PC, which are necessary in the following steps.
Set up your
gitenvironmentSet up your
gitenvironment if you have never done it.git config --global user.email "<Your email address>" git config --global user.name "<Your user name>"Note
For more information, refer to Yocto Project Quick Build.
Set environment variables
Set the following environment variables.
Clone Yocto recipe package
Create a working directory, and clone Yocto recipe package.
git clone https://git.yoctoproject.org/git/poky cd poky git checkout -b tmp 7e8674996b0164b07e56bc066d0fba790e627061 git cherry-pick 80593d0ce1 e6cbef9080 e380eea705 bf7d623729 3bcac51eb2 fb693aab03 cd ${WORK}git clone https://git.yoctoproject.org/meta-arm cd meta-arm git checkout -b tmp 8e0f8af90fefb03f08cd2228cde7a89902a6b37c cd ${WORK}Initialize build environment
Run an environment setup script as follows.
Enable the command for writing a boot image to eMMC
If you need to create the filesystem for the block devices on the evaluation board, please add
bmaptoolcommand sets to root filesystem by local.conf.Caution
If eMMC boot is required, this step is mandatory.
Enable Real-time Linux kernel (optional)
If you need to build a Real-time Linux kernel, please configure the build to use the RT kernel recipe.
Build images
Run
bitbakecommand to build images.Note
After building images, you can find them in the following directories.
- Images:
${WORK}/build/tmp/deploy/images/${BOARD}/
Device
Category
File name
RZ/T2H
Linux kernel
Image-rzt2h-dev.binDevice tree file
r9a09g077m44-dev.dtbRoot filesystem
core-image-minimal-rzt2h-dev.rootfs.tar.bz2Boot loader
bl2_bp_esd-rzt2h-dev.binbl2_bp_emmc-rzt2h-dev.srecbl2_bp_xspi0-rzt2h-dev.srecfip-rzt2h-dev.srec
Flash Programmer
HDR NMFlash_Programmer_SCIF_CR52_RZT2H_EVK.mot
SD image (wic)
core-image-minimal-rzt2h-dev.rootfs.wic.gzcore-image-minimal-rzt2h-dev.rootfs.wic.bmap
Note
After building images, you can find them in the following directories.
- Images:
${WORK}/build/tmp/deploy/images/${BOARD}/
Device
Category
File name
RZ/N2H
Linux kernel
Image-rzn2h-dev.binDevice tree file
r9a09g087m44-dev.dtbRoot filesystem
core-image-minimal-rzn2h-dev.rootfs.tar.bz2Boot loader
bl2_bp_esd-rzn2h-dev.binbl2_bp_emmc-rzn2h-dev.srecbl2_bp_xspi0-rzn2h-dev.srecfip-rzn2h-dev.srec
Flash Programmer
HDR NMFlash_Programmer_SCIF_CR52_RZT2H_EVK.mot
SD image (wic)
core-image-minimal-rzn2h-dev.rootfs.wic.gzcore-image-minimal-rzn2h-dev.rootfs.wic.bmap
Note
After building images, you can find them in the following directories.
- Images:
${WORK}/build/tmp/deploy/images/${BOARD}/
Device
Category
File name
RZ/T2N
Linux kernel
Image-rzt2n-dev.binDevice tree file
r9a07g076-dev.dtbRoot filesystem
core-image-minimal-rzt2n-dev.rootfs.tar.bz2Boot loader
bl2_bp_esd-rzt2n-dev.binbl2_bp_emmc-rzt2n-dev.srecbl2_bp_xspi0-rzt2n-dev.srecfip-rzt2n-dev.srec
Flash Programmer
HDR NMFlash_Programmer_SCIF_CR52_RZT2N_EVK.mot
SD image (wic)
core-image-minimal-rzt2n-dev.rootfs.wic.gzcore-image-minimal-rzt2n-dev.rootfs.wic.bmap
Note
If you need to create an SDK toolchain, run
bitbakecommand as follows.After building SDK toolchain, you can find them in the following directory.
Note
Refer to the RZ/T2N Group DDR Design Contents available on the Renesas website. Follow the accompanying guide to generate an ECC-enabled DDR memory initialization parameter file, and integrate the generated file into the build environment.
Note
If you need the Flash Programmer source code, please download and use it from the link below.
RZ MPU Flash Programmer Source Code- Images:
Step 2: Additional Feature Packages (optional)¶
There are some additional feature packages for RZ Linux BSP Plus as follows.
Please obtain the necessary files from the following links according to the features you wish to add. For instructions on how to integrate the packages, refer to the documentation included in the downloaded files or, in the case of Git, the README.
Security package
This package is to add Security functions such as Secure Boot, Trusted Execution Environment, Hardware Cryptographic IP, Secure Debug and Security Configurator to RZ MPU. Provided functions are different for each device. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
Note
Renesas' approval is required to obtain the security package. Please apply using the form at the link.
Multi-OS package
This package is the software package consisting of RZ/T and RZ/N Flexible Software Package (FSP) as software package for Renesas MCU with Arm Cortex-R Core or and Cortex-A Core, and OpenAMP as standardization API of framework for interprocessor communication for developing multi OS solution.
Time-sensitive Network Package
This package includes examples for using Time-sensitive Network which is a set of networking technologies designed to enable real-time communication over Ethernet. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
XDP Package
This package includes examples for using XDP which is a packet processing framework within the Linux kernel. XDP enables efficient and low-latency packet processing. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
Industrial Network Package
This package provides examples for industrial communication protocols and related software frameworks, including EtherCAT, OPC UA, Modbus TCP, EtherNet/IP, and PROFINET. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
Openplc Package
This package provides instructions for installing OpenPLC and the OpenPLC Runtime on a Windows PC and the evaluation board. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
CODESYS Package
This package provides instructions for installing CODESYS and the CODESYS Runtime on a Windows PC and the evaluation board. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
Security package
This package is to add Security functions such as Secure Boot, Trusted Execution Environment, Hardware Cryptographic IP, Secure Debug and Security Configurator to RZ MPU. Provided functions are different for each device. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
Note
Renesas' approval is required to obtain the security package. Please apply using the form at the link.
Multi-OS package
This package is the software package consisting of RZ/T and RZ/N Flexible Software Package (FSP) as software package for Renesas MCU with Arm Cortex-R Core or and Cortex-A Core, and OpenAMP as standardization API of framework for interprocessor communication for developing multi OS solution.
Time-sensitive Network Package
This package includes examples for using Time-sensitive Network which is a set of networking technologies designed to enable real-time communication over Ethernet. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
XDP Package
This package includes examples for using XDP which is a packet processing framework within the Linux kernel. XDP enables efficient and low-latency packet processing. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
Industrial Network Package
This package provides examples for industrial communication protocols and related software frameworks, including EtherCAT, OPC UA, Modbus TCP, EtherNet/IP, and PROFINET. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
Openplc Package
This package provides instructions for installing OpenPLC and the OpenPLC Runtime on a Windows PC and the evaluation board. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
CODESYS Package
This package provides instructions for installing CODESYS and the CODESYS Runtime on a Windows PC and the evaluation board. For more datails, please refer to the documentation included in the package. This package is also compatible with Verified Linux Package v5.0.0. When using Linux BSP Plus, replace the package name in the document accordingly.
Security package
This package is to add Security functions such as Secure Boot, Trusted Execution Environment, Hardware Cryptographic IP, Secure Debug and Security Configurator to RZ MPU. Provided functions are different for each device. For more datails, please refer to the documentation included in the package.
Note
Renesas' approval is required to obtain the security package. Please apply using the form at the link.
Multi-OS package
This package is the software package consisting of RZ/T and RZ/N Flexible Software Package (FSP) as software package for Renesas MCU with Arm Cortex-R Core or and Cortex-A Core, and OpenAMP as standardization API of framework for interprocessor communication for developing multi OS solution.
Time-sensitive Network Package
This package includes examples for using Time-sensitive Network which is a set of networking technologies designed to enable real-time communication over Ethernet. For more datails, please refer to the documentation included in the package.
XDP Package
This package includes examples for using XDP which is a packet processing framework within the Linux kernel. XDP enables efficient and low-latency packet processing. For more datails, please refer to the documentation included in the package.
Industrial Network Package
This package provides examples for industrial communication protocols and related software frameworks, including EtherCAT, OPC UA, Modbus TCP, EtherNet/IP, and PROFINET. For more datails, please refer to the documentation included in the package.
OpenPLC Package
This package provides instructions for installing OpenPLC and the OpenPLC Runtime on a Windows PC and the evaluation board. For more datails, please refer to the documentation included in the package.
CODESYS Package
This package provides instructions for installing CODESYS and the CODESYS Runtime on a Windows PC and the evaluation board. For more datails, please refer to the documentation included in the package.