cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
obruendl_psi
Adventurer
Adventurer
1,125 Views
Registered: ‎10-16-2017

UltraScale+ PS <-> PL Interface not working after PL configuration from Linux through FPGA Manager

We configure the PL of our UltraScale+ MPSoC from Linux command line (through FPGA Manager) using the following commands:

 

echo 0 > /sys/class/fpga_manager/fpga0/flags

echo design_1_wrapper.bit.bin > /sys/class/fpga_manager/fpga0/firmware

 

After the configuration the bitstream seems to be loaded correctly (the LEDs blink in the expected pattern an frequency for our bitstream) but registers connected to the PS by AXI are not accessible. If we try accessing them, linux hangs completely.

 

By "hangs completely" I mean the system is fully blocked. This is a strong contrast to other errors like accessing an inexistent register where we just get a bus error but the system continues running.

 

We also tried puttint the bitstream into the boot.bin so the PL gets configured by the FSBL. In this case everything works fine.

--> conclusion: The bitstream is working

 

If we re-configure the PL using FPGA Manager under Linux after the system booted correctly with the bitstream in the boot.bin, the AXI registers are inaccessible again.

 

Questions:

1. Is this a known behavior?

2. Are there any workarounds?

 

 

0 Kudos
2 Replies
obruendl_psi
Adventurer
Adventurer
1,088 Views
Registered: ‎10-16-2017

The behaviour we see seems to match the following AR:

 

https://www.xilinx.com/support/answers/68246.html

 

Unfortunately I could not really find out where I would have to place the files from the patch supplied with the AR to fix the issue in our linux environment. We built the linux using Yocto. Does anybody know where the files xilfpga_pcap.c/xilfpga_pcap.h are in the whole source code structure when building a Linux using Yocto?

0 Kudos
denist
Xilinx Employee
Xilinx Employee
1,044 Views
Registered: ‎10-11-2011

The file in question is part of xilfpga library and it can be found at:
https://github.com/Xilinx/embeddedsw/tree/master/lib/sw_services/xilfpga 

I don't know how to patch it in the Yocto flow ... maybe a question for the Embedded Linux forum.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos