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 miloserdin
Participant
1,352 Views
Registered: ‎02-20-2016

xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

Hi!

I'd like to know why xilinx_devcfg.c driver for Zynq-7000 is got deprecated in 2018.1 release? We've developed software framework for our custom board with Zynq-7000 and have used xilinx_devcfg.c driver there. The new Zynq PL programming solution (using FPGA Manager) breaks the compatibility with releases pre-2018.1 and later! Will any support for xilinx_devcfg.c driver be added in future releases?

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
951 Views
Registered: ‎01-21-2008

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

Yes, This is supported from xilfpga library in 2018.2 and will be full Partial Reconfiguration bitstream loading support from 2018.3

13 Replies
Xilinx Employee
Xilinx Employee
1,330 Views
Registered: ‎01-21-2008

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

Hi miloserdin,


Yes, we have deprecated xilinx_devcfg as Linux moved to FPGA Manager framework. So older and newer Zynq devices are supported to FPGA Manager. there won't be any support for xilinx_devcfg s/w library.

 

Do let us know what is not working for you?

 

With the FPGA Manager we have below support is available & Coming soon:=> 

 

1. In 2018.1 - FPGA_MANAGER - support Standalone & Linux OS (kernel configuration) for PL bit-stream configuration & reconfiguration (No Partial Reconfiguration support & No readback PL configuration support)

2. In 2018.2 - FPGA_MANAGER - support Standalone & Linux OS (kernel configuration) for PL bit-stream configuration & reconfiguration  with PL configuration register read-back (No Partial Reconfiguration support & No readback PL configuration support)

3. In 2018.3 - FPGA_MANAGER - support Standalone & Linux OS (kernel configuration) for PL bit-stream configuration & reconfiguration, with Partial Reconfiguration and Readback PL configuration supported.

0 Kudos
Xilinx Employee
Xilinx Employee
1,313 Views
Registered: ‎06-27-2017

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

@miloserdin,

 

To add more information, Below driver is for zynq fpga manager support and few code is borrowed from xdevcfg driver.

drivers/fpga/zynq-fpga.c

Attached commit patch has added support for FPGA manager for zynq. It may useful for your framework.

 

Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
Participant miloserdin
Participant
1,302 Views
Registered: ‎02-20-2016

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

Thanks for the information!

I tried to load bitstream file (.bit) to Zynq-7000 PL using FPGA manager and got the following error:

"Invalid bitstream, could not find a sync word. Bitstream must be a byte swapped .bin file".

Why do you drop support for full bitstream files with header (.bit) which are generated by Vivado by default? The legacy xilinx_devcfg.c driver has support for them and has byte-swapped routine included.

Scholar vanmierlo
Scholar
1,271 Views
Registered: ‎06-10-2008

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

Several years ago the devcfg driver also only supported the stupid bin file format. But it matured and got to support the bit files as generated by Vivado. Are you really telling us that we are back at square one? Is this an attempt to p*** your customers off?

0 Kudos
Participant miloserdin
Participant
1,263 Views
Registered: ‎02-20-2016

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

Yes, as for now Zynq and ZynqMP PL programming solution (via FPGA manager) offered by Xilinx in 2018.1/2 releases supports only binary bitstream file with byte-swapped data (not a bit file generated by Vivado by default)!

0 Kudos
Xilinx Employee
Xilinx Employee
1,222 Views
Registered: ‎01-21-2008

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

@miloserdin

 

Yes the FPGA bitstream need to be procesed thrgough the BOOTGEN s/w to get the Bit swapped bitstream to use for PCAP/FPGA Manager to configure correctly.

 

Have a look wiki link http://www.wiki.xilinx.com/FPGA+Manager+ZCU102 

 

Also FPGA Manager accept the .BIN file format only. To Build the bin file, Create a BIF file using any ASCII TEXT editor with below template.  Say for example file "boot_a53_bin_pl_all.bif" you have generated for BOOTGEN.

 

all:
{
design_1_wrapper.bit
}

 

Create the bin file of the bitstream (from XSCT) by suing BootGEN utility from SDK s/w:

 

$ bootgen -image boot_a53_bin_pl_all.bif -arch zynqmp -process_bitstream bin

 

