This shows you the differences between two versions of the page.
sd_card [2023/01/02 18:08] scott updates |
sd_card [2024/01/05 18:01] (current) scott |
||
---|---|---|---|
Line 4: | Line 4: | ||
- **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'' to build a new lasertag.elf file. | + | |
- | - type ''make BOOT.bin ELF_PATH=./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 (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. | - 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. | ||
- | - Note: if you want to go back to downloading to the board over the USB cable, you must delete the ''build'' directory, make a new ''build'' directory and execute ''cmake ..'' from within the ''build'' directory (as you did before). | ||
- **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.** 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. | - **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. |