-
Notifications
You must be signed in to change notification settings - Fork 0
VLP G v3.0.6 update3 for RZ G2L
Chris Brandt edited this page Sep 11, 2024
·
1 revision
----------------------------------------------------------------- RZ/G2L VLP/G v3.0.6-update3 ----------------------------------------------------------------- # Must be running Ubuntu 20.04 cat /etc/lsb-release echo -en "\nUbuntu 20.04" ; if [ "$(grep 20.04 /etc/lsb-release)" != "" ] ; then echo -e " running.\nOK to build\n" ; else echo -e " NOT running.\nCannot build - ERROR\n" ; fi # Create a directry for the BSP # Note that patches and pacakges are different for products, so a BSP directory # for RZ/G2L will have different files than a BSP directory for RZ/G2H so # You should use a different directory. # Exmaple # rzg2_bsp_v3.0.6_rzg2l = RZ/G2L, RZ/G2LC, RZ/G2UL, RZ/G3S # rzg2_bsp_v3.0.6_rzg2h = RZ/G2H, RZ/G2M, RZ/G2N, RZ/G2E # rzg2_bsp_v3.0.6_rzg3s = RZ/G3S mkdir rzg2_bsp_v3.0.6_rzg2l cd rzg2_bsp_v3.0.6_rzg2l # Confirm you have these packages ls -l RTK0EF0045Z0021AZJ-v3.0.6-update3.zip ls -l RTK0EF0045Z13001ZJ-v1.2.2_EN.zip ls -l RTK0EF0045Z15001ZJ-v1.2.2_EN.zip # Unpack BSP unzip ./RTK0EF0045Z0021AZJ-v3.0.6-update3.zip tar zxvf ./RTK0EF0045Z0021AZJ-v3.0.6-update3/rzg_vlp_v3.0.6.tar.gz # Unpack update3 patches patch -p1 < ./RTK0EF0045Z0021AZJ-v3.0.6-update3/vlpg306-to-vlpg306update3.patch # Apply update3 patches cd meta-renesas # For update glibc to v2.28-10+deb10u4 (All product) patch -p1 < ../extra/0001-rz-common-recipes-debian-buster-glibc-update-to-v2.2.patch # For 48Khz rate audio sound (RZ/G2L/LC/UL, RZ/G3S) patch -p1 < ../extra/0001-rz-common-linux-update-linux-kernel-to-the-latest-re.patch # For updating the gstreamer recipe (All product) patch -p1 < ../extra/0001-rz-common-gst-plugins-bad-Depending-bayer2raw-if-lay.patch cd .. # For RZ/G2L and RZ/V2LC Graphics (Mali) unzip ./RTK0EF0045Z13001ZJ-v1.2.2_EN.zip tar zxvf ./RTK0EF0045Z13001ZJ-v1.2.2_EN/meta-rz-features_graphics_v1.2.2.tar.gz # For RZ/G2L video codec unzip ./RTK0EF0045Z15001ZJ-v1.2.2_EN.zip tar zxvf ./RTK0EF0045Z15001ZJ-v1.2.2_EN/meta-rz-features_codec_v1.2.2.tar.gz # Init build system (template for rzg2l) TEMPLATECONF=$PWD/meta-renesas/meta-rzg2l/docs/template/conf/ source poky/oe-init-build-env build # Add feature pacakges to build bitbake-layers add-layer ../meta-qt5 bitbake-layers add-layer ../meta-rz-features/meta-rz-graphics bitbake-layers add-layer ../meta-rz-features/meta-rz-codecs # Back to base of BSP cd .. # Build RZ/G2L MACHINE=smarc-rzg2l bitbake core-image-qt MACHINE=smarc-rzg2l bitbake core-image-qt -c populate_sdk # ERROR: Unable to connect to bitbake server, or start one (server startup failures would be in bitbake-cookerdaemon.log). rm -rf build/bitbake.lock # Build RZ/G2LC # Remove layer meta-rz-codecs cp build/conf/bblayers.conf build/conf/bblayers.orig sed -i '/meta-rz-codecs/d' build/conf/bblayers.conf MACHINE=smarc-rzg2lc bitbake core-image-qt MACHINE=smarc-rzg2lc bitbake core-image-qt -c populate_sdk # Build RZ/G2UL # Remove layer meta-rz-graphics sed -i '/meta-rz-graphics/d' build/conf/bblayers.conf MACHINE=smarc-rzg2ul bitbake core-image-qt MACHINE=smarc-rzg2ul bitbake core-image-qt -c populate_sdk