After above BootGEN command Bin File i.e. "design_1_wrapper.bit.bin" will b generated. Use generated BIN file (design_1_wrapper.bit.bin) for final FPGA Manager configuration.

 

Hope this helps.

 

FYI - See Wiki link at http://www.wiki.xilinx.com/FPGA+Manager+ZCU102

0 Kudos
Highlighted
Participant miloserdin
Participant
1,214 Views
Registered: ‎02-20-2016

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

Thanks a lot, @jadhavs!

Do you plan to add support for full bitstream files with header (.bit) which are generated by Vivado by default to xilfpga library? Our customers use bitstreams containing PL logic only and need to reload them after boot.

0 Kudos
Xilinx Employee
Xilinx Employee
952 Views
Registered: ‎01-21-2008

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

Yes, This is supported from xilfpga library in 2018.2 and will be full Partial Reconfiguration bitstream loading support from 2018.3

Moderator
Moderator
936 Views
Registered: ‎12-04-2016

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

Hi @miloserdin

 

If your queries have been answered, kindly mark the appropriate answer post as an accepted solution, that will help others looking for similar answer

 

 

Best Regards

Shabbir

0 Kudos
Scholar vanmierlo
Scholar
489 Views
Registered: ‎06-10-2008

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

@jadhavs wrote:

Yes, This is supported from xilfpga library in 2018.2 and will be full Partial Reconfiguration bitstream loading support from 2018.3


If this is supposed to be supported, then how should it be used? I still get the following error with Petalinux 2018.3:

root@petalinux:~# cp /run/media/mmcblk0p1/system.bit /lib/firmware/
root@petalinux:~# echo system.bit > /sys/class/fpga_manager/fpga0/firmware fpga_manager fpga0: writing system.bit to Xilinx Zynq FPGA Manager fpga_manager fpga0: Invalid bitstream, could not find a sync word. Bitstream must be a byte swapped .bin file fpga_manager fpga0: Error preparing FPGA for writing

I want my Vivado engineer to be able to generate a bitstream file and copy that onto the target and program it. He should not be concerned with installing and running petalinux tools on his Windows machine.

Maarten

0 Kudos
Visitor yang5215986
Visitor
315 Views
Registered: ‎12-10-2018

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

petalinux2018.3 

root@dky_7045_4_26:/mnt# mkdir -p /lib/firmware

root@dky_7045_4_26:/mnt# echo 1 > /sys/class/fpga_manager/fpga0/flags

root@dky_7045_4_26:/mnt# cp toppr.bit.bin /lib/firmware/

root@dky_7045_4_26:/mnt# echo toppr.bit.bin > /sys/class/fpga_manager/fpga0/firmware

[ 181.805423] fpga_manager fpga0: writing toppr.bit.bin to Xilinx Zynq FPGA Manager

[ 184.332499] fpga_manager fpga0: Error after writing image data to FPGA

-sh: echo: write error: Connection timed out

0 Kudos
Observer jensrenner
Observer
186 Views
Registered: ‎02-20-2014

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

With the removal of the original xilinx_devcfg driver, the support for FCLK export also seems to have gone. :/

0 Kudos
Scholar vanmierlo
Scholar
166 Views
Registered: ‎06-10-2008

Re: xilinx_devcfg.c driver got deprecated in 2018.1 release

Jump to solution

@jadhavs wrote:

Yes, This is supported from xilfpga library in 2018.2 and will be full Partial Reconfiguration bitstream loading support from 2018.3


And now we have petalinux 2019.1 and still this is not fixed. It was silently documented on the wiki but not added to this forum thread:


Missing Features, Known Issues and Limitations

  • No support for partial Bitstream loading.
  • No support for Authenticated and Encrypted Bitstream loading.
  • It is capable of loading only .bin format files into PL. It does not support any other file format.

Again I wonder: is this a way to scare people away from Zynq towards the more expensive ZynqMP?

And in the meantime, Vivado 2019.1 also cannot directly generate .bin files and neither can one run bootgen on the Zynq itself.

Can anyone tell why the FPGA manager is preferred over the old xdevcfg driver? I have yet to see the first advantage.