Open main menu

DAVE Developer's Wiki β

Changes

BELK-TN-005: Running PYNQ on Bora

821 bytes removed, 08:20, 13 November 2018
no edit summary
To see PYN in action, please see [https://www.youtube.com/watch?v=LoLCtSzj9BU this clip].
==Testbed's hardware Hardware and software configurationSoftware Configuration==
As stated before, the procedure was tested on Bora/BoraEVB hardware platform.
*U-Boot 2018.1 (at the time of this writing, this version was not officially supported by any BELK release yet)
*Linux kernel 4.14.0 (at the time of this writing, this version was not officially supported by any BELK release yet)
*Root file systemfilesystem: extracted from [http://files.digilent.com/Products/PYNQ/pynq_z1_v2.3.zip Pynq-Z1 v2.3 image] and mounted from microSD card.
Original root file system included several kernel drivers built as modules. The Linux kernel used for this test was different than the kernel released along with the PYNQ's root file system, however. Consequently, these modules were not compatible with the kernel running on Bora. To overcome this issue, these drivers were linked statically into the kernel image.
==Setting up Up the boardBoard==
U-Boot environment was configured in order to retrieve the kernel image and the device tree blob from the microSD card. Also, it was configured to make the kernel to mount the root file system from a partition of the microSD card.
The following box shows the full boot process (clock on the "Expand" box):
<pre class="workstation-terminal mw-collapsible mw-collapsed">
 
# SETTING UP THE BOARD
 
U-Boot environment was configured in order to retrieve kernel image and device tree blob on mmc.
Also, it was configured to make the kernel to mount the root file system on mmc.
 
/* a test completati ti passo l'immagine della mmc con il rfs contenente anche gli esempi di questa guida */
 
The following box shows the full boot process (clock on the "Expand" box):
 
/* vedi boot_process.txt */
 
 
 
# open jupyter notebook
 
In order to open the Jupyter Notebook web dashboard:
- open the browser (only Google Chrome is supported)
- go to http://192.168.2.99:9090 if your board is connected to a computer via static IP address or to http://pynq:9090 if your board is connected to a router on network
- log in with username "xilinx" and password "xilinx"
 
/*
immagine : jupyter_welcome.png
*/
 
U-Boot 2018.01-00022-g322f20f (Aug 28 2018 - 11:20:19 +0200)
</pre>
==Testing the PYNQ frameworkFramework==
The following image shows the PYNQ processes running.
This example was inspired by [[http://www.fpgadeveloper.com/2018/03/how-to-accelerate-a-python-function-with-pynq.html|this tutorial]].
===Basic operationsOperations===
*In order to open the Jupyter Notebook web dashboard, do the following steps:
**Open the browser (only Google Chrome is supported)
For more deatils, please refer to the section [http://www.fpgadeveloper.com/2018/03/how-to-accelerate-a-python-function-with-pynq.html ''Software FIR filter using SciPy''].
===Implementing a hardwareHardware-accelerated version Accelerated Version of the FIR filter Filter in PL===
4,650
edits