By default, boot.scr loads image.ub from 0x01000000. It is possible to open boot.scr with a text editor to check the behavior. If your system has more than 16 MB QSPI Flash, this step can be skipped, but it is important to pay attention to the boot image packaging step to make sure that the image.ub offset address is set to match the offset address in boot.scr.
Use a text editor to open <PetaLinux Project>/project-spec/meta-user/recipes-bsp/u-boot/u-boot-zynq-scr.bbappend.
Change QSPI_KERNEL_OFFSET_zynq to 0x520000 and QSPI_FIT_IMAGE_SIZE_zynq to 0xAE0000, because these two variables are used in /project-spec/meta-user/recipes-bsp/u-boot/u-boot-zynq-scr/boot.cmd.default.initrd as sf read @@QSPI_FIT_IMAGE_LOAD_ADDRESS@@ @@QSPI_KERNEL_OFFSET@@ @@QSPI_FIT_IMAGE_SIZE@@;:
QSPI_KERNEL_OFFSET_zynq = "0x520000" QSPI_FIT_IMAGE_SIZE_zynq = "0xAE0000"
Save the file and quit the text editor.