-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from byu-cpe/2025w
Clock lab updates
- Loading branch information
Showing
19 changed files
with
229 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
layout: page | ||
toc: false | ||
title: PYNQ Imaging | ||
indent: 1 | ||
number: 2 | ||
--- | ||
|
||
## Host Computer | ||
> 📝 The lab computers dual-boot Windows and Linux. You will want to use Linux for this class. If the computer is booted into Windows, log out, then reboot (button is in bottom-right). You should see a menu after reboot that allows you to select Ubuntu Linux. If the menu doesn't show up, try pressing F9 repeatedly while the computer is booting. | ||
<span style="color:red">**It is recommended to use the lab computers in EB438 as these have the necessary software already set up.** </span> You can use your own computer, but you will need to install the necessary software yourself. | ||
|
||
### Linux or Windows Subsystem for Linux (WSL) | ||
If you choose to use your own computer, the easiest way to get the necessary software is to use Linux. | ||
|
||
If you are using Windows, it is recommended to use Linux via the Windows Subsystem for Linux (WSL). Follow [Microsoft's instructions](https://learn.microsoft.com/en-us/windows/wsl/install) to install it. You may want to use the new [Windows Terminal](https://apps.microsoft.com/detail/9N0DX20HK701?hl=en-US&gl=US) application as your default terminal. | ||
|
||
### Mac | ||
If you are using a Mac, you can use the built-in terminal to connect to the PYNQ board; however, the it will require more substantial setup to cross-compilation working (compiling on your computer and running on the board), and some labs that require Vivado will not work. | ||
|
||
|
||
|
||
|
||
## Obtaining the PYNQ Board | ||
|
||
The lab contains PYNQ-Z2 boards at each workstation. **You do not need to buy your own board.** | ||
|
||
If you want to purchase your own Pynq-Z2 board, you can do so online at several distributors: | ||
* Board only (you will need to obtain micro SD card, micro USB cable separately): <https://www.newark.com/tul-corporation/1m1-m000127dev/tul-pynq-z2/dp/13AJ3027?st=tul-corporation> | ||
* Kit: <https://www.newark.com/tul-corporation/1m1-m000127dvb/tul-pynq-z2-basic-kit-rohs-compliant/dp/69AC1754?st=tul-corporation> | ||
|
||
You may also be able to borrow a board from the Experiential Learning Center (ELC) in the Clyde Building. You will need to pay a deposit, but it will be refunded when you return the board. | ||
|
||
|
||
## Imaging the SD card | ||
The PYNQ runs Linux off of an external micro SD card that you must provide. It is best to use a high-performance (V30/U3) SD card that is at least 16GB. I recommend you purchase a SD card from the ELC, where they are available for about $10-15. | ||
Be wary of counterfeit SD cards, especially if you purchase them from online marketplaces that contain 3rd party sellers. | ||
|
||
The SD card must have a valid system image in order for Linux to run. We have provided a working system image [here](). Unzip it after you download it. The official PYNQ documentation has a guide to [writing the SD card image](https://pynq.readthedocs.io/en/latest/appendix/sdcard.html) that you should follow. Some notes: | ||
* In the lab you do not need to use *sudo* to run the *dd* command, so remove this from the command when you image the SD card. | ||
* You probably won't have space to unzip the .img file onto your home directory, so instead extract it to the `/tmp` folder on the computers. This is a local folder that is cleared when you log out, so you don't have to worry about filling up the hard drive. | ||
* If you are using your own Windows computer and run into issues using *Win32DiskImager*, another alternative is to use <http://etcher.io>. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,28 +9,6 @@ number: 7 | |
|
||
In the labs for this class, you will be completing some tasks on your computer, and some tasks on the PYNQ board. In this setup step, you will set up your Git repository and SSH keys on both your computer and the PYNQ board. | ||
|
||
## Extend your Partition | ||
|
||
You should extend the PYNQ filesystem to fill your entire SD card (by default the filesystem only provides a small amount of free space, and doesn't fill your SD card) | ||
|
||
Run these commands. Please copy and paste them one at a time, and be careful in the process. It's easy to mess up your entire SD card image: | ||
|
||
``` | ||
sudo growpart /dev/mmcblk0 2 | ||
sudo resize2fs /dev/mmcblk0p2 | ||
``` | ||
|
||
## Set PYNQ time | ||
|
||
Run the following to update the time on your PYNQ | ||
|
||
sudo apt install chrony | ||
sudo chronyc -a 'burst 4/4' | ||
sudo chronyc -a makestep | ||
sudo timedatectl set-timezone America/Boise | ||
|
||
|
||
This will fix the current time of the PYNQ, but if you have your PYNQ off for some extended period, and then turn it back on, you will may notice the time is wrong. | ||
|
||
## Computer Setup | ||
> 📝 Run this on your computer. | ||
|
@@ -51,7 +29,7 @@ This will fix the current time of the PYNQ, but if you have your PYNQ off for so | |
|
||
|
||
### Github Repository Creation | ||
1. Sign up for your Github classroom repo using this link: <https://classroom.github.com/a/h6lm94mB> This will create an empty private repository on Github for you to use throughout the entire semester. **You must create your repository using this link, or the TAs will not be able to grade your code.** | ||
1. Sign up for your Github classroom repo using this link: <> This will create an empty private repository on Github for you to use throughout the entire semester. **You must create your repository using this link, or the TAs will not be able to grade your code.** | ||
|
||
1. You should now see the message below. Click the link to navigate to your repository. | ||
<img src = "{% link media/setup/git_classroom1.png %}" width="800" > | ||
|
@@ -118,7 +96,3 @@ Since this is the first time using Git on the PYNQ system, you need to configure | |
git config --global user.name "Your Name" | ||
git config --global user.email [email protected] | ||
``` | ||
|
||
### Add Starter Code Remote | ||
|
||
Repeat the steps above to add the *startercode* remote. |
Oops, something went wrong.