RZ/G2 Series: RZ/G2L, RZ/G2LC, RZ/G2UL, RZ/G2E, RZ/G2N, RZ/G2M, RZ/G2H
RZ/V2 Series: RZ/V2L, RZ/V2M, RZ/V2MA
. | Links | |
---|---|---|
📦 RZ/G2 Linux Package (Common for all MPU ▲ ▲ ▲ ) ZIP file containing Yocto BSP and all documentation
| RZ/G2, RZ/G3 (all)
| |
🎨 Graphics (PowerVR) and 🎦 Video Codec Libraries
| RZ/G2H, RZ/G2M, RZ/G2N, RZ/G2E | |
🎨 Graphics (Mali) Libraries
| RZ/G2L, RZ/G2LC, RZ/G2UL
| |
🎦 Video Codec Libraries
| RZ/G2L 💾 Download Page RZ/V2L 💾 Download Page | |
🌐 HTML5 Browser (Gecko/Firefox)
| 💾 Download Page | |
📄 BSP Manual Set Detailed information about Device Drivers and Device Tree Settings | 📄 RZ/G2H, RZ/G2M, RZ/G2N, and RZ/G2E (link) |
Files were removed from the Debian server which causes a build error when building the BSP v3.0.6.
This effects BSP v3.0.6, v3.0.6-update1, v3.0.6-update2
This issue has been fixed for v3.0.6-update3.
Below are instructions to download and apply patches to fix those issues for update1 or update 2.
cd meta-renesas
# Change deb10u2 to dev10u3
wget https://github.com/renesas-rz/meta-renesas/commit/a56169f6642d.patch
patch -p1 -i a56169f6642d.patch
# Change deb10u3 to dev10u4
wget https://github.com/renesas-rz/meta-renesas/commit/6c11ae542069.patch
patch -p1 -i 6c11ae542069.patch
The Multimedia Package for RZ/G2 on renesas.com is V1.0.2
When building, the follow error will occur.
ERROR: gstreamer1.0-omx-1.16.3-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://anongit.freedesktop.org/gstreamer/common;destsuffix=git/common;name=common')
The reason is that the server name has change from anongit.freedesktop.org to gitlab.freedesktop.org
The easiest way to fix this issue is to run the command below from the base of your BSP directory.
sed -i 's/anongit/gitlab/' meta-rz-features/meta-rz-codecs/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.16.3.bbappend
Below are the differences between BSP you download from renesas.com and what is available on public repositories.
Public Repository Clones
Non-public Patches
This directory is only in the package downloaded from renesas.com
It contains patches that are not included in the public the meta-renesas or meta-rzg2 repository on github. For example, the patches to enable HDMI on the boards were not posted to github because of potential license issues.
Example Layers (Linux 4.19 BSP only)
These directories do not have any functionally. They are simple example templates you can use to make your own customer layers. They are only included in the renesas.com package.
Video and Multi-media Drivers (Linux 4.19 BSP only)
This directory is only in the package downloaded from renesas.com
This directory contains .zip files which are essentially the propriety closed source video and multimedia drivers. They used to be downloaded separately, but are now included when downloaded the BSP from renesas.com. When following the instructions in the "Renesas Note" that comes with the BSP, users will run the script copy_proprietary_softwares.sh which will unpack these zip files into various directories under meta-rzg2. This is only for the 4.19 BSP. For newer BSPs, the meta-rz-features directory is used.
The Issue:
The Workaround
$ git config --global url.https://github.com/.insteadOf git://github.com/
SPI flash write from Linux is not officially supported in V1.0.6 BSP. If you want SPI write enabled for BSP 1.0.6. Please follow the below steps:
1. Add kernel patches to BSP
1.a) Please get required patch files from https://github.com/seebe/rzg_stuff/tree/master/build_scripts/vlp64_patches/BSP-1.0.6-SPI-write/kernel
$ rzg2_bsp_eva_v106/recipes-kernel/linux/linux-renesas/patches $ mkdir v1.0.6_spi_patch $ cd v1.0.6_spi_patch #copy patch files here
1.b) Update patches.scc file:
Yocto uses .scc file to apply patches located in ~/rzg2_bsp_eva_v106/meta-rzg2/recipes-kernel/linux/linux-renesas/patches.scc. Get updated .scc file from https://github.com/seebe/rzg_stuff/tree/master/build_scripts/vlp64_patches/BSP-1.0.6-SPI-write/
$ cd ~/rzg2_bsp_eva_v106/meta-rzg2/recipes-kernel/linux/linux-renesas/ $ wget https://raw.githubusercontent.com/seebe/rzg_stuff/master/build_scripts/vlp64_patches/BSP-1.0.6-SPI-write/patches.scc
2. Configuring kernel using menuconfig
Configure the kernel to enable Renesas SPI driver and SPI memory. The following commands initialize the BitBake environment, run the do_kernel_configme task, and launch menuconfig. These commands assume the Source Directory's top-level folder is ~/rzg2_bsp_eva_v106:
$ cd rzg2_bsp_eva_v106 $ source poky/oe-init-build-env $ bitbake linux-renesas -c kernel_configme -f $ bitbake linux-renesas -c menuconfig
Once menuconfig comes up, configure below kernel configuration parameters.
2.a)Enable Renesa RPC-IF driver:
.config - Linux/arm64 4.19.140 Kernel Configuration > Device Drivers > Memory Controller drivers
2.b)Enable SPI memory (M25P80 ):
.config - Linux/arm64 4.19.140 Kernel Configuration > Device Drivers > Memory Technology Device (MTD) support > Self-contained MTD device drivers
After making your changes, simply exit the tool and save your changes to create an updated version of the .config configuration file
3. Build the image using updated BSP