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

ZynqMP OCM EDAC Driver

$
0
0
...
[ 3.818923] EDAC DEBUG: edac_device_create_sysfs: idx=0
[ 3.818936] EDAC DEBUG: edac_device_create_instances:
...
to module synopsys-edaczynqmp-ocm-edac controller xlnx,zynqmp-ocmc-1.0:zynqmp-ocm: DEV ff960000.ocmff960000.memory-controller (INTERRUPT)
This
...
directory as zynqmp-ocmzynqmp_ocm
To inject CE Errors
Configure the bit position to generate CE Error
...
4 > /sys/devices/system/edac/zynqmp-ocm/inject_fault_count/sys/devices/system/edac/zynqmp_ocm/inject_fault_count
# echo 31 > /sys/devices/system/edac/zynqmp-ocm/inject_cebitpos/sys/devices/system/edac/zynqmp_ocm/inject_cebitpos
Write any data to any OCM Memory area, so at the time of writing data the controller injects errors and will report when you read back
the location
# devmem 0xfffd0000 64 0xFFFFFFFFFFFF
read back the data
# devmem 0xfffc00000xfffd0000
[ 379.903651] EDAC DEVICE0: CE: zynqmp_ocm instance: zynqmp_ocm0 block: zynqmp_ocm0 '
OCM ECC error type :CE
...
To inject UE Errors
Configure the bit positions to generate UE Error
...
4 > /sys/devices/system/edac/zynqmp-ocm/inject_fault_count/sys/devices/system/edac/zynqmp_ocm/inject_fault_count
# echo 7 > /sys/devices/system/edac/zynqmp-ocm/inject_uebitpos0/sys/devices/system/edac/zynqmp_ocm/inject_uebitpos0
# echo 32 > /sys/devices/system/edac/zynqmp-ocm/inject_uebitpos1/sys/devices/system/edac/zynqmp_ocm/inject_uebitpos1
Write any data to any OCM Memory area, so at the time of writing data the controller injects errors and will report when you read back
the location
# devmem 0xfffc0000 64 0xFFFFFFFFFFFF
# devmem 0xfffc0000
[ 64.973665] Unhandled fault: synchronous external abort (0x92999219) at 0x0000007f9182b000)
[ 64.973674] EDAC DEVICE0: UE: zynqmp_ocm instance: zynqmp_ocm0 block: zynqmp_ocm0 '
OCM ECC error type :UE
...
Fault Data : 0xFFFEFFFFFF7F
Expected Output
...
1 > /sys/devices/system/edac/zynqmp-ocm/inject_cebitpos/sys/devices/system/edac/zynqmp_ocm/inject_cebitpos
root@Xilinx-ZCU102-2016_1:~# echo 4 > /sys/devices/system/edac/zynqmp-ocm/inject_fault_count/sys/devices/system/edac/zynqmp_ocm/inject_fault_count
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffc0000 32 0x1234
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffc0000
...
xlnx,zynqmp-ocmc-1.0 instance: zynqmp-ocm0zynqmp_ocm0 block: zynqmp-ocm0zynqmp_ocm0'
OCM ECC error type :CE Addr: [0xFFFC0000] Fault Data: [0x1236]'
0x00001234
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffc0000
...
xlnx,zynqmp-ocmc-1.0 instance: zynqmp-ocm0zynqmp_ocm0 block: zynqmp-ocm0zynqmp_ocm0'
OCM ECC error type :CE Addr: [0xFFFC0000] Fault Data: [0x1236]'
0x00001234
root@Xilinx-ZCU102-2016_1:~#
root@Xilinx-ZCU102-2016_1:~#
...
4 > /sys/devices/system/edac/zynqmp-ocm/inject_fault_count/sys/devices/system/edac/zynqmp_ocm/inject_fault_count
root@Xilinx-ZCU102-2016_1:~# echo 0 > /sys/devices/system/edac/zynqmp-ocm/inject_uebitpos0/sys/devices/system/edac/zynqmp_ocm/inject_uebitpos0
[ 1363.242555] EDAC ZynqMP-OCM: Set another bit position for UE, if not set
...
7 > /sys/devices/system/edac/zynqmp-ocm/inject_uebitpos1/sys/devices/system/edac/zynqmp_ocm/inject_uebitpos1
[ 1377.012548] EDAC ZynqMP-OCM: UE at Bit Position0: 0 Bit Position1: 7
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffe4200 32 0xFFFF
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffe4200
...
xlnx,zynqmp-ocmc-1.0 instance: zynqmp-ocm0zynqmp_ocm0 block: zynqmp-ocm0zynqmp_ocm0'
OCM ECC error type :UE Addr: [0xFFFE4200] Fault Data: [0xFF7E]'
0x0000FF7E
root@Xilinx-ZCU102-2016_1:~#cat /sys/devices/system/edac/zynqmp-ocm/inject_uebitpos0/sys/devices/system/edac/zynqmp_ocm/inject_uebitpos0
Fault Injection Data Reg: [0x81]
root@Xilinx-ZCU102-2016_1:~#
root@Xilinx-ZCU102-2016_1:~#
root@Xilinx-ZCU102-2016_1:~#cat /sys/devices/system/edac/zynqmp-ocm/zynqmp-ocm0/ue_count/sys/devices/system/edac/zynqmp_ocm/zynqmp_ocm0/ue_count
2
root@Xilinx-ZCU102-2016_1:~#cat /sys/devices/system/edac/zynqmp-ocm/zynqmp-ocm0/ce_couny/sys/devices/system/edac/zynqmp_ocm/zynqmp_ocm0/ce_couny
1
root@Xilinx-ZCU102-2016_1:~#

