Quantcast
Channel: Xilinx Wiki : Xilinx Wiki - all changes
Viewing all 11776 articles
Browse latest View live

Zynq UltraScale MPSoC Base TRD 2017.4 - Design Module 6

$
0
0
...
This tutorial shows how to build the Base TRD Vivado design that implements the TPG capture pipeline, HDMI Rx capture pipeline including VPSS scaler & frame-buffer read configured for 2ppc and HDMI Tx display pipeline including video-mixer configured for 2ppc.
Open the Vivado project.
Note: This project was created with the Vivado version bundled with SDx 2017.2. If you use standalone Vivado 2017.2, you will see the following message design was created in a ‘future version of Vivado’ and the build will fail.
% cd $TRD_HOME/pl/zcu102_[es2_]base_trd
% vivado zcu102_[es2_]base_trd.xpr

Zynq UltraScale MPSoC Base TRD 2017.4 - Design Module 7

$
0
0

Zynq UltraScale MPSoC Base TRD 2017.4 - Design Module 8

$
0
0

Zynq UltraScale MPSoC Base TRD 2017.4 - Design Module 9

$
0
0

Zynq UltraScale MPSoC Base TRD 2017.4 - Design Module 10

$
0
0

teminal.png

Zynq UltraScale+ MPSoC VCU 4k60 Design Example with HDMI Tx and Rx

$
0
0
...
{boardsetup.png}
Preparing the SD card
...
prepared above in build steps to SDCard.
Copy the below listed files from the design file directory Design_files/prebuilt_binaries/UserCase1 to SD card .
configure_qos.sh
...
xmedia-ctl
Run_Use_Case1.sh
SettingNote:For user convenience prebuilt BOOT.bin and image.ub also provided in this directory.Copy them also to SD card in case User want to run the demo with out executing the above build steps.
Setting
up the ZCU106 BoardsBoard
Connect the Micro USB cable into the ZCU106 Board Micro USB port J83, and the other end into an open USB port on the host PC. This cable is used for UART over USB communication.
Insert the SD card with the images copied into the SD card slot J100.
...
Connect one end of HDMI cable to board’s P7 stacked HDMI connector (upper port) and another end to HDMI monitor.
Connect one end of Ethernet cable to Board1’s J67 connector, and connect the other end of Ethernet cable to Board2’s J67 connector
...
(See the COM Port sectionAppendix A for more details).
Switch ON SW1 to power the ZCU106 board.

