Setup¶
- Clone Renesas BSP layer:
$ git clone https://github.com/renesas-rz/rz-community-bsp.git -b scarthgap $ cd rz-community-bsp - Clone the Torizon layers into the
rz-community-bspfolder$ git clone https://github.com/torizon/meta-torizon.git -b master $ git clone https://github.com/torizon/meta-torizon-bsp.git -b master - Clone Torizon dependencies into
rz-community-bsp$ git clone https://github.com/uptane/meta-updater.git -b scarthgap $ git clone https://git.yoctoproject.org/meta-virtualization -b scarthgap - Create a symlink to our
setup-environment:$ ln -s meta-torizon-bsp/scripts/setup-environment setup-environment
Build¶
- Build with the following commands, inside
rz-community-bsp$ ./kas-container shell --update --force-checkout kas/yocto/scarthgap.yml:kas/opt/debug.yml:kas/image/renesas-image-demo.yml:kas/machine/smarc-rzg2l.yml:kas/kernel/cip-6.1.yml $ cd /repo $ MACHINE=smarc-rzv2l . setup-environment $ bitbake torizon-docker
All artifacts should be inside build/deploy/images/smarc-rzv2l
Flash the Device¶
- With
SW11set toOFF ON OFF ON, run (assuming ttyUSB0)cat Flash_Writer_SCIF_RZV2L_SMARC_PMIC_DDR4_2GB_1PCS.mot > /dev/ttyUSB0 - Now following https://www.renesas.com/en/document/gde/smarc-evk-rzv2l-linux-start-gude-rev102?r=1569131, flash the bootloader
then
> xls2 ... ===== Please Input Program Top Address ============ Please Input : H'11E00 ===== Please Input Qspi Save Address === Please Input : H'00000And again$ cat bl2_bp-smarc-rzv2l.srec > /dev/ttyUSB0then> xls2 ... ===== Please Input Program Top Address ============ Please Input : H'00000 ===== Please Input Qspi Save Address === Please Input : H'1D200$ cat fip-smarc-rzv2l.srec > /dev/ttyUSB0 - And finally copy the rootfs to the SD card
Have the SD card in a single partition and run (assuming SD card is
sdc)$ sudo dd if=torizon-docker-smarc-rzv2l-7.0.0-devel-20250127163415+build.0.ota-ext4 of=/dev/sdc1 oflag=direct bs=4M status=progress conv=fsync
Boot¶
With both steps above finished, just move sw11 to OFF OFF OFF ON, insert the SD card into CN10 and power on the device.
Press Enter on keyboard so you land on u-boot shell, and then run
=> env default -a
=> saveenv
=> run bootcmd
[!NOTE]
These steps in the bootloader should only be performed on the first boot of the device with Common Torizon OS. Subsequent boots or flashes should not require it.