ZynqMP OCM EDAC Driver

$
0
0
...
0x00001234
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffc0000
...
DEVICE0: CE: xlnx,zynqmp-ocmc-1.0xlnx,zynqmp_ocmc-1.0 instance: zynqmp_ocm0
OCM ECC error type :CE Addr: [0xFFFC0000] Fault Data: [0x1236]'
0x00001234
...
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffe4200 32 0xFFFF
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffe4200
...
DEVICE0: UE: xlnx,zynqmp-ocmc-1.0xlnx,zynqmp_ocmc-1.0 instance: zynqmp_ocm0
OCM ECC error type :UE Addr: [0xFFFE4200] Fault Data: [0xFF7E]'
0x0000FF7E

ZynqMP OCM EDAC Driver

$
0
0
...
[ 3.818923] EDAC DEBUG: edac_device_create_sysfs: idx=0
[ 3.818936] EDAC DEBUG: edac_device_create_instances:
...
zynqmp-ocm-edac controller zynqmp-ocm:zynqmp_ocm: DEV ff960000.memory-controller
This driver creates edac device controller in sysfs /sys/devices/system/edac/ directory as zynqmp_ocm
To inject CE Errors
...
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffc0000 32 0x1234
root@Xilinx-ZCU102-2016_1:~# devmem 0xfffc0000
...
DEVICE0: CE: xlnx,zynqmp-ocmc-1.0xlnx,zynqmp_ocmc-1.0 instance: zynqmp_ocm0
OCM ECC error type :CE Addr: [0xFFFC0000] Fault Data: [0x1236]'
0x00001234

001.png

002.png

003.png

004.png

005.png


reVISION Getting Started Guide 2017.2

