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

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0
...
Archive
Description:
About OSG:
The OpenSceneGraph is an OpenSource, cross-platform graphics toolkit for the development of high-performance graphics applications such as flight simulators, games, virtual reality and scientific visualization. It is based around the concept of a SceneGraph, providing an object-oriented framework on top of OpenGL. This frees the developer from implementing and optimizing low-level graphics calls and provides many additional utilities for rapid development of graphics applications.
This Tech tip showcases 3D graphics rendering capabilities of ARM® Mali™-400 MP2 GPU integrated in Zynq® UltraScale+™ MPSoC. It executes OpenSceneGraph (OSG) based 3D graphics application on GPU. Executing OSG based graphics application requires OSG middleware layer which runs on top of the GPU software stack. OSG middle-ware layer is configured to support OpenGL ES 2.0 in order with communicate with GPU software stack. At the application side, it provides the open source 3D graphics application programming interface to develop and execute graphics application.
In this tech tip the under laying windowing system is a X11 based.
Highlights of the demo Execution:
Boots SMP Linux on APU subsystem.

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0
...
Description of Releases
Summary:
...
including Quad-core ARM®
ARM®
Cortex™-A53 Application
...
All Programmable Multi-Processor
Multi-Processor
SoC delivering
...
MPSoC target,> on Linux
Implementation
Implementation Details
...
Archive
Description:
...
applications such> as flight
...
and optimizing low-level
low-level
graphics calls
This Tech tip showcases 3D graphics rendering capabilities of ARM® Mali™-400 MP2 GPU integrated in Zynq® UltraScale+™ MPSoC. It executes OpenSceneGraph (OSG) based 3D graphics application on GPU. Executing OSG based graphics application requires OSG middleware layer which runs on top of the GPU software stack. OSG middle-ware layer is configured to support OpenGL ES 2.0 in order with communicate with GPU software stack. At the application side, it provides the open source 3D graphics application programming interface to develop and execute graphics application.
Highlights of the demo Execution:

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0
...
ARM® Cortex™-A53 Application Processing Unit (APU), Dual-core 32-bit ARM® Cortex™-R5 Real Time Processing Unit (RPU), and ARM® Mali™-400 MP2 Graphics Processing Unit (GPU). It is Industry’s First All Programmable
Multi-Processor SoC delivering 5x system level performance-per-watt and any-to-any connectivity.
...
MPSoC target,> on Linux
Implementation
Implementation Details
...
Archive
Description:
...
applications such >> as flight
low-level graphics calls and provides many additional utilities for rapid development of graphics applications.
...
based 3D graphics graphics application on
...
order with communicate
communicate
with GPU
Highlights of the demo Execution:
Boots SMP Linux on APU subsystem.
...
2.Create a directory ( Example : Rootfs ) and go to that directory to extract the root.cpio file using below command.
$ cpio -idmv < <Design_files_extracted_directory>/root.cpio
...
Zynq® UltraScale+™> MPSoC target.
3.Now Download the OpenSceneGraph source archive file from http://www.openscenegraph.org/index.php/download-section/stable-releases/206-openscenegraph-3-4-0-released path.
...
followed for compiling>compiling remaining versions.
...
machine and UnzipCalibri,sans-serif; font-size: 11pt;">Unzip it to
5.There are few modifications has to be done in the source, to support Zynq® UltraScale+™ MPSoC target. Follow the steps mentioned in the Appendix A to do these changes.
...
and make sure>sure that below
Note: Find the configuration.sh file in shared desing files as a reference.
DCMAKE_C_COMPILER
DCMAKE_CXX_COMPILER
DCMAKE_LIBRARY_PATH
DCMAKE_INCLUDE_PATH
DOPENGL_egl_LIBRARY
DOPENGL_gl_LIBRARY
DOPENGL_INCLUDE_DIR
* DCMAKE_C_COMPILER
* DCMAKE_CXX_COMPILER
* DCMAKE_LIBRARY_PATH
* DCMAKE_INCLUDE_PATH
* DOPENGL_egl_LIBRARY
* DOPENGL_gl_LIBRARY
* DOPENGL_INCLUDE_DIR

7.Set the proper cross compilation path from the installed location of the SDK/Petalinux tool.
Note: This tech tip assumes that latest xilinx SDK or petalinux tool is installed on the Linux host system.
...
Procedure to build Linux Images
This section describes how to build the Linux boot images for Zynq® UltraScale+™ MPSoC. This section covers the following topics
Preparing* Preparing the Linux
BSP Creation
Kernel Configuration
Device Tree Configuration
Building the kernel and device tree blob
Preparing* Preparing the FSBL
Preparing

