Skip to content

RZ V2L Avnet Boot

Chris Brandt edited this page Sep 14, 2023 · 2 revisions

Copy kernel over Eth and boot

PC - build with devtool (in docker)

cd /home/renesas/yocto/avnet_rzv2l/yocto_rzboard/build/tmp/work-shared/rzboard/kernel-build-artifacts

make drivers/gpu/drm/rcar-du/rzg2l_mipi_dsi.o
make -j12 Image

PC - copy to tftp dir

DIR=/home/renesas/yocto/avnet_rzv2l/yocto_rzboard/build/tmp/work/rzboard-poky-linux/linux-renesas/5.10.145+gitAUTOINC+fe9d9833ad-r1/build
cp -va $DIR/arch/arm64/boot/Image  /var/lib/tftpboot/avnet_rzboard/Image
cp -va $DIR/arch/arm64/boot/dts/renesas/rzboard.dtb  /var/lib/tftpboot/avnet_rzboard/rzboard.dtb
cp -va $DIR/arch/arm64/boot/dts/renesas/overlays  /var/lib/tftpboot/avnet_rzboard/

u-boot boot commands

setenv a1 'setenv ipaddr 10.10.10.60 ; setenv ethaddr 00:ee:ee:11:22:33 ; setenv serverip 10.10.10.30'
setenv a2 'setenv loadimage tftpboot 0x48080000 /avnet_rzboard/Image'
setenv a3 'setenv loadfdt '\'tftpboot 0x48000000 /avnet_rzboard/rzboard.dtb ';' tftpboot 0x48010000 /avnet_rzboard/overlays/rzboard-mipi.dtbo '&&' dcache flush ';' fdt addr 0x48000000 ';' fdt resize 0x10000 ';' fdt apply 0x48010000\'''
setenv a4 'setenv mmcbootargs '\'setenv bootargs rw rootwait earlycon root=/dev/mmcblk0p2 init=/bin/sh\'''
setenv a5 'boot'
saveenv

## then to run
=> run a1 a2 a3 a4 a5

Enter after kernel boot (because of init=/bin/sh )

mount -t proc proc /proc
mount -t sysfs sysfs /sys
Clone this wiki locally