This section demonstrates the boot sequence for the QSPI boot mode. For this, you need to connect a QSPI daughter card (part number: X_EBM-01, REV_A01) as shown in the following figure:
Figure 2: Daughter Card on VCK190
You need to flash the images to the daughter card using the following steps:
With the card powered off, install the QSPI daughter card.
Power on the board. Run modified version of Versal Tcl from the Loading PetaLinux Images on a Versal Board using JTAG section, to ensure that U-Boot is running and also to have Boot.BIN copied to DDR location.
At the U-Boot stage, when the message Hit any key to stop autoboot: appears, hit any key, then run the following commands to flash the images on the QSPI daughter card:
// check QSPI is available or not sf probe 0 0 0 // Erase QSPI Flash of size 256 MB sf erase 0x0 0x10000000 // Copy BOOT.BIN file from DDR address,0x70000000 to QSPI Flash address,0x0 sf write 0x70000000 0x0 <BOOT.BIN_filesize_in_hex> // Copy Image file from DDR address,0x00200000 to QSPI Flash address,0xF00000 sf write 0x00200000 0xF00000 <Image_filesize_in_hex> // Copy rootfs.cpio.gz.u-boot file from DDR address,0x04000000 to QSPI Flash address,0x2E00000 sf write 0x04000000 0x2E00000 <rootfs.cpio.gz.u-boot_filesize_in_hex> // Copy boot.scr file from DDR address,0x20000000 to QSPI Flash address,0x7F80000 sf write 0x20000000 0x7F80000 <boot.scr_filesize_in_hex>
After flashing the images, turn off the power switch on the board, and change the SW1 boot mode pin settings to QSPI boot mode (ON-OFF-ON-ON, M[0:3] = 0100) as shown in the following figure:
Power cycle the board. The board now boots up using the images in the QSPI flash.