* Preparing
the BOOT.bin
...
linux/images directory> of petalinux
...
local directory.
Image
system.dtb
u-boot.elf
bl31.elf
pl_lib_wrapper.bit
zynqmp_fsbl.elf

### Image
### system.dtb
### u-boot.elf
### bl31.elf
### pl_lib_wrapper.bit
### zynqmp_fsbl.elf

2.create a BOOT.bin using xilinx SDK as shown in below screen shot.Give the appropriate paths of above created binaries in the SDK tool.
. {boot.png} Fig:Creating BOOT.bin image

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0
...
The OpenSceneGraph is an OpenSource, cross-platform graphics toolkit for the development of high-performance graphics applications such > as flight simulators, games, virtual reality and scientific visualization. It is based around the concept of a SceneGraph, providing an object-oriented framework on top of OpenGL. This frees the developer from implementing and optimizing
low-level graphics calls and provides many additional utilities for rapid development of graphics applications.
...
based 3D graphicsgraphics application on
communicate with GPU software stack. At the application side, it provides the open source 3D graphics application programming interface to develop and execute graphics application.
Highlights of the demo Execution:
...
8.Apply the above settings by clicking on Apply button on the left upper corner of the Partition manager.It will create the card with one FAT32 and one EXT3 partitions.
10.Now copy the BOOT.bin ,Image,system.dtb, created in above steps to BOOT partition of the SD card.
...
card ROOT partition.make partition.make the current
$ cpio -idmv < <Design_files_extracted_directory>/root.cpio
12.Now copy the built osg lib and bin folder to the the SD card ROOT/home/root/osg folder using the below commands
...
13.skip the below section and jump to "ZCU102 Board Setup" for executing.
Preparing SD card with Prebuilt Images:
...
and Extract> it to
1.Follow the steps from 1 to 8 mentioned in the above section "Preparing SD card with all above built components" ,for creating the SD card partitions.
2.Find the prebuilt BOOT partition images under the directory <Design_files>/BOOT and copy these to the BOOT partition of the SD card.
...
4.The Prebuit OSG libraries and binaries are preset under the /home/root/prebuit_osg directory of the above extracted root filesystem.
4.By doing this you should have the following directories and images on your SD card.
BOOT* BOOT partition
BOOT.bin -Booting image
Image- Linux kernel image
system.dtb-Device Tree File
ROOT* ROOT partition
compilete root filesystem
Now your are ready to execute a example OSG based 3D card model on ZCU102 target board.
...
3.After the Linux is boots up ,Login prompt appears.enter the login with the username as "root".
4.Now execute a OSG based 3D car model in any of the below cases:
case* case 1: Executing
Change the directory to /home/root/prebuit_osg directory.
run the run_osg.sh script like as shown below and observe the car model appears on the monitor like as shown in the below figure.Try to rotate the model with the mouse connected to board.
$ ./run_osg.sh
{car_model.PNG} Fig: OSG based 3D car model
Case* Case 2: Executing
...
libraries by following>following below steps
change the directory to /home/root/osg
run the script run_osg.sh present at the same directory and observe a 3D car model is running on the monitor.
...
glReadBuffer(camera->getDrawBuffer());
4.Replace the line " #ifndef HAVE_BOOLEAN " with #ifdef HAVE_BOOLEAN in the <extracted OSG source directory>/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0
...
6.Now set the OSG source with the required Mali user libraries and include paths, from the extracted match-box rootfile system.To do this, create a configure.sh ( like as shown below ) file under the extracted OSG source directory and make >sure that below mentioned option's paths are set properly in the configuration file.
Note: Find the configuration.sh file in shared desing files as a reference.
* DCMAKE_C_COMPILERDCMAKE_C_COMPILER
* DCMAKE_CXX_COMPILER
* DCMAKE_LIBRARY_PATH
...
* Preparing the FSBL
* Preparing the BOOT.bin file
...
linux/images directory> of petalinux
...
local directory.
### Image

Image

