UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant coreyhahn
Participant
269 Views
Registered: ‎09-13-2018

Unable to program PL from Petalinux via FPGA Manager

Running petalinux 2018.2

Ran through this how to.

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841847/Solution+ZynqMP+PL+Programming

With the exception of no FPGA Manager in petalinux-config everything was ok.

When i boot into the resulting images I get the following error when attempting to load bin file from that Vivado created.


root@test02:~# echo /lib/firmware/test02_wrapper.bin > /sys/class/fpga_manager/fpga0/firmware
[ 2112.016472] fpga_manager fpga0: writing /lib/firmware/test02_wrapper.bin to Xilinx ZynqMP FPGA Manager
[ 2112.025911] fpga_manager fpga0: Direct firmware load for /lib/firmware/test02_wrapper.bin failed with error -2
[ 2112.036037] fpga_manager fpga0: Error requesting firmware /lib/firmware/test02_wrapper.bin
-sh: echo: write error: No such file or directory

I cannot find a reference to the error "-2". What can i try next?

0 Kudos
5 Replies
Observer timor.knudsen
Observer
223 Views
Registered: ‎06-20-2016

Re: Unable to program PL from Petalinux via FPGA Manager

Make sure the test02_wrapper.bin exists in /lib/firmware.

Then do not specify the path but only the filename when "echo" to the fpga_manager:

echo test02_wrapper.bin > /sys/class/fpga_manager/fpga0/firmware

Should work.

0 Kudos
Participant coreyhahn
Participant
177 Views
Registered: ‎09-13-2018

Re: Unable to program PL from Petalinux via FPGA Manager

That did solve that error.  Thank you!

A new error immediately popped up.

root@test20181217:/media/card/coreydevdir# echo test1_wrapper.bin > /sys/class/fpga_manager/fpga0/firmware
[20892.164512] fpga_manager fpga0: writing test1_wrapper.bin to Xilinx ZynqMP FPGA Manager
Crypto flags not matched with Image crypto operation
[20892.193289] fpga_manager fpga0: Error while writing image data to FPGA
-sh: echo: write error: Invalid argument

 

I am not doing, nor have touched any crypto settings. 

Edit:  Seems to have to do with compressing the bit/bin file. No compression fixes this.

0 Kudos
Participant coreyhahn
Participant
169 Views
Registered: ‎09-13-2018

Re: Unable to program PL from Petalinux via FPGA Manager

Now on to my third error.

root@test20181217:/media/card/coreydevdir# echo test1_wrapper.bin > /sys/class/fpga_manager/fpga0/firmware
[ 77.653958] fpga_manager fpga0: writing test1_wrapper.bin to Xilinx ZynqMP FPGA Manager
FPGA fail to get the done status
[ 77.791600] fpga_manager fpga0: Error while writing image data to FPGA
-sh:  echo: write error: Invalid argument

0 Kudos
Observer gosha-z
Observer
148 Views
Registered: ‎09-07-2018

Re: Unable to program PL from Petalinux via FPGA Manager

Are you definitely need to load bitstream through FPGA Manager? Why not to let U-Boot load it from FIT bundle?

0 Kudos
Participant coreyhahn
Participant
128 Views
Registered: ‎09-13-2018

Re: Unable to program PL from Petalinux via FPGA Manager

I do both.  It should be possible to do both.  Trying to understand the limitations before I need it work.

0 Kudos