$
0
0
...
In the Templates dialog box, select the Stereo Vision template.
6.3 Build the File IO sample applications
TODOStart SDx and create a new workspace. Make sure you use the same shell to run SDx as the one where you have set $SYSROOT.
Close the Welcome screen and select 'File'→ 'New'→ 'Xilinx SDx Project'... from the menu bar. This brings up the Create a New SDx Project dialog box. Enter a name for project (“bil_fil” in Figure which stands for bilateral filter).
{001.png}
Leave the "Use default location" box checked, hit Next>, this opens the "Choose Hardware Platform" page.
Select the platform. The very first time you do this for a new workspace, you must hit Add Custom Platform..., and browse to ./zcu102_[es2_]rv_ss, hit OK, note that "zcu102_[es2_]rv_ss (custom)" now appears in the Name column.
{002.png}
Select your newly added custom platform "zcu102_[es2_]rv_ss (custom)", hit Next>, this opens the "Choose Software Platform and Target CPU" page.
{003.png}
Leave everything as is, hit Next>, this opens the "Templates" page.
Select “bilateral – File I/O” from the set of templates and click on “Finish”.
{004.png}
The dialog box closes, and you now see the SDx Project Settings pane in the center of the SDx GUI. Notice the progress bar in the lower right border of the pane, saying "C/C++ Indexer" - wait a few moments for this to finish. Locate the "Active build configuration:" in the upper right corner of the pane, which says "Debug" - click it and select Release. Your window should now look something like this:
{005.png}
In the left hand "Project Explorer" pane, select the bil_fil project, click right on it, then select Build Project. In the small Build Project dialog that opens, you may hit the "Run in Background" button. That causes the small dialog box to disappear, though you can still see a progress icon in the lower right part of the GUI, showing that work is in progress. Select the Console tab in the lower central pane of the GUI to observe the steps of the build process as it progresses. The build process may take tens of minutes, up to several hours, depending on the power of your host machine, whether you are running on Linux or Windows, and of course the complexity of your design. By far the most time is spent processing the routines that have been tagged for realization in hardware - note the "HW functions" window in the lower part of the SDx Project Settings pane. “bilateralFilter” is listed as a function tagged to be moved to hardware.
Once the Build completes, you will find an sd_card directory has been created at <workspace>\bil_fil\Release\sd_card,
In order to run the function on the board, mount the SD card on the board and power it on.
At the prompt, go to the directory “/media/card”. Use the following command: cd /media/card
Run the executable using the following command: ./bil_fil.elf im0.jpg
If the run is successful, the following text appears at the terminal:
sigma_color: 7.72211 sigma_space: 0.901059
elapsed time 9133271
Minimum error in intensity = 0
Maximum error in intensity = 1
Percentage of pixels above error threshold = 0.00168789 Count: 35
Follow the same procedure for other file I/O samples – Harris corner detection, optical flow, stereo block matching and warpTransform.

7 Other Information
7.1 Known Issues

reVISION Getting Started Guide 2017.2

$
0
0
...
values: 0 16777215
value: 16711680
Run the File I/O Examples
Please refer to UG1233, page 8 for instructions.

6 Tool Flow Tutorials
Firstly, the SDx Development Environment, version 2017.2, must be installed and working on your host computer, either the Linux or the Windows version.

reVISION Getting Started Guide 2017.2

$
0
0

reVISION Getting Started Guide 2017.2

$
0
0
...
{005.png}
In the left hand "Project Explorer" pane, select the bil_fil project, click right on it, then select Build Project. In the small Build Project dialog that opens, you may hit the "Run in Background" button. That causes the small dialog box to disappear, though you can still see a progress icon in the lower right part of the GUI, showing that work is in progress. Select the Console tab in the lower central pane of the GUI to observe the steps of the build process as it progresses. The build process may take tens of minutes, up to several hours, depending on the power of your host machine, whether you are running on Linux or Windows, and of course the complexity of your design. By far the most time is spent processing the routines that have been tagged for realization in hardware - note the "HW functions" window in the lower part of the SDx Project Settings pane. “bilateralFilter” is listed as a function tagged to be moved to hardware.
...
created at<workspace>\bil_fil\Release\sd_card,
.\<workspace>\bil_fil\Release\sd_card

In order to run the function on the board, mount the SD card on the board and power it on.
At the prompt, go to the directory “/media/card”. Use the following command: cd /media/card

OpenAMP 2017.3 (Under Construction)

$
0
0
TOC
<br>
<br>