### system.dtb
### u-boot.elf
...
8.Apply the above settings by clicking on Apply button on the left upper corner of the Partition manager.It will create the card with one FAT32 and one EXT3 partitions.
10.Now copy the BOOT.bin ,Image,system.dtb, created in above steps to BOOT partition of the SD card.
...
card ROOT partition.makepartition.make the current
$ cpio -idmv < <Design_files_extracted_directory>/root.cpio
12.Now copy the built osg lib and bin folder to the the SD card ROOT/home/root/osg folder using the below commands
...
run the script run_osg.sh present at the same directory and observe a 3D car model is running on the monitor.
$ ./run_osg.sh
Appendix A:A:Modification in OSG source
Follow the below steps to make few required changes in OSG source to support current target.
1.Change the directory to extracted OSG source.
...
glReadBuffer(camera->getDrawBuffer());
4.Replace the line " #ifndef HAVE_BOOLEAN " with #ifdef HAVE_BOOLEAN in the <extracted OSG source directory>/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp
Appendix B:File Description in Design directory
Design_files directory is
Design_files
BOOT
BOOT.bin: Boot-able image
Image: kernel image
system.dtb: Device tree blob
root.cpio:Match-box desktop root filesystem
configure.sh: OSG configuration file

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0
...
1.Follow the steps 4.1 in the tech tip ZynqUltraScalePlus+MPSoC-Ubuntu Desktop Step by Step Guide .copy the below listed images present at linux/images directory of petalinux project to a local directory.
Image
### system.dtbsystem.dtb
### u-boot.elf
### bl31.elf
...
12.Now copy the built osg lib and bin folder to the the SD card ROOT/home/root/osg folder using the below commands
$ cd <SD_card_mount_directory>/ROOT/home/root/osg
$cpio> $cpio -idmv < <osg_lib_archive_directory>/lib.cpio
$cp

> $cp
-rf <OSG_source_directroy>/bin.
13.skip the below section and jump to "ZCU102 Board Setup" for executing.
Preparing SD card with Prebuilt Images:
...
4.The Prebuit OSG libraries and binaries are preset under the /home/root/prebuit_osg directory of the above extracted root filesystem.
4.By doing this you should have the following directories and images on your SD card.
* BOOTBOOT partition
BOOT.bin -Booting image
Image- Linux kernel image

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0
...
Note: Find the configuration.sh file in shared desing files as a reference.
DCMAKE_C_COMPILER
* DCMAKE_CXX_COMPILER
* DCMAKE_LIBRARY_PATH
* DCMAKE_INCLUDE_PATH
* DOPENGL_egl_LIBRARY
* DOPENGL_gl_LIBRARY
* DOPENGL_INCLUDE_DIR
DCMAKE_CXX_COMPILER
DCMAKE_LIBRARY_PATH
DCMAKE_INCLUDE_PATH
DOPENGL_egl_LIBRARY
DOPENGL_gl_LIBRARY
DOPENGL_INCLUDE_DIR

7.Set the proper cross compilation path from the installed location of the SDK/Petalinux tool.
Note: This tech tip assumes that latest xilinx SDK or petalinux tool is installed on the Linux host system.
...
* Preparing the BOOT.bin file
1.Follow the steps 4.1 in the tech tip ZynqUltraScalePlus+MPSoC-Ubuntu Desktop Step by Step Guide .copy the below listed images present at linux/images directory of petalinux project to a local directory.
Image###Image
system.dtb
### u-boot.elf
### bl31.elf
### pl_lib_wrapper.bit
### zynqmp_fsbl.elf
u-boot.elf
bl31.elf
pl_lib_wrapper.bit
zynqmp_fsbl.elf

2.create a BOOT.bin using xilinx SDK as shown in below screen shot.Give the appropriate paths of above created binaries in the SDK tool.
. {boot.png} Fig:Creating BOOT.bin image
...
12.Now copy the built osg lib and bin folder to the the SD card ROOT/home/root/osg folder using the below commands
$ cd <SD_card_mount_directory>/ROOT/home/root/osg
> $cpio$cpio -idmv < <osg_lib_archive_directory>/lib.cpio
> $cp

