Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip
titleimage size

Users can get the image size from the log after tftpboot

Loading bitstream from TFTP automatically in u-boot:

There is a few ways that this can be achieved. The easiest would be to create a u-boot script with the commands similar to above to load the PL from TFTP. 

Another way, would be to patch the uboot CONFIG_EXTRA_ENV_BOARD_SETTINGS in the u-boot-xlnx\include\configs\xilinx_zynqmp.h. For example, here I have updated the jtagboot:

Code Block
languagec#
titlejtagboot
	"jtagboot=" \
		"echo TFTP BOOOT ...;" \
		"setenv ipaddr 192.168.1.2 &&" \
		"setenv serverip 192.168.1.1 &&" \
		"setenv tftpblocksize 1024 &&" \
		"tftpboot 0x4000000 system.bit.bin\0" \

Users can use the OSL flow seen here to crate the u-boot binary for testing, and once the test is complete create a git patch against the u-boot branch used in the Petalinux/Yocto.

This patch can then be added to the Petalinux/Yocto u-boot-xlnx recipe.