Below are information to complement and clarify UG1186 "Getting Started Guide" for Zynq UltraScale+ MPSoC.
Quick try!
...
petalinux-config -c rootfs
2. Enable the required rootfs packages for the application. If you are running the sample applications from UG1186, the packages would be enabled by the following:
Filesystem Packages --> libs --> libmetal -->Packages--> libs--> libmetal--> [ * ] libmetal --> openamp -->libmetal--> openamp--> [ * ] open-amp --> misc --> openamp-fw-echo-testd -->open-amp--> misc--> openamp-fw-echo-testd--> [ * ] openamp-fw-echo-testd --> openamp-fw-mat-muld -->openamp-fw-echo-testd--> openamp-fw-mat-muld--> [ * ] openamp-fw-mat-muld --> openamp-fw-rpc-demod -->openamp-fw-mat-muld--> openamp-fw-rpc-demod--> [ * ] openamp-fw-rpc-demod --> rpmsg-echo-test -->openamp-fw-rpc-demod--> rpmsg-echo-test--> [ * ] rpmsg-echo-test --> rpmsg-mat-mul -->rpmsg-echo-test--> rpmsg-mat-mul--> [ * ] rpmsg-mat-mul --> rpmsg-proxy-app -->rpmsg-mat-mul--> rpmsg-proxy-app--> [ * ] rpmsg-proxy-app --> rpmsg-proxy-module -->rpmsg-proxy-app--> rpmsg-proxy-module--> [ * ] rpmsg-proxy-module --> rpmsg-user-module -->rpmsg-proxy-module--> rpmsg-user-module--> [ *
3. Then build the petalinux project.
petalinux-build

OpenAMP 2017.3 (Under Construction)

$
0
0
TOC
<br>
<br>

Below are information to complement and clarify UG1186 "Getting Started Guide" for Zynq UltraScale+ MPSoC.
Quick try!

OpenAMP 2017.3 (Under Construction)

$
0
0

Below are information to complement and clarify UG1186 "Getting Started Guide" for Zynq UltraScale+ MPSoC.
Quick try!

reVISION Getting Started Guide 2017.2

$
0
0
...
│ | ├── lib
│ | └── qemu
│ ├── petalinu_bsppetalinux_bsp
│ ├── sysroot
│ ├── video_lib
...
{zcu102_reVISION_2017.1.png}
5.2 Extract the design zip file
...
(ES2 or production) usingproduction).
For Linux, use the unzip utlity.
For Windows, use
the 7zip utility.utility and follow the steps below.
When prompted to confirm file replace, select ‘Auto Rename’
{7zip-1.jpg}

PMU Firmware

$
0
0
...
execution context
Init
...
the module, regiserregister for events
XPfw_CoreSetCfgHandler(const XPfw_Module_t *ModPtr, XPfwModCfgInitHandler_t CfgHandler);
StartUp
Event Handler
...
event occurs (moduel(module should have
XPfw_CoreSetEventHandler(const XPfw_Module_t *ModPtr, XPfwModEventHandler_t EventHandler);
Interrupt
IPI Handler
...
with respective moduel-idmodule-id arrives
XPfw_CoreSetIpiHandler(const XPfw_Module_t *ModPtr, XPfwModIpiHandler_t IpiHandler, u16 IpiId);
Interrupt
...
Loading PMU Firmware in SD boot mode
Note: When PMUFW is loaded in a non-JTAG Boot mode on a 1.0 Silicon, an error message "Error: Unhandled IPI received" may be logged by PMUFW at startup, which can be safely ignored. This is due to the IPI0 ISR not being cleared by PMU ROM which is fixed in 2.0 and later versions of Silicon.
...
loaded after bitstream,bit-stream, (ii) In
...
stable and upgradable,up-gradable, PMUFW can
...
of the upgradableup-gradable (by FSBL)
Using FSBL to load PMU FW
We already have pmufw.elf with us. ( See building PMU FW at the top of this page)

PS and PL based Ethernet in Zynq MPSoC

$
0
0
...
2. XAPP1305
XAPP1305 introduces:-
...
1G), PS-EMIO (PS-PL)(PS-PL),PS-EMIO SGMII(PS-PL),PL 1G SGMII and PL
Supports Vivado 2017.1
Petalinux 2017.1 SDK

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

$
0
0
...
Unzip the image C:\zynqus\pwr\sd\<Timestamp>_zcu102_<Descripton>.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.
...
be programmed. Note: Avoid Class 10 SD cards for 2017.1 and 2017.2 images.
Launch Win32DiskImager.
Select the Image File:

APM

$
0
0
...
status = "okay";
compatible = "xlnx,axi-perf-monitor";
interrupt-parent = <0x1>;<&gic>;
clocks = <&clkc 71>; /* Check for the fclk0 in the zynqmp-clk-ccf */

interrupts = <0x0 93 0x4>; /* Check for the interrupt number */
reg = <0x0 0x800A0000 0x10000>;
Viewing all 11776 articles
Browse latest View live