(PY)thon on Zy(NQ)
- All Pynq-Z1 images including the latest are available here:
file://xsj-pvstd2t01-w/xrlabs/grahams/public/pynq-z1_images/
- All Zybo images including the latest are available here:
file://xsj-pvstd2t01-w/xrlabs/grahams/public/zybo_images/
- After imaging, change Zybo's hostname to avoid network conflicts
sudo /home/xilinx/scripts/hostname.sh A_UNIQUE_HOSTNAME
This is a recommended way to update the pynq
package. The script will do the following:
- Back up the existing package on board.
- Git clone from the repository.
- Install the
pynq
package. - Copy board-specific files into the
pynq
package. - Copy Jupyter notbooks.
- (Optional) Build the documentation.
To run this script, first verify the $BOARD
environment variable has been set correctly:
echo $BOARD
- If
$BOARD
is not set, addexport BOARD=<board_name>
(e.g.,<board_name>
can beZybo
orPynq-Z1
) to/home/xilinx/.profile
. Then either reboot the board, or run the following:
source /home/xilinx/.profile
- If
$BOARD
has already been set, just run:
sudo /home/xilinx/script/update_pynq.sh
It is not recommended to update pynq
using pip
, since there are still many board-specific files to be copied from the repository.
The developer mode will pull entire github repository into /src, but again, the board-specific files are not copied to pynq
.
# (deprecated)
sudo -H pip install --upgrade 'git+https://github.com/Xilinx/PYNQ@master#egg=pynq&subdirectory=python'
# (deprecated) Developer mode
sudo -H pip install -e 'git+https://github.com/Xilinx/PYNQ@master#egg=pynq&subdirectory=python'
cd /usr/local/lib/python3.4/dist-packages/pynq
py.test –vsrw