$cp
-rf <OSG_source_directroy>/bin.
13.skip the below section and jump to "ZCU102 Board Setup" for executing.
Preparing SD card with Prebuilt Images:
...
Image- Linux kernel image
system.dtb-Device Tree File
* ROOT partitionROOT partition**
compilete root filesystem
Now your are ready to execute a example OSG based 3D card model on ZCU102 target board.
...
3.After the Linux is boots up ,Login prompt appears.enter the login with the username as "root".
4.Now execute a OSG based 3D car model in any of the below cases:
* casecase 1: Executing
Change the directory to /home/root/prebuit_osg directory.
run the run_osg.sh script like as shown below and observe the car model appears on the monitor like as shown in the below figure.Try to rotate the model with the mouse connected to board.
$ ./run_osg.sh
{car_model.PNG} Fig: OSG based 3D car model
* CaseCase 2: Executing
As we have copied all the built OSG lib and bin directories to /home/root/osg path of the root filesystem , in the section "Preparing SD card with all above built components", execute a 3D card model on these OSG libraries by >following below steps
change the directory to /home/root/osg

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0
...
Procedure to build Linux Images
This section describes how to build the Linux boot images for Zynq® UltraScale+™ MPSoC. This section covers the following topics
* PreparingPreparing the Linux
BSP Creation
Kernel Configuration
...
13.skip the below section and jump to "ZCU102 Board Setup" for executing.
Preparing SD card with Prebuilt Images:
...
and Extract > it it to the
1.Follow the steps from 1 to 8 mentioned in the above section "Preparing SD card with all above built components" ,for creating the SD card partitions.
2.Find the prebuilt BOOT partition images under the directory <Design_files>/BOOT and copy these to the BOOT partition of the SD card.

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0
...
Device Tree Configuration
Building the kernel and device tree blob
* PreparingPreparing the FSBL
* Preparing

Preparing
the BOOT.bin
1.Follow the steps 4.1 in the tech tip ZynqUltraScalePlus+MPSoC-Ubuntu Desktop Step by Step Guide .copy the below listed images present at linux/images directory of petalinux project to a local directory.
###ImageImage
system.dtb
u-boot.elf
...
13.skip the below section and jump to "ZCU102 Board Setup" for executing.
Preparing SD card with Prebuilt Images:
...
and Extract itit to the
1.Follow the steps from 1 to 8 mentioned in the above section "Preparing SD card with all above built components" ,for creating the SD card partitions.
2.Find the prebuilt BOOT partition images under the directory <Design_files>/BOOT and copy these to the BOOT partition of the SD card.
...
Image- Linux kernel image
system.dtb-Device Tree File
ROOT partition**
compilete
partition-complete root filesystem
Now your are ready to execute a example OSG based 3D card model on ZCU102 target board.
ZCU102 Board Setup:
...
{car_model.PNG} Fig: OSG based 3D car model
Case 2: Executing a 3D car model with the OSG libraries built in above steps:
...
libraries by >followingfollowing below steps
change the directory to /home/root/osg
run the script run_osg.sh present at the same directory and observe a 3D car model is running on the monitor.

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0
...
3.Select partition Manager Option available on the left side.
4.Right click on the detected SD card and select Create Partition option as shown in the below figure.Then a CreatePartition wizard opens.
{sd3.PNG} .Fig: SD Card Partition Creation.
5.Write the partition label name as BOOT, select the Create As option as primary, select File System as FAT32 ,partition size give 500MB.
6.select the remaining part of the SD card and right click and click yes on a warning wizard.

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0

Zynq UltraScale Plus MPSoC - Running Graphics 3D vehicle model on the ZCU102 board

$
0
0

Zynq UltraScalePlus MPSoC - Power Advantage Tool with Ubuntu Desktop

$
0
0

Important! Tag this page with: techtip
Important! All External Links should open in a new tab/window; all Internal Links to Xilinx wiki pages, should open in the same tab/window
Note: The page name automatically becomes the Title of this page. Do not add an additional title. The Page Name/Title for Zynq Tech Tips should follow the following format:
Zynq-7000 AP SoC [remainder of title goes here] Tech Tip
See the Style Guide for editing information.

Document History
Date

MSP-FET.png


Debug Flowchart.png

Zynq UltraScale+ MPSoC Power Advantage Tool part 2 - Installing the Pre-Built Power Advantage Tool

