This is an old revision of the document!
Booting the ECEN 330 Board from an SD Card
The ZYBO board (the large circuit board that is mounted on the ECEN board) has a micro-SD card mounted on the backside, near the top, center-point of the board. The ZYBO reference manual has more on information on the micro SD card slot. You can boot the ZYBO board from an SD card if everything is prepared correctly. That way, your board can run without being tethered to a computer. This tutorial will explain what to do.
Follow these steps to create a BOOT.bin file that you can copy to an SD-card.
delete your build
directory.
create a new build
directory.
cd
to your build
directory and execute this command: cmake .. -D SDCARD=1
type make BOOT.bin ELF_FILE=./lasertag/lasertag.elf
.
A BOOT.bin will be created within the build
directory.
Copy this BOOT.bin to your SD-card using an SD-card reader. If you are using a VM, use the file-sharing feature and copy the BOOT.bin
file to a shared directory where you can access the BOOT.bin
file outside of the VM.
Obtain Proper Micro SD Cards. Go to the shop (416 CB) and purchase the necessary micro-SD cards. You will need two per group. Alternatively, you can use your own micro-SD card, just make sure that it meets the necessary specs as stated in the ZYBO reference manual.
Check out a USB SD Card Reader. Also, check out a USB SD-card reader from the shop. This card reader will plug into the PC so you can copy your BOOT.bin file to the micro SD-card. When you copy the file onto the SD-card, make sure that there is nothing else on the SD card. The BOOT.bin file should be the only thing on the SD card.
Configure the ZYBO Board. You need to configure the ZYBO board so that it will boot from the micro SD card. Page 10 of the ZYBO reference manual explains how to do this. Also, remember to switch the jumper back to JTAG mode if you want to download programs from the PC.
Use the configuration shown directly below to boot from the SD card.
Use the configuration shown directly below to download programs from the PC (default).
The socket for the SD card is mounted on the back side of the ZYBO board.