Making a Linux Bootable Image for QSPI Flash with the Vitis IDE - 2023.2 English

Zynq-7000 SoC Embedded Design Tutorial (UG1165)

Document ID
UG1165
Release Date
2024-05-02
Version
2023.2 English

This method is an alternative to the PetaLinux method. If the PetaLinux tools and Vitis software platform are not installed on the same machine, copy the PetaLinux generated boot component files to the Vitis environment first.

  1. In the Vitis Unified IDE, go to VitisCreate Boot ImageZynq to open the Create Boot Image wizard.

    ../_images/image86.png

    Note

    You might see a different initial screen for the Create Boot Image wizard. When a system project is selected, the Vitis IDE tries to generate an initial BIF for that project. When a platform project is selected, or if it is in an empty workspace, the Vitis IDE will show the wizard with no initial values.

  2. Choose Create New BIF File.

  3. Specify the output BIF file path:

    • Click Browse next to the Output BIF file path field.

    • Navigate to any path. For example, C:/edt/boot/output.bif.

    • Click Save.

    • The Output path field will be updated automatically. The output BOOT.bin will be in the same directory with the BIF by default. You can also change the output path.

  1. Click the + icon (Add Partition) to add the following boot image partitions:

    File Path

    Partition Type

    Load

    fsbl.elf

    bootloader

    system.bit

    datafile

    u-boot.elf

    datafile

    image.ub

    datafile

    0x520000

    boot.scr

    datafile

    0xfc0000

  2. Click Create Image to create the BOOT.bin file in the specified output path folder.

  3. Review the generated BIF. It should look like this example.

    //arch = zynq; split = false; format = BIN
    the_ROM_image:
    {
        [bootloader]C:\edt\edt_zc702_linux\qspi\fsbl.elf
        C:\edt\edt_zc702_linux\qspi\system.bit
        C:\edt\edt_zc702_linux\qspi\u-boot.elf
        [load = 0x10000000]C:\edt\edt_zc702_linux\qspi\image.ub
        [load = 0xFC0000]C:\edt\edt_zc702_linux\qspi\boot.scr
    }