$
0
0
Zynq UltraScale+ MPSoC Power Advantage Tool part 2 - Installing the Pre-Built Power Advantage Tool
The fastest way to get something working is to install the Pre-Built Power Advantage Tool. Installing the Pre-Built Power Advantage Tool is an important first step in building the system from sources, as it gives us a functioning baseline to work from. Once we have a functioning baseline, we can then replace individual modules with ones we have built. This development method is much easier to debug than starting from scratch.
Section 1
Sub-Heading 1
Sub-Heading 2
Insert Code:
1.1 Software Setup
In this section, you will install software drivers and apps that are common to many demonstrations.
Obtain zynqus_ubuntu_pwr_<Datecode>.zip here (e.g. zynqus_ubuntu_pwr_20161003.zip) and extract to C:\zynqus.
From C:\zynqus\pwr copy the ZynqUS_Demos folder to your PC C:\
{ZynqMPSoC_Demos Directory.png}
Figure 1. Copying the ZynqUS_Demos Directory
Warning: The folder must be copied to C:\.
Open C:\ZynqUS_Demos\tools, and install the software as follows:
(Note: They only need to be installed once.)
Open the CP210x_VCP_Windows folder, and install CP210xVCPInstaller_x64.exe USB to UART driver from Silicon Labs.
Install AutoHotkey112203_Install.exe
Install teraterm-4.87.exe (Tera Term)
Set a static IP Address 192.168.1.110 on your PC:
In Windows 7 this is done from Control Panel > Network and Internet (on some systems you may be able to proceed without this step) > Network and Sharing Center > Change adapter settings (found on left side of page) > Right Click Local Area Connection > Properties > Yes…
{Static IP Address 1.png} {Static IP Address 2.png} {Static IP Address 3.png}
Internet Protocol Version 4 (TCP/IPv4) > Properties >
Use Widget-> Insert Codethe following IP address > IP address: 192.168.1.110 (Enter and use the default Subnet mask) > OK > Close
1.2 Hardware Setup
In this section, you will start to become familiar with the ZCU102 board, and will set it up for Demonstration.
Note: This board orientation is standard for most of our documents. It is usually best to orient the board to have the Xilinx logo right-side-up for the customer.
{ZCU102.png}
Figure 3. ZCU102 Board Components.
Set up your Power Advantage Tool hardware as follows:
Connect 12V Power (JS2) to (O)
Connect Ethernet (D) to PC
Connect Micro USB (UART) (J83) (F) to PC
Connect Micro USB (UART) (J96) (C) to Micro USB Keyboard and Mouse
Set the USB Mode Jumpers (J109, J110, J112, J113) (B) (See photo on right)
Set the Boot Mode Switch (SW6) (G) 1-4 Off-On-Off-On

