Entry: Zynq design from scratch. Part 53. Saturday, September 27, 2014

Booting from SD card and SPI flash

We will follow the instructions in part 40.

Create the first stage bootloader

The first step is to create the FSBL application. This is a C program that embeds all the Zynq internal register settings that were established during the Vivado Block Design. We start Xlinx SDK and make sure we have exported the lab2 design from Vivado and that we have setup the Board Support Package (BSP).

->xsdk &

The SDK program will open with the setup we used in our lab2 experiment. Before creating the FSBL file we have to add a library file used by the FSBL c-program. Select from the top menu:

Xilinx Tools-> Board Support Package Settings

Click OK to open the Board Support Package Settings. We will add the libraries xilffs and xilrsa.

We are now ready to generate the FSBL program.

1. Select New->Application Project

2. Click next and select Zynq FSBL. Click Finish.

3. When the generation has finished there is a new entry in the Project Explorer namned fsbl_0.

4. Right-click the fsbl_0 entry and select: Build Configurations->Set Active->Release. The release configuration will have less overhead.

5. Build the release configuration by right-clicking and select Build Project.

6. Here is the result:


Generate the boot image

The next step is to create a non-volatile boot image for ZedBoard. The ZedBoard has two non-volatile bootable sources, QSPI flash and SD Card.

1. In the Project Explorer select LED_Dimmer

2. From the top menu select: Xilinx Tools->Create Zynq Boot Image

3. Add the files shown in the Boot images partitions window in that order.

4. Click Create Image. The BOOT.bin file is stored in the bootimage directory.

5. Copy the BOOT.bin file to an SD card. Insert the card in the ZedBoard card holder and set the strapping to boot from SD card (see part 40 for more information).

6. Connect a terminal

7. Power on the board.

8. The same BOOT.bin file can also be used for programming the SPI flash memory.

Top   Previous   Next


Leave a Comment:


Homepage (optional)