Boot Sequence for QSPI Boot Mode - Boot Sequence for QSPI Boot Mode - 2025.2 English - UG1305

Versal Adaptive SoC Embedded Design Tutorial (UG1305)

Document ID
UG1305
Release Date
2025-12-09
Version
2025.2 English

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

../_images/vck190_production_board_QSPI_daughter_card.jpg

You need to flash the images to the daughter card using the following steps:

  1. With the card powered off, install the QSPI daughter card.

  2. 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.

  3. 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>
    
  4. 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:

    ../_images/image52.png
  5. Power cycle the board. The board now boots up using the images in the QSPI flash.