Insert the SD card (H)
Power On/Cycle the ZCU102 (SW1) (N) and confirm that the INIT_B LED is green.
The Rail LED’s should be green except the PS_ERR_OUT LED can remain red.
The SYSCTLR_1 LED (DS46) should be on, and SYSCTLR_0 LED (DS47) should blink (H)
1.3 Creating a Pre-Built SD
A Pre-Built SD image is included in the package. A bootable SD can be created as follows:
Unzip the image C:\zynqus\pwr\sd\<Timestamp>_zcu102_ubuntu.zip (e.g. C:\zynqus\pwr\sd\20160922_zcu102_ubuntu.zip).
Run C:\ZynqUS_Demos\tools\Win32DiskImager-0.9.5-install.exe to install Win32DiskImager.
Insert a 16GB SD card to be programmed.
Launch Win32DiskImager.
Select the Image File:
{Win32 Disk Imager.png}
C:/zynqus/pwr/sd/<Timestamp>_zcu102_ubuntu.img (e.g. C:/zynqus/pwr/sd/20160922_zcu102_ubuntu.img).
Be extremely careful to select the Device Letter of your SD card (whatever drive selected will be overwritten), then select “Write”.
1.4 Flashing the MSP430
{MSP-FET.png}
Most ZCU102’s now come with a pre-flashed MSP430 image. If LED DS47 is flashing, the MSP430 has been flash programmed. If you have an older ZCU102 or have another reason to flash your own, you may do it as follows:
Attach the MSP-FET Flash Emulation Tool to USB and ZCU102 J92 (Near the power switch).
Install C:\ZynqUS_Demos\tools\MSP430Drivers-1_00_00_01-windows-installer.exe (needed once).
Run C:\ZynqUS_Demos\tools\FlashMSP430.bat with the board powered on.
1.5 Common Setup Issues
There are many steps to get the typical Power Advantage Tool demonstration set up. It is handy to have a debug guide so the most common setup issues can be resolved quickly. Skip this section and come back to it if you have problems.
Common Setup Issues.
The debug flow asks five questions, and depending on which question fails, there is a series of possible causes to check. Completing this flowchart debugs a full Power Advantage Tool installation.
{Debug Flowchart.png}
Figure 14. Debug Flowchart
Test 1: Launch TeraTerm and attach it to the COM Port for Interface 3 at 119200. Press Return and the cursor should advance. Then type [[mailto:“@ver|“@ver]]” and Return. This should return the MSP430 firmware version… If this is okay, the MSP430 is alive… Close the TeraTerm to free up the Port for the Power Advantage Tool, and skip to the next test. If this fails…
Check for the Power Indicator LED’s. If none are lit, check for the Board Power.
Check for the MSP430 light to be flashing… If it is not, press the MSP430 reset button… If it is still not flashing, perhaps the MSP430 was not flashed, or is bad. Directions how to flash are usually in the Appendix of the Power Advantage Tool documentation on the SD card.
Test 2: Launch the Power Advantage Tool from C:\ZynqUS_Demos\ZynqusPowerTool.exe Shortcut. The Power Advantage Tool should produce a Power Report that updates every few seconds… If this is okay, the Power Advantage Tool is alive… Skip to the next test. If this fails…
If the Power Advantage Tool crashes, there may be an unhandled exception. This will probably be a corner case of a new feature. This may be cleared by rebooting. Please report this one if you get this far in the debug flow, and the problem persists.
If the Power Advantage Tool runs, but the readings are all 0, this is usually an indication that the Power Monitoring circuits (INA226) are not initialized. The Power Advantage Tool needs to be closed and opened, to initialize the INA226, after any time the ZCU102 is power cycled. Also, make sure the TeraTerm is not open to Interface 3, hogging the Port. Also, make sure there is not another instance of the Power Advantage Tool running, thus taking the Port.
If the Power Advantage Tool runs, but the readings do not update, and everything else has passed this far, it is possible that contention for I2C0 has locked up the Bus. This can be reset by Power Cycling the ZCU102. Make sure you close and reopen the Power Advantage Tool to initialize the Power Monitoring INA226’s.
Test 3: Launch TeraTerm windows by running the script C:\ZynqUS_Demos\01_open_terminals_zcu102.ahk. Then power cycle the ZCU102 by the Power Switch. Messages should appear in all three TeraTerm windows… If this is okay, the Zynq device is alive… Skip to the next test. If this fails…
Check for the SD card inserted.
Check the Boot Switch Settings
Try a known good SD card (tested good in a different setup)
It is possible for the USB UART driver to lock up. Reboot the PC as a last resort.
Test 4: Launch the Terminals demonstration by C:\ZynqUS_Demos\02_demonstration_start_ZCU102.ahk. This should open five PuTTY terminal windows containing Linux apps … If this is okay, it should mostly be working. If this fails…
If five terminal windows do not open… Check if PuTTY has been installed correctly and PuTTY has been correctly configured for the five applications.
If five terminal windows open but do not connect… Make sure we are using the correct SD card for the scripts. Check the Ethernet cable. Check that the PC has been configured for a Static IP Address 192.168.1.110 (on the correct network interface). There are some Ethernet adapters that are not compatible, and may require an external USB to Ethernet adapter.
Test 5: Launch the Ubuntu demonstration by rebooting from the SD card. This should open the Ubuntu desktop on the DisplayPort terminal. Launching Soft glmark2 from the desktop and run_cube.sh from the Home window should work… If this is okay, it should mostly be working. If this fails…
If Ubuntu desktop does not open… Try rebooting from the SD card again. It has been noted that occasionally Ubuntu will not boot. If that doesn’t work, check
your code here.
Related Links
Title 1 & Link 1
Title 1 & Link 1
DisplayPort cable. And perhaps try another demo that uses the DisplayPort monitor to verify the hardware.
If the Ubuntu desktop opens, but you have no control of the cursor or keyboard, check the USB cables, mouse, and keyboard. Check the USB jumpers.

Zynq UltraScale+ MPSoC Power Advantage Tool part 2 - Installing the Pre-Built Power Advantage Tool