Figure below shows the ZCU106 boards connections.
{http://www.wiki.xilinx.com/site/embedthumbnail/placeholder?w=640&h=503} http://www.wiki.xilinx.com/file/view/vcu_trd_17p3_fig24.jpg/623733495/640x503/vcu_trd_17p3_fig24.jpg
It takes about a minute for Linux to boot. User may miss the boot sequence while the terminal session is being configured.
Determine which COM to use to access the USB serial port on the ZCU106 board.
Make sure that the ZCU106 board is powered on and the serial UART device USB cable is in place. This ensures that the USB-to-serial bridge is enumerated by the PC host.
Open your computer's Control Panel by clicking on Start > Control Panel.
Note that the Start button is typically located in the lower left corner of the screen. Occasionally, it is in the upper left corner.
Click Device Manager to open the Device Manager window.Note: You may be asked to confirm opening the Device Manager. If so, click YES.
{device_manager_snap.png}
Expand Ports (COM & LPT).
Locate the Silicon Labs Quad CP210x USB to UART Bridge: Interface 0 (COM#).
Note down the COM Port number for further steps.
Close the Device Manager by clicking the red X in the upper right corner of the window.
Launch any Terminal application like Tera term to view the serial messages
Launch Tera Term and open the COM port that is associated to Silicon Labs Quad CP210x USB to UART Bridge: Interface 0 of the USB-to-serial bridge to both the boards
Set the COM port to 115200 Baud rate, 8, none, 1 –Set COM port.

Power ON both the boards which has SD card. It boots Linux on board.
...
bootsup , login the linux with "root" as username and password.
figure :
export TechTip_HOME=</path/to/downloaded/zipfile>/Design_files
Execution on Boards:
Run below command on both
Change the boardsdirectory to media/card where the BOOT partition of the card is mounted
# cd /media/card/
...
below script on bothto start the boardsUseCase1
# ./receive_data.sh &
Run below script on both the boards
# ./send_data.sh &
./Run_Use_Case1.sh
NOTE:
Restart the board and follow the execution steps.
...
Check whether the HDMI-RX is locked to 4Kp60, using below command
# media-ctl-d /dev/media1 -p
PreparingSetting up the board and running the Use Case 2 :
Preparing
SD card for Board1**Board1
Copy BOOT.BIN,
...
prepared above in build steps to SDCard.
Copy the xmedia-ctl binary from the design file directory Design_files/prebuilt_binaries/Board1 to SD card .

Mark this as “Board1 SDcard”.
...
scripts from Design_files/prebuilt_binaries/Board1Design_files/prebuilt_binaries/UseCase2/Board1 to “Board1
configure_qos.sh
xmedia-ctrl
hdmi_config_4k_new.sh
receive_data.sh
send_data.sh
Note:For user convenience prebuilt BOOT.bin and image.ub also provided in this directory.Copy them also to SD card in case User want to run the demo with out executing the above build steps.
Preparing SD card for Board2
...
prepared above in built steps to SDCard.
Copy the xmedia-ctl binary from the design file directory Design_files/prebuilt_binaries/Board2 to SD card .

Mark this as “Board2 SDcard”.
Copy following scripts from Design_files/prebuilt_binaries/Board2 to “Board2 SDCard”
configure_qos.sh
xmedia-ctrl
hdmi_config_4k_new.sh
receive_data.sh
send_data.sh
Preparingreceive_data.sh
Note:For user convenience prebuilt BOOT.bin and image.ub also provided in this directory.Copy them also to SD card in case User want to run the demo with out executing the above build steps.
ZCU 106 Board1 Setup:
Connect the Micro
USB Sticks
Copy following video files
cable into the ZCU106 Board Micro USB port J83, and the other end into an open USB port on the host PC. This cable will be used for UART over USB communication.
Insert “Board1 SDCard” into the SD card slot J100.
Set the SW6 switches as shown in below Figure . This configures the boot settings to boot
from Design_files/video_files folderSD.
{switch_Settings.png}
Connect 12V Power
to the ZCU106 6-Pin Molex connector.
Connect one end of HDMI cable to board’s HDMI-RX (bottom) port,and, the other end to HDMI port of nVidia shield.
Connect one end of HDMI cable to board’s HDMI-TX (top) port, and,the other end to HDMI port (it should have support for HDCP 2.2) of 4K monitor
Connect one end of Ethernet cable to Board1’s J67 connector, and connect the other end of Ethernet cable to Board2’s J67 connector Open Tera Term utility on windows machine and Power ON the Client board. Refer to Appendix A for Tera Term tool setup.
Once Tera term setup is done, power off the board
ZCU 106 Board2 Setup:
Follow the procedure of “ ZCU106 Board1 Setup”, but connect the “Board2 SDCard” into the SD card slot J100.
Connect one end of Ethernet cable to Board2’s J67 connector, and connect the other end of Ethernet cable to Board1’s J67 connector
Execution on Boards
Run below command on
both the USB sticks
bbb_sunflower_1080p_60fps_normal.mp4
snake.mp4
boards
# cd /media/card/
Run below script on both the boards
# ./receive_data.sh &
Run below script on both the boards
# ./send_data.sh &
NOTE:
Restart the board and follow the execution steps.
If any of the board is not receiving the data OR not displaying the output
Check whether the HDMI-TX is locked to 4Kp60 (Blue screen should be appeared on screen)
Kill the processes of receive_data.sh and execute the script again, then the blue screen gets displayed.
Check whether the HDMI-RX is locked to 4Kp60, using below command
# media-ctl-d /dev/media1 -p
{teminal.png}

Observations:
What you will observe is
...
HDMI video capture (4Kp60) data will be encoded by VCU H.265 encoder and the encoded data is transmitted over Ethernet from Board2 to Board1.
Receives the video data from Board1, decodes and displays on 4K monitor connected to HDMI-TX on Board2.
Appendix A
Determine which COM to use to access the USB serial port on the ZCU106 board.
Make sure that the ZCU106 board is powered on and the serial UART device USB cable is in place. This ensures that the USB-to-serial bridge is enumerated by the PC host.
Open your computer's Control Panel by clicking on Start > Control Panel.
Note that the Start button is typically located in the lower left corner of the screen. Occasionally, it is in the upper left corner.
Click Device Manager to open the Device Manager window.Note: You may be asked to confirm opening the Device Manager. If so, click YES.
{device_manager_snap.png}
Expand Ports (COM & LPT).
Locate the Silicon Labs Quad CP210x USB to UART Bridge: Interface 0 (COM#).
Note down the COM Port number for further steps.
Close the Device Manager by clicking the red X in the upper right corner of the window.
Launch any Terminal application like Tera term to view the serial messages
Launch Tera Term and open the COM port that is associated to Silicon Labs Quad CP210x USB to UART Bridge: Interface 0 of the USB-to-serial bridge to both the boards
Set the COM port to 115200 Baud rate, 8, none, 1 –Set COM port.

login.JPG


Zynq UltraScale+ MPSoC VCU 4k60 Design Example with HDMI Tx and Rx

$
0
0
...
xmedia-ctl
Run_Use_Case1.sh
...
build steps.
Setting up the ZCU106 Board
Connect the Micro USB cable into the ZCU106 Board Micro USB port J83, and the other end into an open USB port on the host PC. This cable is used for UART over USB communication.
...
figure :
export TechTip_HOME=</path/to/downloaded/zipfile>/Design_files
{login.JPG}
Change the directory to media/card where the BOOT partition of the card is mounted
# cd /media/card/
Run below script to start the UseCase1
# ./Run_Use_Case1.sh
NOTE:
Restart the board and follow the execution steps.
If any of the board is not receiving the
Observation:
SMP Linux boots up On ZCU106Board1
HDMI video capture (4Kp60)
data OR not displaying the output
Check whether the HDMI-TX is locked to 4Kp60 (Blue screen should
will be appeared on screen)
Kill the processes of receive_data.sh
encoded by VCU H.265 encoder and execute the script again, then the blue screen gets displayed.
Check whether the HDMI-RX is locked
decoded and displays on 4K monitor connected to 4Kp60, using below command
# media-ctl-d /dev/media1 -p
HDMI-TX
Setting up the board and running the Use Case 2 :
Preparing SD card for Board1
...
send_data.sh
receive_data.sh
...
build steps.
ZCU 106 Board1 Setup:
Connect the Micro USB cable into the ZCU106 Board Micro USB port J83, and the other end into an open USB port on the host PC. This cable will be used for UART over USB communication.
...
Appendix A
Determine which COM to use to access the USB serial port on the ZCU106 board.
MakeNote: Make sure that
Open your computer's Control Panel by clicking on Start > Control Panel.
Note that the Start button is typically located in the lower left corner of the screen. Occasionally, it is in the upper left corner.

Zynq UltraScale+ MPSoC VCU 4k60 Design Example with HDMI Tx and Rx

$
0
0
...
How to build all the required components based on the provided source files via detailed step-by-step tutorials.
It will demonstrate the following uses cases and we have used the Gstreamer application to create the pipeline and execute it accordingly.
UserUse Case 1: HDMI capture pipeline with VCU Encode and Decode
{Usercase_2.JPG}
Overview:
In this use case we will be demonstrating a video pipeline where the raw video captured by the HDMI Rx subsystem is encoded using the VCU Block in H.265 format. Then the encoded video is again decoded back to raw format and displayed on a 4K Monitor connected to the ZCU106 HDMI Interface.
We will be using the Gstreamer framework to create this pipeline and execute in steps to run instructions provided in further section of this document.
Use Case 2:
HDMI capture
{usercase1.JPG}
Overview :
In this use case we will be demonstrating video streaming using two ZCU106 boards. The raw video captured by the HDMI Rx subsystem on the first ZCU106 board and encoded using the VCU Block in H.265 format and packetized into Ethernet RTP stream using RTP stack and sent to a second ZCU106 board.
The second ZCU106 board which is identified by its IP address runs a GStreamer pipeline which captures the encoded video stream from the network and decodes the encoded video packets and displays it on the HDMI monitor connected to the HDMI transmit interface.We will be using the gstreamer application to create this pipeline and execute in the Steps to run instructions provided in further section of this document.
Use Case 2: HDMI capture pipeline with VCU Encode and streaming in bidirectional mode
Additional material that is not hosted on the tutorial:
Zynq UltraScale+ MPSoC VCU TRD user guide, UG1250: The UG provides the list of features, software architecture and hardware architecture.
...
Copy the generated boot image and Linux image to the SD card directory.
cp BOOT.BIN image.ub $Design_HOME/images/rev-x
Setting up the board and running the Use Case 1 :
Figure below shows the ZCU106 board with interfaces highlighted.
{boardsetup.png}
Preparing
Preparing the SD card
Copy BOOT.BIN, image.ub which are prepared above in build steps to SDCard.
Copy the below listed files from the design file directory Design_files/prebuilt_binaries/UserCase1 to SD card .
configure_qos.sh
hdmi_config_4k_new.sh
xmedia-ctl
Run_Use_Case1.sh
Note:For user convenience prebuilt BOOT.bin and image.ub also provided in this directory.Copy them also to SD card in case User want to run the demo with out executing the above build steps.
Setting up the ZCU106 Board
Connect the Micro USB cable into the ZCU106 Board Micro USB port J83, and the other end into an open USB port on the host PC. This cable is used for UART over USB communication.
Insert the SD card with the images copied into the SD card slot J100.
Set the SW6 switches as shown in the below Figure. This configures the boot settings to boot from SD.
{switch_Settings.png}
Connect 12V Power to the ZCU106 6-Pin Molex connector.
Connect one end of HDMI cable to board’s P7 stacked HDMI connector (lower port) and another end to HDMI source.
Connect one end of HDMI cable to board’s P7 stacked HDMI connector (upper port) and another end to HDMI monitor.
Connect one end of Ethernet cable to Board1’s J67 connector, and connect the other end of Ethernet cable to Board2’s J67 connector
Set up a terminal session between a PC COM port and the serial port on the evaluation board (See the Appendix A for more details).
Figure below shows the ZCU106 boards connections.
{http://www.wiki.xilinx.com/site/embedthumbnail/placeholder?w=640&h=503} http://www.wiki.xilinx.com/file/view/vcu_trd_17p3_fig24.jpg/623733495/640x503/vcu_trd_17p3_fig24.jpg
It takes about a minute for Linux to boot. User may miss the boot sequence while the terminal session is being configured.
Power ON both the boards which has SD card. It boots Linux on board.
After linux is bootsup , login the linux with "root" as username and password.
figure :
export TechTip_HOME=</path/to/downloaded/zipfile>/Design_files
{login.JPG}
Change the directory to media/card where the BOOT partition of the card is mounted
# cd /media/card/
Run below script to start the UseCase1
# ./Run_Use_Case1.sh
Observation:
SMP Linux boots up On ZCU106Board1
HDMI video capture (4Kp60) data will be encoded by VCU H.265 encoder and then decoded and displays on 4K monitor connected to HDMI-TX
Setting up the board and running the Use Case 2 :
Cards:
Preparing SD card for Board1
Copy BOOT.BIN, image.ub which are prepared above in build steps to SDCard.
Mark this as “Board1 SDcard”.
...
scripts from Design_files/prebuilt_binaries/UseCase2/Board1Design_files/prebuilt_binaries/Board1 to “Board1
configure_qos.sh
xmedia-ctrl
...
receive_data.sh
send_data.sh
autostart.sh
bin

Note:For user convenience prebuilt BOOT.bin and image.ub also provided in this directory.Copy them also to SD card in case User want to run the demo with out executing the above build steps.
Preparing SD card for Board2
...
send_data.sh
receive_data.sh
autostart.sh
bin

Note:For user convenience prebuilt BOOT.bin and image.ub also provided in this directory.Copy them also to SD card in case User want to run the demo with out executing the above build steps.
Setting up the ZCU106 Boards:
ZCU 106 Board1 Setup:
Connect the Micro USB cable into the ZCU106 Board Micro USB port J83, and the other end into an open USB port on the host PC. This cable will be used for UART over USB communication.
...
Connect one end of HDMI cable to board’s HDMI-RX (bottom) port,and, the other end to HDMI port of nVidia shield.
Connect one end of HDMI cable to board’s HDMI-TX (top) port, and,the other end to HDMI port (it should have support for HDCP 2.2) of 4K monitor
...
Client board. Refer
Refer
to Appendix
Once Tera term setup is done, power off the board
ZCU 106 Board2 Setup:
Follow the procedure of “ ZCU106 Board1 Setup”, but connect the “Board2 SDCard” into the SD card slot J100.
Connect one end of Ethernet cable to Board2’s J67 connector, and connect the other end of Ethernet cable to Board1’s J67 connector
ExecutionExecuting Use case 1:
Power
on Boards
Run below command
both the boards. It boots up the linux on both the boards
# cd /media/card/

After the linux is boots up , login with "root" as username and password.

Run the below scriptcommand on both the boards
# ./receive_data.sh &
Board2
/media/card/receive_data.sh

Run below scriptcommand on both the boards
# ./send_data.sh &
Board1
/media/card/send_data.sh

NOTE:
Restart the board and follow the execution steps.
...
On ZCU106Board1
HDMI video capture (4Kp60) data will be encoded by VCU H.265 encoder and the encoded data is transmitted over Ethernet from Board1 to Board2.
Receives the video data from Board2, decodes and displays on 4K monitor connected to HDMI-TX on Board1.
On ZCU106Board2
HDMI video capture (4Kp60) data will be encoded by VCU H.265 encoder and the encoded data is transmitted over Ethernet from Board2 to Board1.
Receives the video data from Board1, decodes and displays on 4K monitor connected to HDMI-TX on Board2.
Executing Use case 1:
Appendix A
Determine which COM to use to access the USB serial port on the ZCU106 board.

Us_Case1.JPG

UseCase2.JPG

board_setup.JPG

usecase1_run.JPG

Zynq UltraScale+ MPSoC VCU 4k60 Design Example with HDMI Tx and Rx

$
0
0
...
It will demonstrate the following uses cases and we have used the Gstreamer application to create the pipeline and execute it accordingly.
Use Case 1: HDMI capture pipeline with VCU Encode and streaming
{usercase1.JPG}{Us_Case1.JPG}
Overview :
In this use case we will be demonstrating video streaming using two ZCU106 boards. The raw video captured by the HDMI Rx subsystem on the first ZCU106 board and encoded using the VCU Block in H.265 format and packetized into Ethernet RTP stream using RTP stack and sent to a second ZCU106 board.
The second ZCU106 board which is identified by its IP address runs a GStreamer pipeline which captures the encoded video stream from the network and decodes the encoded video packets and displays it on the HDMI monitor connected to the HDMI transmit interface.We will be using the gstreamer application to create this pipeline and execute in the Steps to run instructions provided in further section of this document.
...
bidirectional mode
{UseCase2.JPG}
Overview:
In this use case we will be demonstrating video streaming using two ZCU106 boards. The raw video captured by the HDMI Rx subsystem on the ZCU106 board1 and encoded using the VCU Block in H.265 format and packetized into Ethernet RTP stream using RTP stack and sent to a ZCU106 Board2 .The ZCU106 Board2 which is identified by its IP address runs a GStreamer pipeline which captures the encoded video stream from the network and decodes the encoded video packets and displays it on the HDMI monitor connected to the HDMI transmit interface.This scenario happens vice versa
We will be using the gstreamer application to create this pipeline and execute in the Steps to run instructions provided in further section of this document.

Additional material that is not hosted on the tutorial:
Zynq UltraScale+ MPSoC VCU TRD user guide, UG1250: The UG provides the list of features, software architecture and hardware architecture.
...
Follow the procedure of “ ZCU106 Board1 Setup”, but connect the “Board2 SDCard” into the SD card slot J100.
Connect one end of Ethernet cable to Board2’s J67 connector, and connect the other end of Ethernet cable to Board1’s J67 connector
Below figure show the complete board setup :
{board_setup.JPG}

Executing Use case 1:
Power on both the boards. It boots up the linux on both the boards
...
Run below command on Board1
/media/card/send_data.sh
Below figure shows the execution of Use Case 1
{usecase1_run.JPG}

NOTE:
Restart the board and follow the execution steps.
...
On ZCU106Board2
Receives the video data from Board1, decodes and displays on 4K monitor connected to HDMI-TX on Board2.
...
Use case 1:2:
Power on both the boards. It boots up the linux on both the boards
After the linux is boots up , login with "root" as username and password.
Run the script on both the boards
/media/card/receive_data.sh &
Now run the below script on both the boards
/media/card/send_data.sh
Observations:
What you will observe is
SMP Linux boots up.
On ZCU106Board1
HDMI video capture (4Kp60) data will be encoded by VCU H.265 encoder and the encoded data is transmitted over Ethernet from Board1 to Board2.
Receives the video data from Board2, decodes and displays on 4K monitor connected to HDMI-TX on Board1.
On ZCU106Board2
HDMI video capture (4Kp60) data will be encoded by VCU H.265 encoder and the encoded data is transmitted over Ethernet from Board2 to Board1.
Receives the video data from Board1, decodes and displays on 4K monitor connected to HDMI-TX on Board2.
Below figure shows the execution of the use case 2

Appendix A
Determine which COM to use to access the USB serial port on the ZCU106 board.

Zynq UltraScale+ MPSoC VCU 4k60 Design Example with HDMI Tx and Rx

$
0
0
...
Author
Description of Revisions
1.0
Damoder Mogilipaka &
Rajesh Gugulothu
Initial Release

Overview
The primary goal of this Tech Tip is to demonstrate the capabilities of video codec unit (VCU) hard block present in Zynq UltraScale+ MPSoC EV devices. This Tech Tip uses Vivado IP Integrator (IPI) flow for building the hardware design and Xilinx Yocto PetaLinux flow for software design. It uses Xilinx IPs and software drivers to demonstrate the capabilities of different components.
...
{UseCase2.JPG}
Overview:
...
vice versa
We will be using the gstreamer application to create this pipeline and execute in the Steps to run instructions provided in further section of this document.
Additional material that is not hosted on the tutorial:

Zynq UltraScale+ MPSoC Ubuntu part 1 - Running the Pre-Built Ubuntu Image and Power Advantage Tool

$
0
0
...
boot.bin - Booting image
Image.ub - Kernel image and Device Tree
scripts - directory.
apps - directory.
GPU Driver
ZCU102 Board Setup:
1. Connect the Micro USB cable into the ZCU102 Board Micro USB port J83, and the other end into an open USB port on the host PC. This cable will be used for UART over USB communication.

XEN Hypervisor

$
0
0
...
Power Management – various functions
Yes
Roadmap
Roadmap
2018.3
2018.3

Some functionality included in Xen
Not fully featured or tested

XEN Hypervisor

$
0
0
...
2018.3
2018.3
SomeAs of 2017.3, some functionality included
Not fully featured or tested
See Xen sources

HDMI FrameBuffer Example Design

$
0
0
...
% export HDMI_HOME=<path/to/downloaded/zip-file>/zcu102_hdmi_<n>b_[hdcp]_exdes_2017_3/
5.2.1 Hardware
...
design from scratch with a single command.scratch. To execute
% cd $HDMI_HOME/pl
% vivado –s ./design/setup.tcl
This will open the Vivado GUI and generate the hardware design.
Next click "Generate Bitstream" under "PROGRAM AND DEBUG" tab and wait for the bit-stream to be generated.

Copy the generated bitstream to the PetaLinux directory
% cp hdmi_example_zcu102.runs/impl_1/hdmi_example_zcu102_wrapper.bit $HDMI_HOME/apu/petalinux_bsp/images/linux/
Viewing all 11776 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>