User Tools

Site Tools


sd_card

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sd_card [2021/02/04 18:20]
hutch
sd_card [2024/01/05 18:01] (current)
scott
Line 1: Line 1:
-===== Booting the ECEN 330 Board from an SD Card =====+===== Booting the ZYBO 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_rm_b_v6.pdf|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. 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_rm_b_v6.pdf|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. +  - **Follow these steps to create a BOOT.bin file that you can copy to an SD-card.** 
-    - delete your ''​build'' ​directory. +    - ''​cd'' ​to your ''​build''​ directory 
-    - create a new ''​build''​ directory. +    - If you haven't configured CMake previously, ​execute this command: ''​cmake ..''​ 
-    - ''​cd''​ to your ''​build''​ directory and execute this command: ''​cmake .. -D SDCARD=1''​ +    - Type ''​make BOOT.bin''​.
-    - type ''​make BOOT.bin ​ELF_FILE=./​lasertag/​lasertag.elf''​.+
     - A ''​BOOT.bin''​ will be created within the ''​build''​ directory.     - 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.+    - Copy this ''​BOOT.bin''​ to your SD-card using an SD-card reader ​(see below). 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.   - **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.+  - **Check out a USB SD Card Reader.** ​Go to the shop to check one out. 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.   - **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.
  
sd_card.1612488048.txt.gz · Last modified: 2021/02/04 18:20 by hutch