$
0
0
Zynq UltraScale+ MPSoC Power Advantage Tool part 2 - Installing the Pre-Built Power Advantage Tool
The fastest way to get something working is to install the Pre-Built Power Advantage Tool. Installing the Pre-Built Power Advantage Tool is an important first step in building the system from sources, as it gives us a functioning baseline to work from. Once we have a functioning baseline, we can then replace individual modules with ones we have built. This development method is much easier to debug than starting from scratch.
1 Setup
1.1 Software Setup
In this section, you will install software drivers and apps that are common to many demonstrations.
...
Install AutoHotkey112203_Install.exe
Install teraterm-4.87.exe (Tera Term)
...
your PC:
In Windows 7 this is done from Control Panel > Network and Internet (on some systems you may be able to proceed without this step) > Network and Sharing Center > Change adapter settings (found on left side of page) > Right Click Local Area Connection > Properties > Yes…
{Static IP Address 1.png} {Static IP Address 2.png} {Static IP Address 3.png}
...
Note: This board orientation is standard for most of our documents. It is usually best to orient the board to have the Xilinx logo right-side-up for the customer.
{ZCU102.png}
...
Board Components.
Set up your Power Advantage Tool hardware as follows:
Connect 12V Power (JS2) to (O)
...
Insert the SD card (H)
Power On/Cycle the ZCU102 (SW1) (N) and confirm that the INIT_B LED is green.
...
remain red.
The SYSCTLR_1 LED (DS46) should be on, and SYSCTLR_0 LED (DS47) should blink (H)
1.3 Creating a Pre-Built SD
...
Select the Image File:
{Win32 Disk Imager.png}
...
(e.g. C:/zynqus/pwr/sd/20160922_zcu102_ubuntu.img).
Be extremely careful to select the Device Letter of your SD card (whatever drive selected will be overwritten), then select “Write”.
1.4 Flashing the MSP430
...
1.5 Common Setup Issues
There are many steps to get the typical Power Advantage Tool demonstration set up. It is handy to have a debug guide so the most common setup issues can be resolved quickly. Skip this section and come back to it if you have problems.
...
Setup Issues.
The debug flow asks five questions, and depending on which question fails, there is a series of possible causes to check. Completing this flowchart debugs a full Power Advantage Tool installation.
{Debug Flowchart.png}
...
Check for the Power Indicator LED’s. If none are lit, check for the Board Power.
Check for the MSP430 light to be flashing… If it is not, press the MSP430 reset button… If it is still not flashing, perhaps the MSP430 was not flashed, or is bad. Directions how to flash are usually in the Appendix of the Power Advantage Tool documentation on the SD card.
...
this fails…
If the Power Advantage Tool crashes, there may be an unhandled exception. This will probably be a corner case of a new feature. This may be cleared by rebooting. Please report this one if you get this far in the debug flow, and the problem persists.
If the Power Advantage Tool runs, but the readings are all 0, this is usually an indication that the Power Monitoring circuits (INA226) are not initialized. The Power Advantage Tool needs to be closed and opened, to initialize the INA226, after any time the ZCU102 is power cycled. Also, make sure the TeraTerm is not open to Interface 3, hogging the Port. Also, make sure there is not another instance of the Power Advantage Tool running, thus taking the Port.
...
Try a known good SD card (tested good in a different setup)
It is possible for the USB UART driver to lock up. Reboot the PC as a last resort.
...
this fails…
If five terminal windows do not open… Check if PuTTY has been installed correctly and PuTTY has been correctly configured for the five applications.
If five terminal windows open but do not connect… Make sure we are using the correct SD card for the scripts. Check the Ethernet cable. Check that the PC has been configured for a Static IP Address 192.168.1.110 (on the correct network interface). There are some Ethernet adapters that are not compatible, and may require an external USB to Ethernet adapter.
...
this fails…
If Ubuntu desktop does not open… Try rebooting from the SD card again. It has been noted that occasionally Ubuntu will not boot. If that doesn’t work, check your DisplayPort cable. And perhaps try another demo that uses the DisplayPort monitor to verify the hardware.
If the Ubuntu desktop opens, but you have no control of the cursor or keyboard, check the USB cables, mouse, and keyboard. Check the USB jumpers.

Zynq UltraScale+ MPSoC Power Advantage Tool part 3 - Running the Pre-Built Power Advantage Tool

