Create a BOOT.bin, Program an SD Card, and Boot a ZC706 Using Windows
Learn more about creating a BOOT.bin program with an SD Card using Windows.
Join the DZone community and get the full member experience.Join For Free
This post shows you how to create a BOOT.bin with a Hello World bare-metal application and a bitstream created in [Run Hello World on a ZC702], how to program the BOOT.bin onto the SD Card using Windows (copy it to the SD card), and how to boot the ZC702 from the SD card and see output from the serial port.
Before You Get Started
Generate Bitstreams, Hello World Binaries, and Test Everything
This post assumes you've generated the bitstreams, Hello World binaries, and have tested everything as listed in [Run Hello World on a ZC702], but on the ZC706. All of the instructions are the same except for two things:
1. You select the ZC706 board instead of the ZC702
2. You need to connect the UART-to-USB and JTAG-to-USB cables to:
Get a License
- 2018.2 Vivado and SDK
- Windows 7 SP1
- Rufus 3.5 @ [link]
Create Boot Image
The following picks up after the last step listed in [Run Hello World on a ZC702]
Step 1: Create the first stage boot loader (FSBL) that will load the bitstream and the helloworld.elf.
A. Click File
B. Click New
C. Click Application Project
D. Type fsbl
E. Ensure the rest of the fields match the picture and click Next >
F. Click Zynq FSBL
G. Click Finish
Step 2: Create the BOOT.bin
A. Select fsbl
B. Click Xilinx
C. Click Create Boot Image
D. Ensure that the picture below matches (your paths may be different) and click Add
E. Browse to helloworld.elf in C:\zc706vivado\helloworld\helloworld.sdk\helloworld\Debug or similar and select it
F. Click Open
G. Ensure that this image matches yours (again paths may be a little different) and click OK
H. Click Create Image
I. You should see Build Finished (took ...ms)
J. ...and Bootgen command execution is done.
Prepare the SD Card and Copy the BOOT.bin
Step 1: Insert into an SD card reader/writer on your PC the SD card that came with the ZC706 (see [link]) or find an 8 GB SanDisk class 4 card:
Step 2: Format the SD card
A. Right-click the SD card
B. Select Format...
C. Click Start
D. Click OK
E. Click OK again
F. Click Close
Step 3: Copy the BOOT.bin to the SD card
A. Browse to the BOOT.bin
B. Right-click on BOOT.bin
C. Select Copy
D. Click the SD card
E. Right-click in the empty area of the SD explorer
F. Click Paste
G. You should see:
Step 4: Eject the SD card
A. Right-click on the SD card
B. Click Eject
Step 5: Make sure the ZC706 is off and plug the SD card into the ZC706
Step 6: Set the board to SD boot mode
Step 7: Ensure the UART connection is connected to the computer
A. Connect the Mini-B port of Mini-B to Type-A USB cable to the port marked "UART"
B. Connect the Type-A port of Mini-B to Type-A USB cable to the port marked "UART"
Step 8: Set up the terminal on the SDK
Step 9: Power on the ZC706
A. Move the switch from:
You should see Hello World on the console:
...and the DONE LED green, which indicates that the FPGA was successfully programmed by the FSBL!
Published at DZone with permission of Zach Pfeffer, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.