Build a PYNQ environment on Ultra96 V2 and log in to Jupyter Notebook

Introduction

Try to hardware the logic with Ultra96 v2. First, create a PYNQ environment on Ultra V2 and access it with SSH and Jupyter Notebook.

First, an overview of the Xilinx processor. -> Xilinx Product Information

Getting started just uses the CPU and doesn't seem to do anything like FPGA. .. When I investigated the method, hoping that FPGA could be used, it seems that there are the following methods.

Try PYNQ.

Try

download

Open the PYNQ --boards info page.

Download Avnet Ultra96-V2: v2.5 PYNQ image (1,790,291,697 bytes) from Community boards. The download is very slow. I read the documents while I was waiting.

When unfolded, it looks like this.

$ unzip ultra96v2_v2.5.zip
$ ls -l ultra96*
-rw-r--r--1 root root 6604447744 October 12 17:38 ultra96v2_v2.5.img
-rw-r--r--1 root root 1790291697 December 22 21:54 ultra96v2_v2.5.zip

Installation

--Write to SD card

$ sudo dd if=ultra96v2_v2.5.img of=/dev/sdc bs=1MB
6604+1 record input
6604+1 record output
6604447744 bytes (6.6 GB, 6.2 GiB) copied, 502.998 s, 13.1 MB/s

Insert and remove the SD card and mount the SD card. The mount destination is going to be / media / user / root /.

--WiFi settings

$ wpa_passphrase your_ssid
passphrase
network={
  ssid="your_ssid"
  # psk="passphrase"
  psk=0123456789abcdef0123456789abcdef0123456789abcdef
}
$ sudo vi /media/user/root/etc/wpa_supplicant.conf
network={
  ssid="your_ssid"	
  psk=0123456789abcdef0123456789abcdef0123456789abcdef
}
$ sudo vi /media/user/root/etc/network/interfaces.d/wlan0
auto wlan0 # <--Added to the first line
iface wlan0 inet dhcp
    wireless_mode managed
    wireless_essid any
    wpa-driver wext
    wpa-conf /etc/wpa_supplicant.conf

Reference: Technooooootes --Move PYNQ image with Ultra96v2

Insert the SD card and turn on the power switch (SW4).

--Login

Check the DHCP server log to see the IP address of the unfamiliar MAC address. Ours was "F8: F0: 05: xx: xx: xx".

$ ssh xilinx@<ip address>
[email protected].***.***'s password: 
Welcome to PYNQ Linux, based on Ubuntu 18.04 (GNU/Linux 4.19.0-xilinx-v2019.1 aarch64)

Last login: Sat Oct 12 01:30:36 2019
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

xilinx@pynq:~$ 

Use

--Access Jupyter Notebook

Access the following with your browser.

 http://<ip address>/

--Authentication

Enter xilinx in the password field to log in.

--Sample code

Run and read the sample code.

Summary

You have successfully accessed your Jupyter Notebook! There was no problem with a 16 GB SD card, but it seems that it did not burn well with a 32 GB SD card.

reference

-Qiita --1st Setup PYNQ-Z1

Recommended Posts

Build a PYNQ environment on Ultra96 V2 and log in to Jupyter Notebook
How to build a beautiful Python environment on a new Mac and install Jupter Notebook
How to build a Python virtual execution environment using Visual Studio Code and pipenv on a Windows machine (also Jupyter notebook)
Build Linux on a Windows environment. Steps to install Laradock and migrate
Flutter in Docker-How to build and use a Flutter development environment inside a Docker container
Install and set Jupyter Notebook to create a study note creation environment [Mac]
How to build a Django (python) environment on docker
How to build a Python environment on amazon linux 2
Memo A beginner tried to build a Java environment and Japaneseize it on Ubuntu 18.04.2 LTS.
Install LAMP on Amazon Linux 2 and build a WordPress environment.
How to build a new python virtual environment on Ubuntu
Add an extension to build a more comfortable Jupyter environment
How to import NoteBook as a module in Jupyter (IPython)
Building a Python environment on a Mac and using Jupyter lab
A note on how to load a virtual environment in PyCharm
Build a Python environment and transfer data to the server
I want to use a virtual environment with jupyter notebook!
Unable to display tensorboard in jupyter notebook on docker (solved)
How to import NoteBook as a module in Jupyter (IPython)
A very convenient way to give a presentation on Jupyter Notebook
How to build Anaconda virtual environment used in Azure Machine Learning and link with Jupyter
When I tried to build a Rails environment on WSL2 (Ubuntu 20.04LTS), I stumbled and fell.
Build a python3 environment on CentOS7
How to build a LAMP environment using Vagrant and VirtulBox Note
A simple way to launch Jupyter Notebook / Lab and set a password
Build a Chainer environment using CUDA and cuDNN on a p2 instance
Build a Selenium environment on Amazon Linux 2 in the shortest time
Build a 64-bit Python 2.7 environment with TDM-GCC and MinGW-w64 on Windows 7
Build a Python environment on your Mac with Anaconda and PyCharm
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
Build a comfortable psychological experiment / analysis environment with PsychoPy + Jupyter Notebook
Install Anaconda on Mac and upload Jupyter (IPython) notebook to Anaconda Cloud
Shell script to build pyenv environment on ubuntu in one shot
How to build Python and Jupyter execution environment with VS Code
How to quickly create a machine learning environment using Jupyter Notebook on macOS Sierra with anaconda
Easy way to enter and execute AtCoder test cases in Jupyter Notebook
Method to build Python environment in Xcode 6
I wanted to use jupyter notebook with docker in pip environment (opticspy)
Build Python3 and OpenCV environment on Ubuntu 18.04
Build a python environment on MacOS (Catallina)
Make Jupyter Notebook a service on CentOS
I want to build a Python environment
Build a development environment using Jupyter and Flask with Python in Docker (supports both VS Code / code-server)
How to execute commands in jupyter notebook
Try to build python and anaconda environment on Mac (by pyenv, conda)
Build jupyter notebook on remote server (CentOS)
[V11 ~] A memorandum to put in Misskey
Build a Python + OpenCV environment on Cloud9
Run Jupyter notebook on a remote server
Build a "Deep learning from scratch" learning environment on Cloud9 (jupyter miniconda python3)
From nothing on Ubuntu 18.04 to setting up a Deep Learning environment in Tensor
To output a value even in the middle of a cell with Jupyter Notebook
A complete guidebook to using pyenv, pip and python in an offline environment
Build a flask app made with tensorflow and dlib to work on centos7
Build a python environment to learn the theory and implementation of deep learning
How to install Fast.ai on Alibaba Cloud GPU and run it on Jupyter notebook
What to do if NotADirectoryError: [Errno 20] Not a directory:'xdg-settings' appears in jupyter notebook
Build a TensorFlow development environment on Amazon EC2 with command copy and paste
Install matplotlib and display graph on Jupyter Notebook
Build a LAMP environment on your local Docker
Build a LAMP environment in a very short time