$
0
0
Zynq UltraScale+ MPSoC Power Advantage Tool part 3 - Running the Pre-Built Power Advantage Tool
Now that you have installed and run the Pre-Built Power Advantage Tool in the previous section, let’s take a moment to see what else you can do with it. The Power Advantage Tool Control Console can be used as a tool, with designs, to monitor the power budget during the design process. In addition, the Power Advantage Tool can be used as a demonstration of the power savings with processing designs.
1 Power Advantage Tool
1.1 Power Advantage Tool Control Console
Warning: If you have connected Micro USB (UART) (J83) to PC for the first time, or switched boards, you may need to wait a few minutes for the PC to recognize the new hardware. Then you can open the Power Advantage Tool.
Launch the Power Advantage Tool Shortcut at C:\ZynqUS_Demos\ZynqusPowerTool.exe Shortcut.
In a few seconds, you should see a Power Advantage Tool Control Console window with a Power Report. The Power numbers should update every few seconds.
If it is not displayed properly, refer to “Common Setup Issues”, and debug until the “Power Advantage Tool is alive” before returning here to continue.
Warning: The Power Advantage Tool must always be launched after the ZCU102 board has been powered on. The reason for this is: The Power Advantage Tool initializes the power measurement circuits (INA226’s) before they can make measurements. Any Power cycling clears these INA226 initializations. Re-launching the Power Advantage Tool fixes this.
1.2 Power Advantage Tool Control Console
After successfully launching the Power Advantage Tool, you should see the following Power Advantage Tool Control Console window (may take a few seconds):
{Debug Flowchart.png}
Figure 4. Power Advantage Tool Control Console
This interface is important to most of the demonstrations, so it would be good to familiarize yourself with it. Take a moment to identify the following:
o Zoom Display (transparent button [ ]) (A) resizes to fill a 1920x1080 display.
o Close (transparent button [X]) (B)
o Minimize (C)
o Select (D) Selects the display mode (Rails, Plot, About contains the version number)
o Preset (E) Places the ZCU102 into a selected state.
o Block Diagram of Zynq (F) shows the current device state.
o Power Totals for various domains (G) (Note: There can be a few seconds delay for measurement and update.)
Here is a Table of the Rails for ZCU102:
o VCCPSINTFP – Core Full Power Domain
o MGTRAVCC – GTX Power
o MGTRAVTT – GTX Termination Power
o VCCO_PSDDR_504 – PS DDR Controller IO
o VCCPSDDRPLL – PS DDR PLL Power
o VCCPSINTLP – Core Low Power Domain
o VCCPSAUX – Aux and GPIO
o VCCPSPLL – PS PLL Power
o VCCOPS – PS IO Banks MIO0/1/2
o VCCOPS3 – Dedicated PS IO
o VCCINT – PL Operating
o VCCBRAM – Block RAM
o VCCAUX – Auxiliary Circuits
o VCC1V2 – DDR Termination
o VCC3V3 – Main PMBUS Utility Rails
o MGTAVCC – Receiver and Transmitter Internal
o MGTAVTT – Transmit Driver
It is a power advantage to be able to turn off unused circuitry. The more power islands you have, the more flexibility you have to save power.
Islands switch power internally to the Zynq UltraScale+ MPSoC, whereas Domains switch power rails externally to the Zynq device. When Domain switching can be done, this has the advantage of drawing no power by being able to completely turn off a portion of the silicon device.
Note: Switching off domains can clear the program memory until reboot.
Control can be over entire Domains or individual Islands. The next sections will demonstrate the Power Domains.
1.3 Domain Control
Power Domains are broad sections of the Zynq UltraScale+ MPSoC.
The Power Advantage Tool setup requires no further setup to have access to the Power Domain Controls.
Figure 15. Power Domain Controls
With the Power Advantage Tool running, identify the following controls:
(A) Preset Button
(B) Low Power Domain Button
(C) FulI Power Domain Button
(D) Programmable Logic Domain Button
1.4 Power Island Control
TBD
1.5 Selecting Displays
TBD
1.6 Ubuntu
From the Ubuntu Desktop, open up an XTerm and launch Top. There are four CPU cores, so Cpu(s): 25% means that one A53 core is completely used.
Other applications can be launched from the Ubuntu Desktop, as well as from the Home directory: • Run_cube.sh renders a cube using the GPU via OpenGL. • Xaos – Fractal Zoomer > UI > Autopilot takes up one CPU per launch.
1.7 Terminals
If you don’t have the recommended DP monitor, you can still demonstrate the power consumption of the Zynq device using the terminals demo:
From C:\ZynqUS_Demos, launch 01_open_terminals_ZCU102.ahk.
When the APU window has the login prompt, launch 02_demo_start_ZCU102.ahk. This launches four applications and Linux Top.
The Mandelbrot application takes a full CPU core. You can launch three more Mandelbrot applications by launching 03_demo_add_ZCU102_3mbrots.ahk.

Power Tool Console.png

Viewing all 11776 articles
Browse latest View live